{% 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>
			<legend>Legislação Citada</legend>
			<table class="table table-striped table-bordered">
				<thead class="thead-default">
					<tr>
						<th>Tipo Norma</th>
						<th>Número</th>
						<th>Ano</th>
						<th>Disposição</th>
					</tr>
				</thead>
				{% for l in legislacao %}
					<tr>
						<td><a href="{% url 'legislacao_citada_edit' object.id l.id %}">{{l.norma.tipo.descricao}}</a></td>
						<td>{{l.norma.numero}}</td>
						<td>{{l.norma.ano}}</td>
						<td>{{l.disposicoes}}</td>
					</tr>
				{% endfor %}
			</table>
		</fieldset>
		{% crispy form %}
	</fieldset>
{% endblock %}