From b0b1c183d3f6be8de840de011ed25494a390498a Mon Sep 17 00:00:00 2001 From: eribeiro Date: Mon, 4 May 2020 14:00:06 -0300 Subject: [PATCH] Conserta localizacao de templates HTML --- sapl/base/views.py | 4 ++-- sapl/templates/{crud => base}/usuario_detail.html | 0 sapl/templates/{crud => base}/usuario_edit.html | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename sapl/templates/{crud => base}/usuario_detail.html (100%) rename sapl/templates/{crud => base}/usuario_edit.html (100%) diff --git a/sapl/base/views.py b/sapl/base/views.py index 86b36ff36..edb32e336 100644 --- a/sapl/base/views.py +++ b/sapl/base/views.py @@ -1807,7 +1807,7 @@ class PesquisarUsuarioView(PermissionRequiredMixin, FilterView): class DetailUsuarioView(PermissionRequiredMixin, DetailView): model = get_user_model() - template_name = "crud/usuario_detail.html" + template_name = "base/usuario_detail.html" permission_required = ('base.detail_appconfig',) def get_context_data(self, **kwargs): @@ -1897,7 +1897,7 @@ class DeleteUsuarioView(PermissionRequiredMixin, DeleteView): class EditUsuarioView(PermissionRequiredMixin, UpdateView): model = get_user_model() form_class = UsuarioEditForm - template_name = "crud/usuario_edit.html" + template_name = "base/usuario_edit.html" success_message = 'Usuário editado com sucesso!' permission_required = ('base.change_appconfig',) diff --git a/sapl/templates/crud/usuario_detail.html b/sapl/templates/base/usuario_detail.html similarity index 100% rename from sapl/templates/crud/usuario_detail.html rename to sapl/templates/base/usuario_detail.html diff --git a/sapl/templates/crud/usuario_edit.html b/sapl/templates/base/usuario_edit.html similarity index 100% rename from sapl/templates/crud/usuario_edit.html rename to sapl/templates/base/usuario_edit.html