diff --git a/python/nav/web/templates/alertprofiles/account_detail.html b/python/nav/web/templates/alertprofiles/account_detail.html index 6a8e02660d..105d932abf 100644 --- a/python/nav/web/templates/alertprofiles/account_detail.html +++ b/python/nav/web/templates/alertprofiles/account_detail.html @@ -50,6 +50,7 @@
Alerts you have permissions to recieve
Alert language
+ {% csrf_token %} {{ language_form.language }}
@@ -65,4 +66,3 @@
Alert language
{% endblock %} - diff --git a/python/nav/web/templates/alertprofiles/base_detail.html b/python/nav/web/templates/alertprofiles/base_detail.html index 289d22f20b..509c92c950 100644 --- a/python/nav/web/templates/alertprofiles/base_detail.html +++ b/python/nav/web/templates/alertprofiles/base_detail.html @@ -39,6 +39,7 @@
{% endblock %}
+ {% csrf_token %} @@ -67,6 +68,7 @@
+ {% csrf_token %} {% block addexpression %}

diff --git a/python/nav/web/templates/alertprofiles/base_list.html b/python/nav/web/templates/alertprofiles/base_list.html index c391968585..5276fa350b 100644 --- a/python/nav/web/templates/alertprofiles/base_list.html +++ b/python/nav/web/templates/alertprofiles/base_list.html @@ -6,6 +6,7 @@ {% endblock %} + {% csrf_token %}

{% block captioncontent %}{% endblock %}

diff --git a/python/nav/web/templates/alertprofiles/expression_form.html b/python/nav/web/templates/alertprofiles/expression_form.html index 8961f9d834..fed86b7032 100644 --- a/python/nav/web/templates/alertprofiles/expression_form.html +++ b/python/nav/web/templates/alertprofiles/expression_form.html @@ -6,6 +6,7 @@

+ {% csrf_token %}
diff --git a/python/nav/web/templates/alertprofiles/permissions.html b/python/nav/web/templates/alertprofiles/permissions.html index 92ba821acb..af0cd722a1 100644 --- a/python/nav/web/templates/alertprofiles/permissions.html +++ b/python/nav/web/templates/alertprofiles/permissions.html @@ -53,6 +53,7 @@

Choose a group to set it's permissions

{% if selected_group %} + {% csrf_token %}
diff --git a/python/nav/web/templates/alertprofiles/profile.html b/python/nav/web/templates/alertprofiles/profile.html index 68f6d42d7b..0383b08c6f 100644 --- a/python/nav/web/templates/alertprofiles/profile.html +++ b/python/nav/web/templates/alertprofiles/profile.html @@ -7,6 +7,7 @@

Profiles

+ {% csrf_token %}
Set permissions for {{ selected_group.name }}
diff --git a/python/nav/web/templates/alertprofiles/profile_detail.html b/python/nav/web/templates/alertprofiles/profile_detail.html index dd1b33eae2..a3d278886f 100644 --- a/python/nav/web/templates/alertprofiles/profile_detail.html +++ b/python/nav/web/templates/alertprofiles/profile_detail.html @@ -10,7 +10,7 @@ {% block headercontent %} {% if detail_id %} - Profile details + Profile details {% else %} New profile {% endif %} @@ -40,6 +40,7 @@

Time periods

+ {% csrf_token %} {% include "alertprofiles/timeperiods.html" %}

diff --git a/python/nav/web/templates/alertprofiles/subscription_form.html b/python/nav/web/templates/alertprofiles/subscription_form.html index 65eb0caa24..b43c94a8cd 100644 --- a/python/nav/web/templates/alertprofiles/subscription_form.html +++ b/python/nav/web/templates/alertprofiles/subscription_form.html @@ -23,6 +23,7 @@

{% if subscriptions %} + {% csrf_token %}

@@ -67,6 +68,7 @@

+ {% csrf_token %}
{{ editing|yesno:"Edit,Add new" }} subscription