diff --git a/sapl/materia/views.py b/sapl/materia/views.py index e1c7f099c..eed4b0bf3 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1681,7 +1681,7 @@ class MateriaLegislativaCrud(Crud): class DetailView(Crud.DetailView): layout_key = 'MateriaLegislativaDetail' - template_name = "materia/materia_detail.html" + template_name = "materia/materialegislativa_detail.html" def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) diff --git a/sapl/templates/materia/materia_detail.html b/sapl/templates/materia/materia_detail.html deleted file mode 100644 index ee1e97c9e..000000000 --- a/sapl/templates/materia/materia_detail.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends "crud/detail.html" %} -{% load i18n %} - -{% block detail_content %} - {{ block.super }} - {% if user.is_superuser %} -
- {% if materia.user %} -
-
-

Usuário

-
- -
-
-
- {% endif %} - {% if materia.ip %} -
-
-

IP

-
-
-
{{materia.ip}}
-
-
-
-
- {% endif %} -
- {% endif %} -{% endblock detail_content %} diff --git a/sapl/templates/materia/materialegislativa_detail.html b/sapl/templates/materia/materialegislativa_detail.html index 665e0c497..3396653c2 100644 --- a/sapl/templates/materia/materialegislativa_detail.html +++ b/sapl/templates/materia/materialegislativa_detail.html @@ -43,4 +43,34 @@ {% endfor %} {% endif %} + {% if user.is_superuser %} +
+ {% if materia.user %} +
+
+

Usuário

+
+ +
+
+
+ {% endif %} + {% if materia.ip %} +
+
+

IP

+
+
+
{{materia.ip}}
+
+
+
+
+ {% endif %} +
+ {% endif %} {% endblock detail_content %}