chore(templates): Rename templates
This commit is contained in:
parent
e8ce6f343b
commit
e10d33176b
5 changed files with 6 additions and 3 deletions
|
@ -13,7 +13,7 @@ urlpatterns = [
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"accounts/forbidden/",
|
"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",
|
name="dgn-forbidden_account",
|
||||||
),
|
),
|
||||||
path("services/", views.ServiceListView.as_view(), name="dgn-services"),
|
path("services/", views.ServiceListView.as_view(), name="dgn-services"),
|
||||||
|
|
|
@ -17,7 +17,7 @@ from shared.kanidm import client
|
||||||
|
|
||||||
|
|
||||||
class ProfileView(LoginRequiredMixin, TemplateView):
|
class ProfileView(LoginRequiredMixin, TemplateView):
|
||||||
template_name = "account/profile.html"
|
template_name = "dgsi/profile.html"
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
u = self.request.user
|
u = self.request.user
|
||||||
|
@ -48,7 +48,7 @@ class ServiceRedirectView(LoginRequiredMixin, SingleObjectMixin, RedirectView):
|
||||||
|
|
||||||
class CreateKanidmAccountView(StaffRequiredMixin, SuccessMessageMixin, FormView):
|
class CreateKanidmAccountView(StaffRequiredMixin, SuccessMessageMixin, FormView):
|
||||||
form_class = CreateKanidmAccountForm
|
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_message = _("Compte DGNum pour %(displayname)s [%(name)s] créé.")
|
||||||
|
|
||||||
success_url = reverse_lazy("dgsi:dgn-create_user")
|
success_url = reverse_lazy("dgsi:dgn-create_user")
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block content %}
|
{% 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">
|
<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 %}
|
{% 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>
|
</div>
|
Loading…
Reference in a new issue