From 6f879aaea0947c2c3c03bab86836e30315b74c00 Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Wed, 14 Dec 2016 12:22:01 -0200 Subject: [PATCH] Coloca link para materia no detalhe de norma juridica --- .../templates/norma/normajuridica_detail.html | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sapl/templates/norma/normajuridica_detail.html diff --git a/sapl/templates/norma/normajuridica_detail.html b/sapl/templates/norma/normajuridica_detail.html new file mode 100644 index 000000000..8d6798dfb --- /dev/null +++ b/sapl/templates/norma/normajuridica_detail.html @@ -0,0 +1,30 @@ +{% extends "crud/detail.html" %} +{% load i18n common_tags%} + +{% block detail_content %} + {% for fieldset in view.layout_display %} +

{{ fieldset.legend }}

+ {% for row in fieldset.rows %} +
+ {% for column in row %} +
+
+

{{ column.verbose_name }}

+
+ {% comment %}TODO Transformar os links em URLs diretamente no CRUD{% endcomment %} + + {% if column.text|url %} + + {% elif column.verbose_name == 'Matéria' %} + + {% else %} +
{{ column.text|safe }}
+ {% endif %} +
+
+
+ {% endfor %} +
+ {% endfor %} + {% endfor %} +{% endblock detail_content %} \ No newline at end of file