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.
52 lines
1.9 KiB
52 lines
1.9 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>{{object.tipo.sigla}}</b></div>
|
|
<div class="col-md-4">Número: <b>{{object.numero}}</b></div>
|
|
<div class="col-md-4">Ano: <b>{{object.ano}}</b></div>
|
|
</div>
|
|
Ementa: <b>{{object.ementa}}</b>
|
|
|
|
<fieldset>
|
|
<legend>Editar Numeração</legend>
|
|
<form method="POST">
|
|
{% csrf_token %}
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<label>Tipo Matéria*</label>
|
|
<select name="tipo_materialegislativa">
|
|
{% for t in tipos %}
|
|
<option value="{{t.id}}" {% if t.id == numeracao.tipo_materialegislativa_id %} selected {% endif %}>
|
|
{{t.sigla}} - {{t.descricao}}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<label>Número*</select>label>
|
|
<input type="text" name="numero_materialegislativa" value="{{numeracao.numero_materialegislativa}}" />
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label>Ano*</label>
|
|
<input type="text" name="ano_materialegislativa" value="{{numeracao.ano_materialegislativa}}" />
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label>Data</label>
|
|
<input type="text" name="data_materialegislativa" class="dateinput" value="{{numeracao.data_materialegislativa|date:'d/m/Y'}}" />
|
|
</div>
|
|
<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 %}
|