{% extends "protocoloadm/detail_doc_detail.html" %}
{% load i18n %}
{% load crispy_forms_tags %}

{% block detail_content %}
	<fieldset>
		<legend>Documento Administrativo</legend>
		<ul class="small-block-grid-3 medium-block-grid-3 large-block-grid-3">
			<li>Tipo: <b>{{doc.tipo.sigla}}</b></li>
			<li>Número: <b>{{doc.numero}}</b></li>
			<li>Ano: <b>{{doc.ano}}</b></li>
		</ul>
		Assunto: <b>{{doc.assunto}}</b>

		<fieldset>
			<legend>Documentos Acessórios</legend>
			{{ doc_ace_null }}
			<table>
				<tr>
					<th>Documento</th>
					<th>Nome</th>
					<th>Tipo</th>
					<th>Data</th>
					<th>Autor</th>
				</tr>
				{% for d in doc_ace %}
					<tr>
						<td>{{d.arquivo}}</td>
						<td>{{d.nome}}</td>
						<td>{{d.tipo.descricao}}</td>
						<td>{{d.data|date:"d/m/Y"}}</td>
						<td>{{d.autor}}</td>
					</tr>
				{% endfor %}
			</table>
		</fieldset>

		{% crispy form %}
	</fieldset>
{% endblock %}