From 8b3ddec283e7c68717205579a80a12df627283eb Mon Sep 17 00:00:00 2001 From: Matt Way Date: Sun, 18 Aug 2024 23:43:58 +1000 Subject: [PATCH] Improve LGA template - Use columns instead of grid so it looks better on mobile - Add message if there are no candidates for a particular ward - Tweak spacing of candidate name and ticks --- php-template/template.php | 105 +++++++++++++++++++++++--------------- 1 file changed, 65 insertions(+), 40 deletions(-) diff --git a/php-template/template.php b/php-template/template.php index dc3b450..ca7f55a 100644 --- a/php-template/template.php +++ b/php-template/template.php @@ -13,55 +13,80 @@ $wardName): ?> - - -

- + + +

+ - - -
- $candidate): ?> - -
- 0): + ?> + + - -
- + + +
+ + + +
- -

- + + -

+ if (isset($candidate['Picture']) && isset($media[$candidate['Picture']])) { + $candidate_image = $media[$candidate['Picture']]; + } else { + $candidate_image = $media['default.png']; + } + ?> + + +
+ + + +

+ + + +

+ + + +
+ + + +
+ + + + + + +

We don't know who the candidates are for ward yet.

-
- - -
- + +