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.
55 lines
2.1 KiB
55 lines
2.1 KiB
{% extends "materia/materialegislativa_detail.html" %}
|
|
{% load i18n %}
|
|
{% load crispy_forms_tags %}
|
|
{% block actions %} {% endblock %}
|
|
{% block detail_content %}
|
|
<fieldset>
|
|
<legend>Matéria Legislativa</legend>
|
|
<div class="row">
|
|
<div class="col-md-4">Tipo: <b>{{materialegislativa.tipo.sigla}}</b></div>
|
|
<div class="col-md-4">Número: <b>{{materialegislativa.numero}}</b></div>
|
|
<div class="col-md-4">Ano: <b>{{materialegislativa.ano}}</b></div>
|
|
</div>
|
|
Ementa: <b>{{materialegislativa.ementa}}</b>
|
|
<fieldset>
|
|
<legend>Editar Matéria Anexada</legend>
|
|
<form method="POST">
|
|
{% csrf_token %}
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<label>Tipo*</label>
|
|
<select id="tipo" name="tipo">
|
|
{% for tipo in get_tipos_materia %}
|
|
<option value="{{tipo.id}}" {% if tipo.id == data.tipo.id %} selected {% endif %}>{{tipo.sigla}} - {{tipo.descricao}}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<label>Número*</label>
|
|
<input type="text" id="numero" name="numero" value="{{data.numero}}"/>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<label>Ano*</label>
|
|
<input type="text" id="ano" name="ano" value="{{data.ano}}"/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<label>Data Anexação*</label>
|
|
<input type="text" id="data_anexacao" name="data_anexacao" value="{{data.data_anexacao|date:'d/m/Y'}}" class="dateinput"/>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<label>Data Desanexação</label>
|
|
<input type="text" id="data_desanexacao" name="data_desanexacao" value="{{data.data_desanexacao|date:'d/m/Y'}}" class="dateinput"/>
|
|
</div>
|
|
</div>
|
|
<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 %}
|
|
|