From 290c337fcf84b26c0c3b10407de98159af3634f3 Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Mon, 29 May 2017 15:52:29 -0300 Subject: [PATCH] Fix #1130 --- sapl/templates/crud/detail.html | 4 ++-- sapl/templates/crud/list.html | 6 +++--- sapl/templates/norma/normajuridica_detail.html | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sapl/templates/crud/detail.html b/sapl/templates/crud/detail.html index 89d8862aa..ef07edcdf 100644 --- a/sapl/templates/crud/detail.html +++ b/sapl/templates/crud/detail.html @@ -66,9 +66,9 @@
{% comment %}TODO Transformar os links em URLs diretamente no CRUD{% endcomment %} {% if column.text|url %} - + {% else %} -
{{ column.text|safe }}
+
{{ column.text|safe|default:"Não informado" }}
{% endif %}
diff --git a/sapl/templates/crud/list.html b/sapl/templates/crud/list.html index 0d71b7760..035e92cad 100644 --- a/sapl/templates/crud/list.html +++ b/sapl/templates/crud/list.html @@ -58,12 +58,12 @@ {% for value, href in value_list %} {% if href %} - {{ value|safe }} + {{ value|safe|default:"Não informado" }} {% elif valu != 'core.Cep.None' %} {% if value|url %} - {{ value|safe }} + {{ value|safe|default:"Não informado" }} {% else %} - {{ value|safe }} + {{ value|safe|default:"Não informado" }} {% endif %} {% endif %} diff --git a/sapl/templates/norma/normajuridica_detail.html b/sapl/templates/norma/normajuridica_detail.html index ab1df921e..e9d5b6c73 100644 --- a/sapl/templates/norma/normajuridica_detail.html +++ b/sapl/templates/norma/normajuridica_detail.html @@ -14,15 +14,15 @@ {% comment %}TODO Transformar os links em URLs diretamente no CRUD{% endcomment %} {% if column.text|url %} -
{{ column.text|safe }}
+
{{ column.text|safe|default:"Não informado" }}
{% elif column.verbose_name == 'Matéria' %} {% if object.materia.id %} -
{{ column.text|safe }}
+
{{ column.text|safe|default:"Não informado" }}
{% else %} -
{{ column.text|safe }}
+
{{ column.text|safe|default:"Não informado" }}
{% endif %} {% else %} -
{{ column.text|safe }}
+
{{ column.text|safe|default:"Não informado" }}
{% endif %}