diff --git a/src/shared/templates/account/create_kanidm.html b/src/dgsi/templates/dgsi/create_kanidm_account.html similarity index 100% rename from src/shared/templates/account/create_kanidm.html rename to src/dgsi/templates/dgsi/create_kanidm_account.html diff --git a/src/shared/templates/account/profile.html b/src/dgsi/templates/dgsi/profile.html similarity index 100% rename from src/shared/templates/account/profile.html rename to src/dgsi/templates/dgsi/profile.html diff --git a/src/dgsi/urls.py b/src/dgsi/urls.py index 848df88..107b945 100644 --- a/src/dgsi/urls.py +++ b/src/dgsi/urls.py @@ -13,7 +13,7 @@ urlpatterns = [ ), path( "accounts/forbidden/", - views.TemplateView.as_view(template_name="account/forbidden_category.html"), + views.TemplateView.as_view(template_name="accounts/forbidden_category.html"), name="dgn-forbidden_account", ), path("services/", views.ServiceListView.as_view(), name="dgn-services"), diff --git a/src/dgsi/views.py b/src/dgsi/views.py index 42add5a..5b7d3c1 100644 --- a/src/dgsi/views.py +++ b/src/dgsi/views.py @@ -17,7 +17,7 @@ from shared.kanidm import client class ProfileView(LoginRequiredMixin, TemplateView): - template_name = "account/profile.html" + template_name = "dgsi/profile.html" def get_context_data(self, **kwargs): u = self.request.user @@ -48,7 +48,7 @@ class ServiceRedirectView(LoginRequiredMixin, SingleObjectMixin, RedirectView): class CreateKanidmAccountView(StaffRequiredMixin, SuccessMessageMixin, FormView): form_class = CreateKanidmAccountForm - template_name = "account/create_kanidm.html" + template_name = "dgsi/create_kanidm_account.html" success_message = _("Compte DGNum pour %(displayname)s [%(name)s] créé.") success_url = reverse_lazy("dgsi:dgn-create_user") diff --git a/src/shared/templates/account/forbidden_category.html b/src/shared/templates/accounts/forbidden_category.html similarity index 86% rename from src/shared/templates/account/forbidden_category.html rename to src/shared/templates/accounts/forbidden_category.html index c296c89..887aa24 100644 --- a/src/shared/templates/account/forbidden_category.html +++ b/src/shared/templates/accounts/forbidden_category.html @@ -3,6 +3,9 @@ {% load i18n %} {% block content %} +