-
Notifications
You must be signed in to change notification settings - Fork 0
/
Menu.js
94 lines (74 loc) · 3.47 KB
/
Menu.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Mark an Attendance')
.addItem('Mark Cancelled', 'markCancelled')
.addItem('Mark Late Bail', 'markLateBail')
.addItem('Mark No Show', 'markNoShow')
.addSeparator()
.addItem('Mark Duplicate', 'markDuplicate')
.addSeparator()
.addItem('Mark Attended', 'markAttended')
.addSeparator()
.addItem('Mark ALL Attended', 'markAttendedAndCloseEvent')
// .addItem('NOT WORKING - Did not Register but showed', 'markNoRegisterShow')
.addToUi();
// create menu for dispatch functions
ui.createMenu('Assign a Role')
.addSeparator()
.addItem('Lift Sharing Coordinator', 'assignLiftSharingCoordinator')
.addItem('Climbing & Activities Coordinator', 'assignActivitiesCoordinator')
.addSeparator()
.addItem('Gear and Kit Coordinator', 'assignKitCoordinator')
.addItem('Buddy Coordinator', 'assignBuddyCoordinator')
.addSeparator()
.addItem('Trip Reporter', 'assignTripReporter')
.addSeparator()
.addItem('Evening Meal Chef', 'assignEveningMealChef')
.addItem('Lunch and Breakfast Chef', 'assignLunchAndBreakfastChef')
.addSeparator()
.addItem('Trip Director', 'assignTripDirector')
.addItem('Assistant Trip Director', 'assignAssistantTripDirector')
.addSeparator()
.addItem('Breakfast Marshal', 'assignBreakfastMarshal')
.addItem('Lunch Marshal', 'assignLunchMarshal')
.addItem('Evening Meal Washing Up Marshal', 'assignEveningMealWashingUpMarshal')
.addSeparator()
// .addItem('Head Chef', 'assignHeadChef')
.addItem('Covid Marshal', 'assignCovidMarshal')
.addSeparator()
// .addSeparator()
// .addItem('SundayPromo1', 'assignSundayPromo1')
// .addItem('SundayPromo2', 'assignSundayPromo2')
// .addItem('SundayPromo2', 'assignSundayPromo2')
.addSeparator()
.addItem('Unassign Role', 'markVolunteerClear')
.addToUi();
ui.createMenu('Refresh Matrix')
.addItem('Refresh All', 'readData')
.addSeparator()
.addItem('Refresh Food', 'readFood')
.addItem('Refresh Volunteering', 'volunteerData')
.addSeparator()
.addItem('Refresh Event Listings Dashboard', 'readEvents')
.addItem('Refresh Badges', 'badgesData')
.addToUi();
ui.createMenu('Badges')
.addItem('Mark Given Badge', 'markGivenBadge')
.addToUi();
ui.createMenu('Give Volunteer Competencies')
.addItem('Lift Sharing Coordinator - SignOff', 'giveLiftCoordinator')
.addItem('Activities Coordinator - SignOff', 'giveActivitiesCoord')
.addSeparator()
.addItem('Trip Director - Eager To Learn', 'giveTripDirectorToLearn')
.addItem('Trip Director - In Training', 'giveTripDirectorTraining')
.addItem('Trip Director - SignOff', 'giveTripDirector')
.addSeparator()
.addItem('Evening Meal Chef - Eager To Learn', 'giveEveningMealChefToLearn')
.addItem('Evening Meal Chef - In Training', 'giveEveningMealChefTraining')
.addItem('Evening Meal Chef - SignOff', 'giveEveningMealChef')
.addSeparator()
.addItem('Breakfast & Lunch Chef - Eager To Learn', 'giveBreakfastLunchChefToLearn')
.addItem('Breakfast & Lunch Chef - In Training', 'giveBreakfastLunchChefTraining')
.addItem('Breakfast & Lunch Chef - SignOff', 'giveBreakfastLunchChef')
.addToUi();
}