From d7a4d7698a92e111fcdd6e7cc88881ae52b0d321 Mon Sep 17 00:00:00 2001 From: Juan Rocha Date: Tue, 8 Oct 2024 08:45:21 +0200 Subject: [PATCH 1/2] [regulator_incidents]Improved menu --- templates/incidents_base.html | 4 ++-- templates/regulator/menu.html | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/incidents_base.html b/templates/incidents_base.html index ed92a63..3df1d6a 100644 --- a/templates/incidents_base.html +++ b/templates/incidents_base.html @@ -24,8 +24,8 @@

{% translate "Reported incidents" %}

{% endblock %} {% settings_value "TIME_ZONE" as time_zone %} -
- {% if not is_regulator and not is_observer %} +
+ {% if not is_regulator and not is_observer or is_regulator_incidents %}
{% translate "Report an incident" %} diff --git a/templates/regulator/menu.html b/templates/regulator/menu.html index 0b30e22..ae61ac7 100644 --- a/templates/regulator/menu.html +++ b/templates/regulator/menu.html @@ -16,7 +16,6 @@ \ No newline at end of file From ac6e5a1e778364134dd5845b531bac8091377769 Mon Sep 17 00:00:00 2001 From: Juan Rocha Date: Tue, 8 Oct 2024 11:10:29 +0200 Subject: [PATCH 2/2] [incidents]Changed text-align in date column, closes informed-governance-project/NISINP#209 --- templates/incidents_base.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/templates/incidents_base.html b/templates/incidents_base.html index 3df1d6a..4c4feff 100644 --- a/templates/incidents_base.html +++ b/templates/incidents_base.html @@ -75,25 +75,25 @@

{% translate "Reported incidents" %}

- - - + + - - - - + + - - - + + + {% for incident in incidents %} {% timezone time_zone %} -
{% translate "Incident notification date" %}{% translate "Reference" %} + {% translate "Incident notification date" %}{% translate "Reference" %} {% if is_observer %} {% translate "Regulator" %} {% else %} {% translate "Regulation" %} {% endif %} + {% if is_regulator and not is_regulator_incidents or is_observer %} {% translate "Operator" %} {% else %} {% translate "Regulator" %} {% endif %} {% translate "Sectors" %}{% translate "Subsectors" %} + {% translate "Sectors" %}{% translate "Subsectors" %} @@ -101,16 +101,16 @@

{% translate "Reported incidents" %}

{% translate "Report" %}
{% translate "Incident status" %}{% translate "Significant impact" %}{% translate "Actions" %}{% translate "Incident status" %}{% translate "Significant impact" %}{% translate "Actions" %}
+ {{incident.incident_notification_date|date:"d M Y, H:i" }}