Browse Source

Fixes #117 add classes for status in report

also add some default css for PLEA status set.
MOODLE_29_STABLE
Dan Marsden 9 years ago
parent
commit
e57836a47e
  1. 2
      renderhelpers.php
  2. 16
      styles.css

2
renderhelpers.php

@ -127,7 +127,7 @@ class user_sessions_cells_html_generator extends user_sessions_cells_generator {
protected function construct_existing_status_cell($text) { protected function construct_existing_status_cell($text) {
$this->close_open_cell_if_needed(); $this->close_open_cell_if_needed();
$this->cells[] = $text; $this->cells[] = html_writer::span($text, 'attendancestatus-'.$text);
} }
protected function construct_hidden_status_cell($text) { protected function construct_hidden_status_cell($text) {

16
styles.css

@ -152,3 +152,19 @@
.path-mod-attendance .remarkholder:hover .remarkcontent { .path-mod-attendance .remarkholder:hover .remarkcontent {
display: inline-block; 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;
}
Loading…
Cancel
Save