{% extends "admin/base_site.html" %}
{% comment %}
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
{% endcomment %}
{% load i18n %}
{% load static from staticfiles %}
{% block extrahead %}
{% endblock %}
{% block breadcrumbs %}
{% endblock %}
{% block content %}
{% load proto_tags admin_static %}
{% load static %}
{% get_static_prefix as STATIC_PREFIX %}
Contratos por entidade
{% if entidades %}
{% endif %}
{% if entidades %}
{% for e in entidades %}
{{ e.entidade }}
{% for c in e.contratos %}
{{ c.inicio|date:"d/m/Y" }} |
{{ c.termino|date:"d/m/Y" }} |
{{ c.numero }} |
{% if c.arquivo %} {% endif %} |
{% if c.auto %}Auto{% endif %} |
{% if c.os %}
{% for os in c.os %}
{% if forloop.first %}
{% endif %}
{{ os.data_inicio|date:"d/m/Y" }} |
{{ os.data_rescisao|date:"d/m/Y" }} |
{{ os.tipo.nome }} - {{ os.numero }} |
{{ os.descricao }} |
{% for a in os.arquivos.all %} {% endfor %} |
{{ os.estado }} |
|
{% endfor %}
{% endif %}
{% endfor %}
{% endfor %}
{% else %}
Não foram encontrados dados para a exibição. |
{% endif %}
{% endblock %}