37
37
{% block styles %}
38
38
{{super()}}
39
39
< link href ="
https://cdn.jsdelivr.net/gh/kartik-v/[email protected] /css/fileinput.min.css "
media ="
all "
rel ="
stylesheet "
type ="
text/css "
/>
40
+ < link rel ="stylesheet " href ="/static/css/createEvent.css ">
40
41
{% endblock %}
41
42
42
43
{% block app_content %}
@@ -59,10 +60,7 @@ <h1>{{page_title}}</h1>
59
60
60
61
< div class ="form-group mb-4 ">
61
62
< label class ="required form-label " for ='inputEventLocation-{{pageLocation}} '> < strong > Location</ strong > </ label >
62
- < input class ="form-control " id ='inputEventLocation-{{pageLocation}} ' placeholder ="Enter location " name ="location " required >
63
- {% if eventData.location %}
64
- value="{{eventData.location}}"
65
- {% endif %}
63
+ < input class ="form-control " id ='inputEventLocation-{{pageLocation}} ' placeholder ="Enter location " name ="location " value ="{{eventData.location}} " required >
66
64
</ div >
67
65
<!-- Start and End Datepickers -->
68
66
< div class ="row col-md-12 ">
@@ -134,7 +132,7 @@ <h1>{{page_title}}</h1>
134
132
< div class ="row p-2 ">
135
133
< div class ="col-md-6 ">
136
134
{% if eventData.id %}
137
- < input type ="hidden " name ="id " value ="{{eventData.id}} ">
135
+ < input type ="hidden " id =" newEventID " name ="id " value ="{{eventData.id}} ">
138
136
{% endif %}
139
137
< div class ="form-group mb-4 ">
140
138
< label class ="required form-label " for ='inputEventName '> < strong > Event Name</ strong > </ label >
@@ -233,35 +231,42 @@ <h1>{{page_title}}</h1>
233
231
</ div >
234
232
{% if page_title != 'Create All Volunteer Training' %}
235
233
< div class ="pt-4 mb-4 ">
236
- < div class ="row col-md-12 ">
237
- < div class ="form-group col-md-6 ">
234
+ < div class ="row ">
235
+ < div class ="form-group col-xl-5 ">
236
+ < label class ="label toggleHeader "> (Optional)</ label >
238
237
< div class ="form-check form-switch mb-2 ">
239
238
< label class ="custom-control-label " for ='checkRSVP '> < strong > This event requires RSVP.</ strong > </ label >
240
239
< input class ="form-check-input " type ="checkbox " id ="checkRSVP " name ="isRsvpRequired " {{ "checked" if eventData.isRsvpRequired}}/>
241
240
</ div >
242
- </ div >
243
- < div class ="form-group col-md-6 ">
244
- < div class ="form-check form-switch ">
245
- < label class ="custom-control-label " for ="checkIsTraining "> < strong > This event is a training.</ strong > </ label >
246
- < input class ="form-check-input " type ="checkbox " id ="checkIsTraining " name ="isTraining " {{ "checked" if eventData.isTraining}}/>
247
- </ div >
248
- </ div >
249
- < div class ="form-group col-md-6 mb-3 ">
250
- < div class ="form-check form-switch ">
251
- {% set hide = "" if eventData.isRsvpRequired else "display: none" %}
252
- < div class ="form-group " id ="limitGroup " style = "{{hide}} ">
253
- < label class ="form-label mt-2 " for ='limitRsvp '> < strong > Attendance Limit</ strong > </ label >
254
- < input class ="form-control mb-2 " type ="number " id ="limitRsvp " name ="rsvpLimit " value ="{{eventData.rsvpLimit}} " min ="0 " placeholder ="No Limit " pattern ="^[0-9]+$ "> </ input >
241
+ < div class ="form-group mb-3 ">
242
+ < div class ="form-check form-switch ">
243
+ {% set hide = "" if eventData.isRsvpRequired else "display: none" %}
244
+ < div class ="form-group " id ="limitGroup " style = "{{hide}} ">
245
+ < label class ="form-label mt-2 " for ='limitRsvp '> < strong > Attendance Limit</ strong > </ label >
246
+ < input class ="form-control mb-2 " type ="number " id ="limitRsvp " name ="rsvpLimit " value ="{{eventData.rsvpLimit}} " min ="0 " placeholder ="No Limit " pattern ="^[0-9]+$ "> </ input >
247
+ </ div >
248
+ < label class ="custom-control-label " for ="checkFood "> < strong > This event will provide food.</ strong > </ label >
249
+ < input class ="form-check-input " type ="checkbox " id ="checkFood " name ="isFoodProvided " {{ "checked" if eventData.isFoodProvided}}/>
255
250
</ div >
256
- < label class ="custom-control-label " for ="checkFood "> < strong > This event will provide food.</ strong > </ label >
257
- < input class ="form-check-input " type ="checkbox " id ="checkFood " name ="isFoodProvided " {{ "checked" if eventData.isFoodProvided}}/>
258
251
</ div >
259
252
</ div >
260
- < div class ="form-group col-md-6 ">
253
+ < div class ="col-xl-1 columnDivide "> </ div >
254
+ < div class ="form-group col-xl-6 ">
255
+ < label class ="label required toggleHeader "> (Must Select One)</ label >
256
+ < div class ="form-check form-switch ">
257
+ < label class ="custom-control-label " for ="checkIsTraining "> < strong > This event is a training.</ strong > </ label >
258
+ < input class ="form-check-input " type ="checkbox " id ="checkIsTraining " name ="isTraining " {{ "checked" if eventData.isTraining}}/>
259
+ </ div >
261
260
< div class ="form-check form-switch ">
262
261
< label class ="custom-control-label " for ='checkServiceHours '> < strong > This event earns service hours.</ strong > </ label >
263
262
< input class ="form-check-input " type ="checkbox " id ="checkServiceHours " name ="isService " {{ "checked" if eventData.isService}}/>
264
263
</ div >
264
+ {% if eventData['program'].isBonnerScholars %}
265
+ < div class ="form-check form-switch ">
266
+ < label class ="custom-control-label " for ='checkBonners '> < strong > This is a Bonner Scholars event.</ strong > </ label >
267
+ < input class ="form-check-input " type ="checkbox " id ="checkBonners " name ="isBonnersChecked " {{ "checked" if eventData['program'].isBonnerScholars and not eventData.isService and not eventData.isTraining}}/>
268
+ </ div >
269
+ {% endif %}
265
270
</ div >
266
271
</ div >
267
272
</ div >
0 commit comments