mirror of https://github.com/interlegis/sapl.git
Marcio Mazza
9 years ago
committed by
LeandroRoberto
12 changed files with 50 additions and 185 deletions
@ -1,32 +0,0 @@ |
|||
{% extends "crud/detail.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
|||
{% block actions %}{% endblock %} |
|||
{% block detail_content %} |
|||
|
|||
<h2><strong>Parlamentar: </strong>{{ object.nome_parlamentar }}</h2> |
|||
|
|||
<fieldset> |
|||
<legend>Dependentes</legend> |
|||
|
|||
<table class="table table-striped table-bordered"> |
|||
<thead class="thead-default"> |
|||
<tr> |
|||
<th><strong>Nome Dependente</strong></th> |
|||
<th><strong>Tipo</strong></th> |
|||
<th><strong>Data de Nascimento</strong></th> |
|||
</tr> |
|||
</thead> |
|||
{% for d in dependentes %} |
|||
<tr> |
|||
<td><a href="{% url 'parlamentares:parlamentar_dependente_edit' object.id d.id %}">{{d.nome}}</a></td> |
|||
<td>{{d.tipo }}</td> |
|||
<td>{{d.data_nascimento|default_if_none:""}}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
</fieldset> |
|||
|
|||
{% crispy form %} |
|||
|
|||
{% endblock detail_content %} |
@ -1,7 +0,0 @@ |
|||
{% extends "crud/detail.html" %} |
|||
{% load i18n %} |
|||
{% load crispy_forms_tags %} |
|||
{% block actions %}{% endblock %} |
|||
{% block detail_content %} |
|||
{% crispy form %} |
|||
{% endblock detail_content %} |
Loading…
Reference in new issue