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.
76 lines
2.5 KiB
76 lines
2.5 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>Escolha da Composição da Mesa Diretora</legend>
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<label>Composição da Mesa Diretora</label>
|
|
<select multiple size="5" class="form-control" name="composicao_mesa">
|
|
{% for p in composicao_mesa %}
|
|
<option value="{{p.parlamentar.id}}:{{p.cargo.id}}">
|
|
{{p.parlamentar}} || {{p.cargo}}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col-md-4" align="center">
|
|
<br /><br />
|
|
{% if cargos_vagos %} <input type="submit" name="Incluir" Value="Incluir" class="btn btn-primary" /> {% endif %}
|
|
<br />
|
|
<br />
|
|
<input type="submit" name="Excluir" Value="Excluir" class="btn btn-danger" />
|
|
</div>
|
|
|
|
{% if cargos_vagos %}
|
|
<div class="col-md-4">
|
|
<label>Parlamentare | Cargo</label>
|
|
<select class="form-control" name="parlamentar" id="parlamentar">
|
|
{% for p in parlamentares %}
|
|
<option value="{{p.id}}">{{p.nome_completo}}</option>
|
|
{% endfor %}
|
|
</select>
|
|
<br />
|
|
<select class="form-control" name="cargo" id="cargo">
|
|
{% for c in cargos_vagos %}
|
|
<option value="{{c.id}}">{{c}}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
{% endblock detail_content %}
|
|
|