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

@@ -434,6 +434,11 @@ function booking_report_travel() {
global $event; global $event;
$form = array(); $form = array();
$prefix = t("<h2>Travel Details</h2>"); $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 //define sorting information with the header
//as per http://www.drup-all.com/blog/table-sort-pagination-drupal-7 //as per http://www.drup-all.com/blog/table-sort-pagination-drupal-7
@@ -475,7 +480,9 @@ function booking_report_travel() {
t('node/!id', array('!id' => $person->nid)) t('node/!id', array('!id' => $person->nid))
); );
$this_row[] = t('!state', array('!state' => $person->booking_state)); $this_row[] = t('!state', array('!state' => $person->booking_state));
//$this_row[] = _booking_status_generate($person->booking_status); //$this_row[] = _booking_status_generate($person->booking_status);
$class = $data->booking_transport_type == 'Flying' ? "flying-row" : "normal-row";
//calculate the travel link //calculate the travel link
if ($person->tid > 0) { if ($person->tid > 0) {
@@ -496,7 +503,7 @@ function booking_report_travel() {
$this_row[] = "N/A"; $this_row[] = "N/A";
} }
} }
$rows[] = $this_row; $rows[] = array('data' => $this_row, 'class' => array($class));
} }
$result = array ( $result = array (