From a436d6c457386240497c30311c9c53e1a32e5311 Mon Sep 17 00:00:00 2001 From: Edvin Karlsson Date: Tue, 14 Apr 2026 10:26:01 +0200 Subject: [PATCH 1/2] Added back to dashboard button on createincident, incidents and viewincident --- .../resources/templates/createincident.html | 22 +++++++++++++++++++ src/main/resources/templates/incidents.html | 21 ++++++++++++++++++ .../resources/templates/viewincident.html | 21 ++++++++++++++++++ 3 files changed, 64 insertions(+) diff --git a/src/main/resources/templates/createincident.html b/src/main/resources/templates/createincident.html index ce21bbb..1b73dba 100644 --- a/src/main/resources/templates/createincident.html +++ b/src/main/resources/templates/createincident.html @@ -61,10 +61,32 @@ button:hover { opacity: 0.9; } + + .back-dashboard-btn { + display: inline-block; + margin-bottom: 1.5rem; + margin-left: 0.25rem; + padding: 0.4rem 0.8rem; + border-radius: 999px; + border: 1px solid #2a2a2a; + background: transparent; + color: #9ca3af; + text-decoration: none; + font-size: 0.8rem; + transition: 0.2s; + } + + .back-dashboard-btn:hover { + border-color: #10b981; + color: #10b981; + }
+ + Back to dashboard +

Report Incident

diff --git a/src/main/resources/templates/incidents.html b/src/main/resources/templates/incidents.html index 32dc53e..d45a4a9 100644 --- a/src/main/resources/templates/incidents.html +++ b/src/main/resources/templates/incidents.html @@ -82,11 +82,32 @@ border-color: #10b981; color: #10b981; } + + .back-dashboard-btn { + display: inline-block; + margin-bottom: 1.2rem; + padding: 0.4rem 0.8rem; + border-radius: 999px; + border: 1px solid #2a2a2a; + background: transparent; + color: #9ca3af; + text-decoration: none; + font-size: 0.8rem; + transition: 0.2s; + } + + .back-dashboard-btn:hover { + border-color: #10b981; + color: #10b981; + }
+ + Back to dashboard +

Active incidents

diff --git a/src/main/resources/templates/viewincident.html b/src/main/resources/templates/viewincident.html index 639bcbf..bc17134 100644 --- a/src/main/resources/templates/viewincident.html +++ b/src/main/resources/templates/viewincident.html @@ -121,11 +121,32 @@ color: #6b7280; font-size: 0.9rem; } + + .back-dashboard-btn { + display: inline-block; + margin-bottom: 1.2rem; + padding: 0.4rem 0.8rem; + border-radius: 999px; + border: 1px solid #2a2a2a; + background: transparent; + color: #9ca3af; + text-decoration: none; + font-size: 0.8rem; + transition: 0.2s; + } + + .back-dashboard-btn:hover { + border-color: #10b981; + color: #10b981; + }
+ + Back to dashboard +

Incident details

From 47f3f90088fd2b82b746c729b1d6c94cc0cd487a Mon Sep 17 00:00:00 2001 From: Edvin Karlsson Date: Tue, 14 Apr 2026 10:33:48 +0200 Subject: [PATCH 2/2] fixed bug on view button --- src/main/resources/templates/incidents.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/templates/incidents.html b/src/main/resources/templates/incidents.html index d45a4a9..b7d6807 100644 --- a/src/main/resources/templates/incidents.html +++ b/src/main/resources/templates/incidents.html @@ -194,7 +194,7 @@

Active incidents

} function viewIncident(id) { - window.location.href = `/incident/${id}`; + window.location.href = `/incidents/${id}`; } function escapeHtml(str) {