add css for people flying to study week
This commit is contained in:
@@ -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 (
|
||||
|
Reference in New Issue
Block a user