chore(dgsi): Uniformize
This commit is contained in:
parent
79172f4ec0
commit
31c414918b
4 changed files with 15 additions and 15 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
{% for file in document_list %}
|
||||
<a class="button bt-archive"
|
||||
{% if file.kind == "statutes" or file.kind == "bylaws" %} href="{{ file.file.url }}" {% else %} href="{% url "dgsi:protected-archive" file.pk %}" {% endif %}>
|
||||
{% if file.kind == "statutes" or file.kind == "bylaws" %} href="{{ file.file.url }}" {% else %} href="{% url "dgsi:protected_archive" file.pk %}" {% endif %}>
|
||||
<span class="tag is-{{ file.color }} is-pulled-left">
|
||||
<span class="icon"><i class="ti ti-{{ file.icon }}"></i></span>
|
||||
</span>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<div class="buttons bt-links">
|
||||
{% for service in service_list %}
|
||||
<a class="button is-medium"
|
||||
href="{% url "dgsi:services_redirect" service.pk %}">
|
||||
href="{% url "dgsi:service_redirect" service.pk %}">
|
||||
<span class="icon"><i class="ti ti-{{ service.icon }}"></i></span>
|
||||
<span>{{ service.name }}</span>
|
||||
</a>
|
||||
|
|
|
@ -28,12 +28,12 @@ urlpatterns = [
|
|||
path(
|
||||
"archives/",
|
||||
views.ArchiveListView.as_view(),
|
||||
name="archives",
|
||||
name="archive_list",
|
||||
),
|
||||
path(
|
||||
"archives/<int:pk>/",
|
||||
views.ProtectedArchiveView.as_view(),
|
||||
name="protected-archive",
|
||||
name="protected_archive",
|
||||
),
|
||||
###
|
||||
# Legal documents
|
||||
|
@ -52,12 +52,12 @@ urlpatterns = [
|
|||
path(
|
||||
"services/",
|
||||
views.ServiceListView.as_view(),
|
||||
name="services",
|
||||
name="service_list",
|
||||
),
|
||||
path(
|
||||
"services/redirect/<int:pk>/",
|
||||
views.ServiceRedirectView.as_view(),
|
||||
name="services_redirect",
|
||||
name="service_redirect",
|
||||
),
|
||||
###
|
||||
# Profile views
|
||||
|
@ -67,7 +67,7 @@ urlpatterns = [
|
|||
name="profile",
|
||||
),
|
||||
path(
|
||||
"accounts/profile/apple-config/",
|
||||
"accounts/profile/apple/",
|
||||
views.AppleProfileView.as_view(),
|
||||
name="apple_profile",
|
||||
),
|
||||
|
@ -86,7 +86,7 @@ urlpatterns = [
|
|||
path(
|
||||
"accounts/create-kanidm/",
|
||||
views.CreateKanidmAccountView.as_view(),
|
||||
name="create_kanidm_user",
|
||||
name="create_kanidm_account",
|
||||
),
|
||||
path(
|
||||
"accounts/list/",
|
||||
|
@ -95,12 +95,12 @@ urlpatterns = [
|
|||
),
|
||||
path(
|
||||
"accounts/assign-vlan/<int:pk>",
|
||||
views.AssignVlanView.as_view(),
|
||||
views.UserAssignVlanView.as_view(),
|
||||
name="user_assign_vlan",
|
||||
),
|
||||
path(
|
||||
"accounts/deassign-vlan/<int:pk>",
|
||||
views.DeassignVlanView.as_view(),
|
||||
views.UserDeassignVlanView.as_view(),
|
||||
name="user_deassign_vlan",
|
||||
),
|
||||
]
|
||||
|
|
|
@ -44,14 +44,14 @@ AUTHENTICATED_LINKS = [
|
|||
True,
|
||||
),
|
||||
Link("is-primary", "dgsi:legal_documents", _("Documents Légaux"), "script"),
|
||||
Link("is-info", "dgsi:services", _("Services proposés"), "apps-filled"),
|
||||
Link("is-success", "dgsi:archives", _("Archives"), "archive"),
|
||||
Link("is-info", "dgsi:service_list", _("Services proposés"), "apps-filled"),
|
||||
Link("is-success", "dgsi:archive_list", _("Archives"), "archive"),
|
||||
]
|
||||
|
||||
ADMIN_LINKS = [
|
||||
Link(
|
||||
"is-danger",
|
||||
"dgsi:create_kanidm_user",
|
||||
"dgsi:create_kanidm_account",
|
||||
_("Créer un compte Kanidm"),
|
||||
"user-plus",
|
||||
),
|
||||
|
@ -353,7 +353,7 @@ class UserListView(StaffRequiredMixin, ListView):
|
|||
ordering = ["username"]
|
||||
|
||||
|
||||
class AssignVlanView(StaffRequiredMixin, HtmxPostObjectMixin, View):
|
||||
class UserAssignVlanView(StaffRequiredMixin, HtmxPostObjectMixin, View):
|
||||
model = User
|
||||
template_name = "dgsi/partials/user_list-user.html"
|
||||
context_object_name = "person"
|
||||
|
@ -362,7 +362,7 @@ class AssignVlanView(StaffRequiredMixin, HtmxPostObjectMixin, View):
|
|||
self.object.register_unique_vlan()
|
||||
|
||||
|
||||
class DeassignVlanView(StaffRequiredMixin, HtmxPostObjectMixin, View):
|
||||
class UserDeassignVlanView(StaffRequiredMixin, HtmxPostObjectMixin, View):
|
||||
model = User
|
||||
template_name = "dgsi/partials/user_list-user.html"
|
||||
context_object_name = "person"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue