|
@ -2,11 +2,11 @@ |
|
|
{% load i18n %} |
|
|
{% load i18n %} |
|
|
{% load crispy_forms_tags %} |
|
|
{% load crispy_forms_tags %} |
|
|
{% block detail_content %} |
|
|
{% block detail_content %} |
|
|
<fieldset> |
|
|
<fieldset class="form-group"> |
|
|
<legend>Selecione o Período</legend> |
|
|
<legend>Selecione o Período</legend> |
|
|
<form method="POST"> |
|
|
<form method="POST"> |
|
|
{% csrf_token %} |
|
|
{% csrf_token %} |
|
|
<select name="periodo" onChange="form.submit();"> |
|
|
<select name="periodo" class="form-control" onChange="form.submit();"> |
|
|
{% for l in legislaturas %} |
|
|
{% for l in legislaturas %} |
|
|
<option value="{{l.id}}" {% if l.id == legislatura_id %} selected {% endif %}> |
|
|
<option value="{{l.id}}" {% if l.id == legislatura_id %} selected {% endif %}> |
|
|
{{l}} |
|
|
{{l}} |
|
@ -15,21 +15,23 @@ |
|
|
</select> |
|
|
</select> |
|
|
</form> |
|
|
</form> |
|
|
</fieldset> |
|
|
</fieldset> |
|
|
|
|
|
<br/> |
|
|
<fieldset> |
|
|
<fieldset class="form-group"> |
|
|
<legend>Parlamentares</legend> |
|
|
<legend>Parlamentares</legend> |
|
|
<table> |
|
|
<table class="table table-striped table-bordered"> |
|
|
|
|
|
<thead class="thead-default"> |
|
|
<tr> |
|
|
<tr> |
|
|
<th>Nome do Parlamentar</th> |
|
|
<th>Nome do Parlamentar</th> |
|
|
<th>Partido</th> |
|
|
<th>Partido</th> |
|
|
<th>Ativo?</th> |
|
|
<th>Ativo?</th> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
</thead> |
|
|
|
|
|
|
|
|
{% for p in parlamentares %} |
|
|
{% for p in parlamentares %} |
|
|
<tr> |
|
|
<tr> |
|
|
<td><a href="{% url 'parlamentares_editar' p.id %}"> |
|
|
<td> |
|
|
{{p.nome}} |
|
|
<a href="{% url 'parlamentares_editar' p.id %}"> {{p.nome}}</a> |
|
|
</a></td> |
|
|
</td> |
|
|
<td>{{p.partido}}</td> |
|
|
<td>{{p.partido}}</td> |
|
|
<td>{{p.ativo|yesno:"Sim,Não"}}</td> |
|
|
<td>{{p.ativo|yesno:"Sim,Não"}}</td> |
|
|
</tr> |
|
|
</tr> |
|
|