chore(templates): Rename templates

This commit is contained in:
Tom Hubrecht 2024-09-24 11:29:47 +02:00
parent e8ce6f343b
commit e10d33176b
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc
5 changed files with 6 additions and 3 deletions

View file

@ -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"),

View file

@ -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")

View file

@ -3,6 +3,9 @@
{% load i18n %}
{% block content %}
<h2 class="subtitle">{% trans "Connexion impossible" %}</h2>
<hr>
<div class="notification is-warning is-light px-5 py-5 has-text-centered is-size-5">
{% blocktrans %}Votre catégorie de compte ENS ne permet pas de vous identifier auprès de la DGNum.<br>Si vous pensez qu'il s'agit une erreur, merci de contacter la DGNum à l'adresse : <a href="mailto:contact@dgnum.eu">contact@dgnum.eu</a>{% endblocktrans %}
</div>