add css for people flying to study week

This commit is contained in:
2016-06-26 22:02:15 +10:00
parent c8c6f50a04
commit f09811990d

View File

@@ -435,6 +435,11 @@ function booking_report_travel() {
$form = array();
$prefix = t("<h2>Travel Details</h2>");
//attach css so we can customise colours for some people
$form['#attached']['css'] = array(
drupal_get_path('module', 'booking') . '/booking.css',
);
//define sorting information with the header
//as per http://www.drup-all.com/blog/table-sort-pagination-drupal-7
$header = array();
@@ -477,6 +482,8 @@ function booking_report_travel() {
$this_row[] = t('!state', array('!state' => $person->booking_state));
//$this_row[] = _booking_status_generate($person->booking_status);
$class = $data->booking_transport_type == 'Flying' ? "flying-row" : "normal-row";
//calculate the travel link
if ($person->tid > 0) {
//$travel_link = l(t('Travel'), t('node/!id/edit', array('!id' => $person->tid)));
@@ -496,7 +503,7 @@ function booking_report_travel() {
$this_row[] = "N/A";
}
}
$rows[] = $this_row;
$rows[] = array('data' => $this_row, 'class' => array($class));
}
$result = array (