Sistema de Apoio ao Processo Legislativo
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.
 
 
 
 
 

58 lines
1.7 KiB

{% extends "materia/materialegislativa_detail.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block detail_content %}
<fieldset>
<legend>Matéria Legislativa</legend>
<ul class="small-block-grid-3 medium-block-grid-3 large-block-grid-3">
<li>Tipo: <b>{{materialegislativa.tipo.sigla}}</b></li>
<li>Número: <b>{{materialegislativa.numero}}</b></li>
<li>Ano: <b>{{materialegislativa.ano}}</b></li>
</ul>
Ementa: <b>{{materialegislativa.ementa}}</b>
<fieldset>
<legend>Editar Documento Acessório</legend>
<form method="POST">
{% csrf_token %}
<ul class="small-block-grid-3 medium-block-grid-3 large-block-grid-3">
<li>
<labe>Tipo*</labe>
<select name="tipo">
{% for t in tipos %}
<option value="{{t.id}}" {% if t.id == doc.tipo.id %} selected {% endif %}>
{{t.descricao}}
</option>
{% endfor %}
</select>
</li>
<li>
<labe>Data</labe>
<input type="text" name="data" class="dateinput" value="{{doc.data|date:'d/m/Y'}}" />
</li>
<li>
<labe>Nome*</labe>
<input type="text" name="nome" value="{{doc.nome}}" />
</li>
</ul>
<ul class="small-block-grid-2 medium-block-grid-2 large-block-grid-2">
<li>
<labe>Autor*</labe>
<input type="text" name="autor" value="{{doc.autor}}" />
</li>
<li>
<labe>Ementa*</labe>
<input type="text" name="ementa" value="{{doc.ementa}}" />
</li>
</ul>
<input type="submit" value="Salvar" id="salvar" name="salvar" class="primary button" />
<input type="submit" value="Excluir" id="excluir" name="excluir" class="primary button" />
</form>
</fieldset>
</fieldset>
{% endblock %}