From e57836a47e913686bf33fd1ae9f18cfb3f077c1d Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Mon, 24 Aug 2015 21:08:23 +1200 Subject: [PATCH] Fixes #117 add classes for status in report also add some default css for PLEA status set. --- renderhelpers.php | 2 +- styles.css | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/renderhelpers.php b/renderhelpers.php index b8d12fb..918af32 100644 --- a/renderhelpers.php +++ b/renderhelpers.php @@ -127,7 +127,7 @@ class user_sessions_cells_html_generator extends user_sessions_cells_generator { protected function construct_existing_status_cell($text) { $this->close_open_cell_if_needed(); - $this->cells[] = $text; + $this->cells[] = html_writer::span($text, 'attendancestatus-'.$text); } protected function construct_hidden_status_cell($text) { diff --git a/styles.css b/styles.css index a57c33d..3137d7d 100644 --- a/styles.css +++ b/styles.css @@ -152,3 +152,19 @@ .path-mod-attendance .remarkholder:hover .remarkcontent { display: inline-block; } + +.path-mod-attendance .attendancestatus-P { + color: green; +} + +.path-mod-attendance .attendancestatus-E { + color: #00AEE3; +} + +.path-mod-attendance .attendancestatus-L { + color: #F7931E; +} + +.path-mod-attendance .attendancestatus-A { + color: red; +} \ No newline at end of file