|
|
@ -1,11 +1,12 @@ |
|
|
|
{% extends "comissoes/comissao_detail.html" %} |
|
|
|
{% extends "crud/detail.html" %} |
|
|
|
{% load i18n %} |
|
|
|
{% load crispy_forms_tags %} |
|
|
|
{% block actions %} {% endblock %} |
|
|
|
{% block detail_content %} |
|
|
|
|
|
|
|
{% if composicao_id != 0 %} |
|
|
|
<table> |
|
|
|
{% if composicao_id != 0 %} |
|
|
|
<table class="table table-striped table-bordered"> |
|
|
|
<thead class="thead-default"> |
|
|
|
<tr> |
|
|
|
<th>Nome</th> |
|
|
|
<th>Cargo</th> |
|
|
@ -15,11 +16,12 @@ |
|
|
|
<th>Motivo</th> |
|
|
|
<th>Observação</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
|
|
|
|
<form method="POST"> |
|
|
|
|
|
|
|
{% csrf_token %} |
|
|
|
<select id="periodo" name="periodo" onChange="form.submit();"> |
|
|
|
<select id="periodo" name="periodo" class="form-control" onChange="form.submit();"> |
|
|
|
{% for c in composicoes %} |
|
|
|
<option value="{{c.id}}" {% if composicao_id == c.id %} selected {% endif %}> |
|
|
|
{{ c.periodo.data_inicio|date:"d/m/Y" }} - {{ c.periodo.data_fim|date:"d/m/Y" }} |
|
|
@ -27,7 +29,7 @@ |
|
|
|
{% endfor %} |
|
|
|
</select> |
|
|
|
</form> |
|
|
|
|
|
|
|
<br /> |
|
|
|
{% for participacao in participacoes %} |
|
|
|
{% if participacao.composicao_id == composicao_id %} |
|
|
|
<tr> |
|
|
@ -44,7 +46,7 @@ |
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
<a href="{% url 'comissao:comissao_parlamentar' pk composicao_id %}" class="button primary">Incluir Parlamentar</a> |
|
|
|
{% endif %} |
|
|
|
<a href="{% url 'comissao:comissao_parlamentar' pk composicao_id %}" class="btn btn-primary">Incluir Parlamentar</a> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% endblock detail_content %} |