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