new report for leaders/helpers

This commit is contained in:
Nathan Coad
2016-06-08 12:03:41 +10:00
parent 4d06713fea
commit e3030316d6
2 changed files with 77 additions and 17 deletions

View File

@@ -292,7 +292,21 @@ function booking_menu() {
'page arguments' => array(3), //include the temporary id
'access arguments' => array('access booking form'),
'type' => MENU_SUGGESTED_ITEM,
);
);
$items['coming'] = array(
'title' => "Who's Coming?",
'page callback' => 'booking_coming_page',
'access arguments' => array("access coming list"),
'type' => MENU_NORMAL_ITEM,
);
$items['waitinglist'] = array(
'title' => "Who's on the waiting list?",
'page callback' => 'booking_waitinglist_page',
'access arguments' => array("access waiting list"),
'type' => MENU_NORMAL_ITEM,
);
//Various reports
$items['admin/booking/summary'] = array(
@@ -347,21 +361,6 @@ function booking_menu() {
'access arguments' => array('import bookings'),
'type' => MENU_NORMAL_ITEM,
);
$items['coming'] = array(
'title' => "Who's Coming?",
'page callback' => 'booking_coming_page',
'access arguments' => array("access coming list"),
'type' => MENU_NORMAL_ITEM,
);
$items['waitinglist'] = array(
'title' => "Who's on the waiting list?",
'page callback' => 'booking_waitinglist_page',
'access arguments' => array("access waiting list"),
'type' => MENU_NORMAL_ITEM,
);
//show flight info report only if we have passport info enabled
if (variable_get('booking_enable_passport', 0) == 1)
@@ -478,7 +477,17 @@ function booking_menu() {
'page callback' => 'booking_studygroups_view_summary',
'access arguments' => array("view study groups"),
'type' => MENU_NORMAL_ITEM,
);
);
//@todo a nice report with everyone's studygroup membership
$items['admin/booking/studygroups/report/leadershelpers'] = array(
'title' => 'View Studygroup Leaders and Helpers',
'description' => 'View Studygroup Leaders and Helpers',
'page callback' => 'booking_studygroups_leadhelp_view_summary',
'access arguments' => array("view study groups"),
'type' => MENU_LOCAL_ACTION,
);
$items['admin/booking/studygroups/calculateleaders'] = array(
'title' => 'Calculate Study Group Leaders',