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.

62 lines
2.3 KiB

{% extends "materia/materialegislativa_detail.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block actions %} {% endblock %}
{% block detail_content %}
<fieldset>
<legend>Matéria Legislativa</legend>
{% include "materia/resumo_detail_materia.html" %}
<fieldset class="form-group">
<legend>Editar Relator</legend>
<form method="POST">
{% csrf_token %}
<div class="row">
<div class="col-md-12">
Localização Atual
<input type="text" name="comissao" disabled value="{{relatoria.comissao.nome}}" class="form-control"/>
</div>
</div>
<div class="row">
<div class="col-md-6">
Data Designação*
<input type="text" name="data_designacao_relator" class ="dateinput form-control" value="{{relatoria.data_designacao_relator}}" />
</div>
<div class="col-md-6">
Data Destituição
<input type="text" name="data_destituicao_relator" class ="dateinput form-control" {% if relatoria.data_destituicao_relator %} value="{{relatoria.data_destituicao_relator}}" {% endif %}/>
</div>
</div>
<div class="row">
<div class="col-md-6">
Parlamentar*
<select name="parlamentar" class="form-control">
<option value=""> ---------- </option>
{% for p in parlamentares %}
<option value="{{p.parlamentar_id}}" {% if relatoria.parlamentar_id == p.parlamentar_id %} selected {% endif %}>
{{p.parlamentar}}
</option>
{% endfor %}
</select>
</div>
<div class="col-md-6">
Motivo Fim Relatoria
<select name="tipo_fim_relatoria" class="form-control">
<option value=""> ---------- </option>
{% for t in tipo_fim_relatorias %}
<option value="{{t.id}}" {% if t.id == relatoria.tipo_fim_relatoria_id %} selected {% endif %}>
{{t.descricao}}
</option>
{% endfor %}
</select>
</div>
</div>
<br />
<input type="submit" name="salvar" value="Salvar" class="btn btn-primary"/>
<input type="submit" name="excluir" value="Excluir" class="btn btn-danger"/>
</form>
</fieldset>
</fieldset>
{% endblock %}