study group update calculations

This commit is contained in:
2014-06-14 12:18:58 +10:00
parent 7751058348
commit c9ead35f16
8 changed files with 445 additions and 56 deletions

View File

@@ -1715,6 +1715,10 @@ function booking_view($node, $view_mode) {
//add the travel info if it has been defined for this attendee
if (! empty($node->tid))
{
$travel_heading = t("<h2>Travel Details</h2><p>!link</p>",
array('!link' => l(t('Edit Travel Details'), t('node/!id/edit', array('!id' => $node->tid)))
));
$travel_rows[] = array(t('Transport Type:'), $node->booking_transport_type);
$travel_rows[] = array(t('Catching the train to Study Week:'), $node->booking_transport_from_morriset_reqd == 1 ? 'Yes' : 'No');
$travel_rows[] = array(t('Inbound Flight Number:'), $node->booking_flightnum_inbound == '' ? 'N/A' : $node->booking_flightnum_inbound);
@@ -1727,7 +1731,7 @@ function booking_view($node, $view_mode) {
$travel_rows[] = array(t('Accommodation after Study Week Required:'), $node->booking_accom_after_reqd == 1 ? 'Yes' : 'No');
$node->content['travel-heading'] = array(
'#markup' => "<h2>Travel Details</h2>",
'#markup' => $travel_heading,
'#weight' => 4,
);