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