@@ -17,121 +17,7 @@ def ticket_dialog(clicker_email, text):
1717 }
1818
1919
20- def mentor_request_attachments (services , mentors , skillsets ):
21- return [
22- {
23- "callback_id" : "mentor_request_update" ,
24- "fallback" : "Mentor Request" ,
25- "pretext" : "Service (Required)" ,
26- "actions" : [
27- {
28- "type" : "select" ,
29- "text" : "Service" ,
30- "name" : "service" ,
31- "options" : [
32- {"text" : service , "value" : service }
33- for service in sorted (services )
34- ],
35- }
36- ],
37- },
38- {
39- "callback_id" : "mentor_request_update" ,
40- "pretext" : "Mentor skillset" ,
41- "fallback" : "Mentor skillset" ,
42- "actions" : [
43- {
44- "type" : "select" ,
45- "text" : "Skillset" ,
46- "name" : "skillset" ,
47- "options" : [
48- {"text" : skillset , "value" : skillset }
49- for skillset in sorted (skillsets )
50- ],
51- },
52- {
53- "type" : "button" ,
54- "text" : "Clear Skillsets" ,
55- "name" : "clearSkills" ,
56- "value" : "clearSkills" ,
57- },
58- ],
59- },
60- {
61- "callback_id" : "mentor_request_update" ,
62- "pretext" : "Select a specific mentor" ,
63- "fallback" : "Mentor Request" ,
64- "actions" : [
65- {
66- "type" : "select" ,
67- "text" : "Specific Mentor" ,
68- "name" : "mentor" ,
69- "options" : [
70- {"text" : mentor , "value" : mentor } for mentor in sorted (mentors )
71- ],
72- },
73- {
74- "type" : "button" ,
75- "text" : "Clear Mentor" ,
76- "name" : "clearMentor" ,
77- "value" : "clearMentor" ,
78- },
79- ],
80- },
81- {
82- "callback_id" : "mentor_request_update" ,
83- "pretext" : "Additional Comments" ,
84- "fallback" : "Additional Comments" ,
85- "actions" : [
86- {
87- "type" : "button" ,
88- "text" : "Add details" ,
89- "name" : "addDetails" ,
90- "value" : "addDetails" ,
91- }
92- ],
93- },
94- {
95- "callback_id" : "mentor_request_update" ,
96- "pretext" : "I certify that I am a member of the following group (Required)" ,
97- "fallback" : "Mentor Request" ,
98- "actions" : [
99- {
100- "type" : "select" ,
101- "name" : "group" ,
102- "value" : "" ,
103- "options" : [
104- {"text" : "Active Duty" , "value" : "Active Duty" },
105- {"text" : "Military Spouse" , "value" : "Military Spouse" },
106- {"text" : "Veteran" , "value" : "Veteran" },
107- ],
108- }
109- ],
110- },
111- {
112- "callback_id" : "mentor_request_submit" ,
113- "fallback" : "Mentor Request" ,
114- "actions" : [
115- {
116- "type" : "button" ,
117- "text" : "Submit" ,
118- "name" : "submit" ,
119- "value" : "submit" ,
120- "style" : "primary" ,
121- },
122- {
123- "type" : "button" ,
124- "text" : "Cancel" ,
125- "name" : "cancel" ,
126- "value" : "cancel" ,
127- "style" : "danger" ,
128- },
129- ],
130- },
131- ]
132-
133-
134- def new_mentor_request_attachment (services , mentors , skillsets ):
20+ def mentor_reques_blocks (services , mentors , skillsets ):
13521 return [
13622 {
13723 "type" : "section" ,
0 commit comments