From 3922c8518b92c7015dad4ee1b8445121e36f05b1 Mon Sep 17 00:00:00 2001 From: Augustin-FL Date: Fri, 27 Dec 2024 15:54:16 +0100 Subject: [PATCH] using IDs twice is not allowed in HTML --- .../fir_notifications/preferences.html | 4 ++-- incidents/templates/events/new.html | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/fir_notifications/templates/fir_notifications/preferences.html b/fir_notifications/templates/fir_notifications/preferences.html index f0f12782..8664ac96 100644 --- a/fir_notifications/templates/fir_notifications/preferences.html +++ b/fir_notifications/templates/fir_notifications/preferences.html @@ -18,7 +18,7 @@

{% trans "Notification preferences" %}

{% for form in forms %}
- + {{ form.business_lines|add_css_class:"form-control" }} {% for hidden in form.hidden_fields %} {{ hidden }} @@ -36,4 +36,4 @@

{% trans "Notification preferences" %}

-{% endif %} \ No newline at end of file +{% endif %} diff --git a/incidents/templates/events/new.html b/incidents/templates/events/new.html index 8c43b1e2..054ab721 100755 --- a/incidents/templates/events/new.html +++ b/incidents/templates/events/new.html @@ -66,41 +66,41 @@

{% if i.is_incident %}{% trans "Incident" %}{%else%}{% tra {% include 'events/_form_errors.html' with errors=form.subject.errors %}
- + {{ form.concerned_business_lines|add_css_class:"form-control" }} {% include 'events/_form_errors.html' with errors=form.concerned_business_lines.errors %}
- + {{ form.category|add_css_class:"form-control" }} {% include 'events/_form_errors.html' with errors=form.category.errors %}
- + {{ form.status|add_css_class:"form-control" }} {% include 'events/_form_errors.html' with errors=form.status.errors %}
- + {{ form.detection|add_css_class:"form-control" }} {% include 'events/_form_errors.html' with errors=form.detection.errors %}
- + {{ form.severity|add_css_class:"form-control" }} {% include 'events/_form_errors.html' with errors=form.severity.errors %}
- + {{ form.date|add_css_class:"form-control datetime" }} {% include 'events/_form_errors.html' with errors=form.date.errors %}
- + {{ form.confidentiality|add_css_class:"form-control" }} {% include 'events/_form_errors.html' with errors=form.confidentiality.errors %}
@@ -123,12 +123,12 @@

{% if i.is_incident %}{% trans "Incident" %}{%else%}{% tra
- + {{ form.actor|add_css_class:"form-control" }} {% include 'events/_form_errors.html' with errors=form.actor.errors %}
- + {{ form.plan|add_css_class:"form-control" }} {% include 'events/_form_errors.html' with errors=form.plan.errors %}