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.
103 lines
4.6 KiB
103 lines
4.6 KiB
{% extends "crud/detail.html" %}
|
|
{% load i18n %}
|
|
{% load crispy_forms_tags %}
|
|
{% block actions %}{% endblock %}
|
|
|
|
{% block detail_content %}
|
|
{% block buttons %}
|
|
|
|
{% if filter_url and not filter.form.errors %}
|
|
<div class="actions btn-group float-right" role="group">
|
|
<a href="{% url 'sapl.sessao:adicionar_varias_materias_expediente' pk_sessao %}" class="btn btn-outline-primary">{% trans 'Fazer nova pesquisa' %}</a>
|
|
</div>
|
|
|
|
<div class="actions btn-group float-right" role="group">
|
|
<a href="{% url 'sapl.sessao:expedientemateria_list' pk_sessao %}" class="btn btn-outline-primary">{% trans 'Matérias do Expediente' %}</a>
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
{% if filter.form.errors %}
|
|
{% crispy filter.form %}
|
|
{% else %}
|
|
{% if not filter_url %}
|
|
{% crispy filter.form %}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<p></p>
|
|
{% if filter_url and not filter.form.errors %}
|
|
|
|
{% if paginator.count %}
|
|
<form method="POST" enctype="application/x-www-form-urlencoded">
|
|
{% csrf_token %}
|
|
<table class="table table-striped table-bordered">
|
|
<thead class="thead-default">
|
|
<tr>
|
|
<td><h3>{% trans "Matérias" %}</h3></td>
|
|
<td><h3>{% trans "Tipo de Votação" %}</h3></td>
|
|
</tr>
|
|
</thead>
|
|
{% if paginator.count > 1 %}
|
|
<h3>{% blocktrans with paginator.count as total_materias %}Pesquisa concluída com sucesso! Foram encontradas {{total_materias}} matérias.{% endblocktrans %}</h3>
|
|
{% elif paginator.count == 1 %}
|
|
<h3>{% trans 'Pesquisa concluída com sucesso! Foi encontrada 1 matéria.'%}</h3>
|
|
{% endif %}
|
|
|
|
{% for m in page_obj %}
|
|
<tr>
|
|
<td>
|
|
<input type="checkbox" name="materia_id" id="{{m.id}}" value="{{m.id}}" {% if check %} checked {% endif %}>
|
|
<strong><a href="{% url 'sapl.materia:materialegislativa_detail' m.id %}">{{m.tipo.sigla}} {{m.numero}}/{{m.ano}} - {{m.tipo}}</strong></a></br>
|
|
<strong>Autores:</strong>
|
|
{% for a in m.autoria_set.all %}
|
|
{% if not forloop.first %}
|
|
, {{a.autor|default_if_none:""}}
|
|
{% else %}
|
|
{{a.autor|default_if_none:""}}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</br>
|
|
<strong>Localização Atual:</strong> {{m.tramitacao_set.last.unidade_tramitacao_destino|default_if_none:"Não informado"}}</br>
|
|
<strong>Status:</strong> {{m.tramitacao_set.last.status|default_if_none:"Não informado"}}</br>
|
|
<strong>Data da última Tramitação:</strong> {{m.tramitacao_set.last.data_tramitacao|default_if_none:"Não informado"}}</br>
|
|
<strong>Ementa:</strong> {{ m.ementa|safe }}</br>
|
|
<p></p>
|
|
<td width="20%%">
|
|
<input type="radio" name="tipo_votacao_{{m.id}}" id="tipo_votacao_{{m.id}}_1" value="1"> <label for="tipo_votacao_{{m.id}}_1">Simbólica</label>
|
|
</br>
|
|
<input type="radio" name="tipo_votacao_{{m.id}}" id="tipo_votacao_{{m.id}}_2" value="2"> <label for="tipo_votacao_{{m.id}}_2">Nominal</label>
|
|
</br>
|
|
<input type="radio" name="tipo_votacao_{{m.id}}" id="tipo_votacao_{{m.id}}_3" value="3"> <label for="tipo_votacao_{{m.id}}_3">Secreta</label>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
<input type="submit" value="Adicionar matérias selecionadas" class="btn btn-primary"S>
|
|
</form>
|
|
{% else %}
|
|
<table class="table table-striped table-bordered">
|
|
<tr>
|
|
<td>
|
|
<h3>Nenhuma matéria encontrada com essas especificações</h3>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock detail_content %}
|
|
|
|
{% block extra_js %}
|
|
<script>
|
|
|
|
$(window).on('beforeunload', function () {
|
|
$("input[type=submit], input[type=button]").prop("disabled", "disabled");
|
|
});
|
|
|
|
</script>
|
|
{% endblock extra_js%}
|
|
|