Skip to content

Commit

Permalink
Activities: update View Activities to highlight waiting list registra…
Browse files Browse the repository at this point in the history
…tions in orange
  • Loading branch information
SKuipers committed Aug 8, 2023
1 parent 2c6a4c4 commit 9d1cd18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ v26.0.00
System: added additional sanitization to GET variables and alerts
System: added a system log when passwords are manually changed in User Admin
Attendance: added the name of attendance last taken to Form Groups Not Registered
Activities: updated View Activities to highlight waiting list registrations in orange
Behaviour: added a list of failed email addresses to behaviour letter CLI script
Behaviour: added a notification event for receiving behaviour notifications about IN students
Library: added a confirmation step to replace the name of books using Google Book Data
Expand Down
3 changes: 2 additions & 1 deletion modules/Activities/activities_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@
});

$table->modifyRows(function ($activity, $row) {
if (!empty($activity['currentEnrolment'])) $row->addClass('current');
if (!empty($activity['currentEnrolment']) && $activity['currentEnrolment']['status'] != 'Waiting List') $row->addClass('current');
if (!empty($activity['currentEnrolment']) && $activity['currentEnrolment']['status'] == 'Waiting List') $row->addClass('warning');
else if ($activity['registration'] != 'Y') $row->addClass('dull');
else if ($activity['enrolmentFull']) $row->addClass('error');

Expand Down

0 comments on commit 9d1cd18

Please sign in to comment.