also add highlighting for people that want accommodation

This commit is contained in:
2016-06-26 22:14:51 +10:00
parent f628e41677
commit 91efbb80d6
2 changed files with 7 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ tr.welfare-row.odd {background: #c3e06c;}
tr.welfare-row.even {background: #c3e06c;} tr.welfare-row.even {background: #c3e06c;}
tr.flying-row.odd {background: #c3e06c;} tr.flying-row.odd {background: #c3e06c;}
tr.flying-row.even {background: #e5f2c0;} tr.flying-row.even {background: #e5f2c0;}
tr.accomm-row.odd {background: #ffb380;}
tr.accomm-row.even {background: #ffb380;}
div#booking_email_preselection_suffix_wrapper { div#booking_email_preselection_suffix_wrapper {
margin-bottom: 10px; margin-bottom: 10px;
} }

View File

@@ -492,6 +492,11 @@ function booking_report_travel() {
$person->booking_flight_datetime_outbound == 0 ? '' : format_date($person->booking_flight_datetime_outbound, 'custom', 'd/m/Y H:i'))); $person->booking_flight_datetime_outbound == 0 ? '' : format_date($person->booking_flight_datetime_outbound, 'custom', 'd/m/Y H:i')));
$this_row[] = t('!beforeaccom', array('!beforeaccom' => $person->booking_accom_before_reqd == 1 ? 'Yes' : 'No')); $this_row[] = t('!beforeaccom', array('!beforeaccom' => $person->booking_accom_before_reqd == 1 ? 'Yes' : 'No'));
$this_row[] = t('!afteraccom', array('!afteraccom' => $person->booking_accom_after_reqd == 1 ? 'Yes' : 'No')); $this_row[] = t('!afteraccom', array('!afteraccom' => $person->booking_accom_after_reqd == 1 ? 'Yes' : 'No'));
//mark people requiring accommodation in a different colour so they stand out more
if ($person->booking_accom_before_reqd == 1 || $person->booking_accom_after_reqd == 1) {
$class = "accomm-row";
}
} }
else { else {
for ($i = 0; $i < 8; $i++) { for ($i = 0; $i < 8; $i++) {