diff --git a/python/nav/web/arnold/forms.py b/python/nav/web/arnold/forms.py index 2622b4c46d..de48addd5a 100644 --- a/python/nav/web/arnold/forms.py +++ b/python/nav/web/arnold/forms.py @@ -56,7 +56,7 @@ def __init__(self, *args, **kwargs): fieldset_legend = 'Edit detention reason' self.attrs = set_flat_form_attributes( - form_action='arnold-justificatons', + form_action='arnold-justifications', form_fields=[ FlatFieldset( fieldset_legend, diff --git a/python/nav/web/arnold/urls.py b/python/nav/web/arnold/urls.py index 26d73a5da7..3844384ed9 100644 --- a/python/nav/web/arnold/urls.py +++ b/python/nav/web/arnold/urls.py @@ -59,16 +59,16 @@ views.render_edit_detention_profile, name="arnold-detention-profile-edit", ), - re_path(r"^addreason/$", views.render_justifications, name="arnold-justificatons"), + re_path(r"^addreason/$", views.render_justifications, name="arnold-justifications"), re_path( r"^addreason/edit/(?P\d+)$", views.render_justifications, - name="arnold-justificatons-edit", + name="arnold-justifications-edit", ), re_path( r"^addreason/delete/(?P\d+)$", views.delete_justification, - name="arnold-justificatons-delete", + name="arnold-justifications-delete", ), re_path( r"^addquarantinevlan/$", diff --git a/python/nav/web/arnold/views.py b/python/nav/web/arnold/views.py index 65138392cf..72f3d8951d 100644 --- a/python/nav/web/arnold/views.py +++ b/python/nav/web/arnold/views.py @@ -145,7 +145,7 @@ def render_justifications(request, jid=None): form = JustificationForm(request.POST) if form.is_valid(): process_justification_form(form) - return redirect('arnold-justificatons') + return redirect('arnold-justifications') elif jid: justification = Justification.objects.get(pk=jid) form = JustificationForm( @@ -214,11 +214,11 @@ def delete_justification(_request, jid): except Justification.DoesNotExist: # As this method is only called from ui on existing justifications # this should not happen. Just redirect to list again - return redirect('arnold-justificatons') + return redirect('arnold-justifications') else: justification.delete() - return redirect('arnold-justificatons') + return redirect('arnold-justifications') def render_manual_detention_step_one(request): diff --git a/python/nav/web/templates/arnold/justifications.html b/python/nav/web/templates/arnold/justifications.html index c9bb74954e..3d57c82f51 100644 --- a/python/nav/web/templates/arnold/justifications.html +++ b/python/nav/web/templates/arnold/justifications.html @@ -24,14 +24,14 @@ {{ justification.name }} {{ justification.description }} - Edit {% if justification.deletable %} - Delete diff --git a/python/nav/web/templates/arnold/tabs.html b/python/nav/web/templates/arnold/tabs.html index ee9597877c..8554c6e0fb 100644 --- a/python/nav/web/templates/arnold/tabs.html +++ b/python/nav/web/templates/arnold/tabs.html @@ -12,7 +12,7 @@ {#
  • Search
  • #}
  • - Detention reasons + Detention reasons
  • {#
  • #} {# Manual detention#}