|
|
@ -1,10 +1,8 @@ |
|
|
|
{% extends "crud/list.html" %} |
|
|
|
{% load i18n common_tags crispy_forms_tags%} |
|
|
|
|
|
|
|
{% block base_content %} |
|
|
|
{% if user.is_authenticated and perms.comissoes.add_composicao %} |
|
|
|
<div class="context-actions clearfix"> |
|
|
|
{% block actions %} |
|
|
|
{% if user.is_authenticated and perms.comissoes.add_composicao %} |
|
|
|
<div class="actions btn-group float-right btn-group-lg" role="group"> |
|
|
|
{% if view.create_url %} |
|
|
|
<a href="{{ view.create_url }}" class="btn btn-outline-primary"> |
|
|
@ -13,13 +11,13 @@ |
|
|
|
{% endif %} |
|
|
|
{% block more_buttons %}{% endblock more_buttons %} |
|
|
|
</div> |
|
|
|
{% endblock actions %} |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
{% endblock actions %} |
|
|
|
|
|
|
|
{% block extra_content %} |
|
|
|
<form method="GET"> |
|
|
|
<fieldset class="form-group"> |
|
|
|
<legend>Selecione o Período</legend> |
|
|
|
<form method="GET"> |
|
|
|
<select name="pk" class="form-control" onChange="form.submit();"> |
|
|
|
{% for c in composicao_list %} |
|
|
|
<option value="{{c.id}}" {% if composicao_pk == c.id %} selected {% endif %}> |
|
|
@ -27,20 +25,21 @@ |
|
|
|
</option> |
|
|
|
{% endfor %} |
|
|
|
</select> |
|
|
|
</form> |
|
|
|
</fieldset> |
|
|
|
</form> |
|
|
|
<br/> |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% block container_table_list %} |
|
|
|
{% if user.is_authenticated and perms.comissoes.add_participacao %} |
|
|
|
<div class="context-actions clearfix"> |
|
|
|
<div class="actions btn-group mb-2" role="group"> |
|
|
|
<a href="{% url 'sapl.comissoes:participacao_create' composicao_pk %}" class="btn btn-outline-primary"> |
|
|
|
Adicionar Participação em Comissão |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
<div class="clearfix"></div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="container-table"> |
|
|
|
<table class="table table-striped table-hover table-link-ordering"> |
|
|
|
<thead> |
|
|
@ -71,4 +70,4 @@ |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
{% endblock base_content %} |
|
|
|
{% endblock %} |
|
|
|