blob: 68c8f806b25fe90c6d36bf3bd12e9e15a66a9119 (
plain)
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="editModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="editModalLabel">Edit '{{eventData.name}}'</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<form id="editEventForm" action="/editevent/{{eventData.id}}/{{eventData.editToken}}" method="post" enctype="multipart/form-data" autocomplete="off">
<div class="modal-body">
<div class="form-group row">
<label for="eventName" class="col-sm-2 col-form-label">Event name</label>
<div class="form-group col-sm-10">
<input type="text" class="form-control" id="eventName" name="eventName" placeholder="Make it snappy." value="{{eventData.name}}" data-validation="required length" data-validation-length="3-60">
</div>
</div>
<div class="form-group row">
<label for="eventLocation" class="col-sm-2 col-form-label">Location</label>
<div class="form-group col-sm-10">
<input type="text" class="form-control" id="eventLocation" name="eventLocation" placeholder="Be specific." value="{{eventData.location}}" data-validation="required length" data-validation-length="3-60">
</div>
</div>
<div class="form-group row">
<label for="eventStart" class="col-sm-2 col-form-label">Starts</label>
<div class="form-group col-sm-10">
<input readonly type="text" class="form-control" id="eventStart" name="eventStart" value="" data-validation="required">
</div>
</div>
<div class="form-group row">
<label for="eventEnd" class="col-sm-2 col-form-label">Ends</label>
<div class="form-group col-sm-10">
<input readonly type="text" class="form-control" id="eventEnd" name="eventEnd" value="" data-validation="required">
</div>
</div>
<div class="form-group row">
<label for="timezone" class="col-sm-2 col-form-label">Timezone</label>
<div class="form-group col-sm-10">
<select class="select2" id="timezone" name="timezone"></select>
</div>
</div>
<div class="form-group row">
<label for="eventDescription" class="col-sm-2 col-form-label">Description</label>
<div class="form-group col-sm-10">
<textarea class="form-control" id="eventDescription" name="eventDescription" data-validation="required">{{eventData.description}}</textarea>
<small class="form-text"><a href="https://commonmark.org/help/">Markdown</a> formatting supported.</small>
</div>
</div>
<div class="form-group row">
<label for="eventURL" class="col-sm-2 col-form-label">Link</label>
<div class="form-group col-sm-10">
<input type="url" class="form-control" id="eventURL" name="eventURL" value="{{eventData.url}}" placeholder="For tickets or another event page (optional)." data-validation="url" data-validation-optional="true">
</div>
</div>
<div class="form-group row">
<label for="hostName" class="col-sm-2 col-form-label">Host name</label>
<div class="form-group col-sm-10">
<input type="text" class="form-control" id="hostName" name="hostName" placeholder="Will be shown on the event page (optional)." value="{{eventData.hostName}}" data-validation="length" data-validation-length="3-60" data-validation-optional="true">
</div>
</div>
<div class="form-group row">
<label for="eventImage" class="col-sm-2 col-form-label">Cover image</label>
<div class="form-group col-sm-10">
<div id="image-preview">
<label for="image-upload" id="image-label">Choose file</label>
<input type="file" name="imageUpload" id="image-upload" />
</div>
<small class="form-text">Recommended dimensions (w x h): 920px by 300px.</small>
</div>
</div>
<div class="form-group row">
<div class="col-sm-2">Options</div>
<div class="col-sm-10">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="interactionCheckbox" name="interactionCheckbox" {{#if eventData.usersCanComment}}checked{{/if}}>
<label class="form-check-label" for="interactionCheckbox">
Users can post comments on this event
</label>
</div>
<div class="form-check">
<input class="form-check-input {{#unless eventData.usersCanAttend}}unchecked{{/unless}}" type="checkbox" id="joinCheckbox" name="joinCheckbox" {{#if eventData.usersCanAttend}}checked{{/if}}>
<label class="form-check-label" for="joinCheckbox">
Users can mark themselves as attending this event
</label>
</div>
<div class="form-check" id="maxAttendeesCheckboxContainer" {{#if eventData.maxAttendees}}style="display:flex"{{/if}}>
<input class="form-check-input" type="checkbox" id="maxAttendeesCheckbox" name="maxAttendeesCheckbox" {{#if eventData.maxAttendees}}checked{{/if}}>
<label class="form-check-label" for="maxAttendeesCheckbox">
Set a limit on the maximum number of attendees
</label>
</div>
</div>
</div>
<div class="form-group row" id="maxAttendeesContainer" {{#if eventData.maxAttendees}}style="display:flex"{{/if}}>
<label for="maxAttendees" class="col-sm-2 col-form-label">Attendee limit</label>
<div class="form-group col-sm-10">
<input type="number" class="form-control" id="maxAttendees" name="maxAttendees" placeholder="Enter a number." data-validation="number" data-validation-optional="true" value="{{eventData.maxAttendees}}">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">Save changes</button>
</div>
</form>
</div>
</div>
</div>
|