diff options
author | Matthew Lemon <y@yulqen.org> | 2024-02-12 16:05:37 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-02-12 16:05:37 +0000 |
commit | b64bb5cc7971092e76929a1cbabfafc813a8eb96 (patch) | |
tree | 55183786b66ce4e2ea29249c10b8b366bc685053 | |
parent | 2648c9dfc3440f4c00a7b234de4687cc8a93a4d0 (diff) |
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.
-rw-r--r-- | populate.sql | 1 | ||||
-rw-r--r-- | ui/html/pages/operations/list.tmpl.html | 11 | ||||
-rw-r--r-- | 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 <td><a href="#">EP 2024</a></td> <td> {{if .EngagementStrategies}} - {{range .EngagementStrategies}} - {{.}} - {{end}} + <ul> + {{range .EngagementStrategies}} + <li> + Expires: <a href="#">{{.ValidTo.Format "Mon 2 Jan 2006" }}</a> + </li> + {{end}} + + </ul> {{else}} <p>NA</p> {{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; +} + |