mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.9 KiB
62 lines
1.9 KiB
{% extends "crud/detail.html" %}
|
|
{% load i18n %}
|
|
{% block actions %} {% endblock %}
|
|
|
|
{% block detail_content %}
|
|
<form method="POST">
|
|
{% csrf_token %}
|
|
<fieldset class="form-group">
|
|
<legend>Escolha da Legislatura e da Sessão Legislativa</legend>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<label>Escolha uma Legislatura</label>
|
|
<select name="legislatura" class="form-control" onChange="form.submit();">
|
|
{% for l in legislaturas %}
|
|
<option value="{{l.id}}" {% if l == legislatura_selecionada %} selected {% endif %}>
|
|
{{l}}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label>Escolha uma Sessão Legislativa</label>
|
|
<select name="sessao" class="form-control" onChange="form.submit();">
|
|
{% for s in sessoes %}
|
|
<option value="{{s.id}}" {% if s == sessao_selecionada %} selected {% endif %}>
|
|
{{s}}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
<br />
|
|
<fieldset class="form-group">
|
|
<legend>Composição da Mesa Diretora</legend>
|
|
<table class="table table-striped table-hover table-link-ordering">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Nome do Parlamentar</th>
|
|
<th>Partido</th>
|
|
<th>Cargo</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for p in composicao_mesa %}
|
|
<tr>
|
|
{% if p.parlamentar.fotografia %}
|
|
<td><img class="img-responsive" height="60" width="60" src="{{ p.parlamentar.fotografia.url }}"></td>
|
|
{% else %}
|
|
<td></td>
|
|
{% endif %}
|
|
<td><a href="{% url 'sapl.parlamentares:parlamentar_detail' p.parlamentar.pk %}">{{p.parlamentar.nome_parlamentar}}</a></td>
|
|
<td>{{p.parlamentar.filiacao_set.last.partido.sigla}}</td>
|
|
<td>{{p.cargo}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</fieldset>
|
|
</form>
|
|
{% endblock detail_content %}
|
|
|