From b64bb5cc7971092e76929a1cbabfafc813a8eb96 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 12 Feb 2024 16:05:37 +0000 Subject: Some formatting for ESes in Ops table Added another dummy ES to Operation 1 in test data so I can test the listing inside the table - it still does not look correct though. --- populate.sql | 1 + ui/html/pages/operations/list.tmpl.html | 11 ++++++++--- ui/static/css/main.css | 8 +++++++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/populate.sql b/populate.sql index a78cfd5..a72e38c 100644 --- a/populate.sql +++ b/populate.sql @@ -69,6 +69,7 @@ INSERT INTO operations (name, created, description, organisation_id) VALUES ("Op INSERT INTO operations (name, created, description, organisation_id) VALUES ("Operation 3", UTC_TIMESTAMP(), "Operation 3 Description", 2); /* Create some ESs */ +INSERT INTO engagement_strategies (valid_from, valid_to, operation_id, created) VALUES ("2021-01-01", "2023-01-01", 1, UTC_TIMESTAMP()); INSERT INTO engagement_strategies (valid_from, valid_to, operation_id, created) VALUES ("2023-01-01", "2025-01-01", 1, UTC_TIMESTAMP()); diff --git a/ui/html/pages/operations/list.tmpl.html b/ui/html/pages/operations/list.tmpl.html index 2e5a07b..240ba40 100644 --- a/ui/html/pages/operations/list.tmpl.html +++ b/ui/html/pages/operations/list.tmpl.html @@ -32,9 +32,14 @@ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod EP 2024 {{if .EngagementStrategies}} - {{range .EngagementStrategies}} - {{.}} - {{end}} + {{else}}

NA

{{end}} diff --git a/ui/static/css/main.css b/ui/static/css/main.css index 45a1258..8bb7647 100644 --- a/ui/static/css/main.css +++ b/ui/static/css/main.css @@ -32,9 +32,15 @@ table#home-summary-table td { background: white; } -table#home-summary-table th { +table#home-summary-table th +{ /* border: solid 2px #ccc; */ background: lightgray; font-weight: unset; } +table#home-summary-table li +{ + background: white; +} + -- cgit v1.2.3