mirror of https://github.com/interlegis/sapl.git
Eduardo Edson Batista Cordeiro Alves
9 years ago
5 changed files with 115 additions and 39 deletions
@ -1,31 +1,30 @@ |
|||||
{% extends "crud/detail.html" %} |
{% extends "crud/detail.html" %} |
||||
{% load i18n %} |
{% load i18n %} |
||||
{% load crispy_forms_tags %} |
{% load crispy_forms_tags %} |
||||
|
{% block actions %}{% endblock %} |
||||
{% block detail_content %} |
{% block detail_content %} |
||||
|
|
||||
|
<strong>Parlamentar: </strong>{{ parlamentar.nome_parlamentar }} |
||||
<strong>{{ parlamentar.nome_parlamentar }}</strong> |
|
||||
|
|
||||
<fieldset> |
<fieldset> |
||||
<legend>Dependentes</legend> |
<legend>Dependentes</legend> |
||||
|
|
||||
<ul class="small-block-grid-4 medium-block-grid-4 large-block-grid-4"> |
<table> |
||||
<li><strong>Nome Dependente</strong></li> |
<tr> |
||||
<li><strong>Tipo</strong></li> |
<th><strong>Nome Dependente</strong></th> |
||||
<li><strong>Data de Nascimento</strong></li> |
<th><strong>Tipo</strong></th> |
||||
</ul> |
<th><strong>Data de Nascimento</strong></th> |
||||
|
</tr> |
||||
{% for d in dependentes %} |
{% for d in dependentes %} |
||||
<ul class="small-block-grid-4 medium-block-grid-4 large-block-grid-4"> |
<tr> |
||||
<li>{{d.nome}}</li> |
<td><a href="{% url 'parlamentares_dependentes_edit' parlamentar.id d.id %}">{{d.nome}}</a></td> |
||||
<li>{{d.tipo }}</li> |
<td>{{d.tipo }}</td> |
||||
<li>{{d.data_nascimento}}</li> |
<td>{{d.data_nascimento}}</td> |
||||
<li><a href="#">Editar</a> <a href="#">Excluir</a></li> |
</tr> |
||||
</ul> |
|
||||
{% endfor %} |
{% endfor %} |
||||
|
</table> |
||||
</fieldset> |
</fieldset> |
||||
|
|
||||
{% crispy form %} |
{% crispy form %} |
||||
|
|
||||
|
|
||||
{% endblock detail_content %} |
{% endblock detail_content %} |
||||
|
@ -0,0 +1,9 @@ |
|||||
|
{% 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