blob: 93e8e84253f71e592c9b6c8ac0daf5326283fc39 (
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
<input type="hidden" name="magicLinkToken" value="{{magicLinkToken}}" x-ref="magicLinkToken">
<div class="form-group">
<label for="eventName" >Event name</label>
<div class="form-group ">
<input type="text" class="form-control" id="eventName" name="eventName" placeholder="Make it snappy." x-model="data.eventName" >
</div>
</div>
<div class="form-group">
<label for="eventLocation" >Location</label>
<div class="form-group ">
<input type="text" class="form-control" id="eventLocation" name="eventLocation" placeholder="Be specific." x-model="data.eventLocation">
</div>
</div>
<div class="form-group">
<label for="eventStart" >Starts</label>
<div class="form-group">
<input type="datetime-local" class="form-control" id="eventStart" name="eventStart" x-model="data.eventStart" x-on:blur="updateEventEnd">
</div>
</div>
<div class="form-group">
<label for="eventEnd" >Ends</label>
<div class="form-group ">
<input type="datetime-local" class="form-control" id="eventEnd" name="eventEnd" x-model="data.eventEnd">
</div>
</div>
<div class="form-group">
<label for="timezone" >Timezone</label>
<div class="form-group ">
<select class="select2" id="timezone" name="timezone" x-ref="timezone"></select>
</div>
</div>
<div class="form-group">
<label for="eventDescription" >Description</label>
<div class="form-group ">
<textarea class="form-control expand" id="eventDescription" name="eventDescription" placeholder="You can always edit it later." x-model="data.eventDescription" ></textarea>
<small class="form-text"><a href="https://commonmark.org/help/">Markdown</a> formatting supported.</small>
</div>
</div>
<div class="form-group">
<label for="eventURL">Link</label>
<div class="form-group ">
<input type="url" class="form-control" id="eventURL" name="eventURL" placeholder="https://example.com" x-model="data.eventURL">
<small class="form-text">For tickets or another event page (optional).</small>
</div>
</div>
<div class="form-group">
<label for="eventImage" >Cover image</label>
<div class="form-group ">
<div class="image-preview" id="event-image-preview">
<label for="image-upload" id="event-image-label">Choose file</label>
<input type="file" name="imageUpload" id="event-image-upload" accept="image/jpeg,image/gif,image/png" x-ref="eventImageUpload" />
</div>
<small class="form-text">Recommended dimensions (w x h): 920px by 300px.</small>
{{#if eventData.image}}
<div class="form-group my-2">
<button type="button" class="button button--danger" id="deleteImage">Delete image</button>
</div>
{{/if}}
</div>
</div>
<div class="form-group">
<label for="hostName" >Host name</label>
<div class="form-group ">
<input type="text" class="form-control" id="hostName" name="hostName" placeholder="Will be shown on the event page (optional)." x-model="data.hostName" >
</div>
</div>
<div class="form-group">
<label for="creatorEmail" >Your email</label>
<div class="form-group ">
<input type="email" class="form-control" id="creatorEmail" name="creatorEmail" placeholder="Will not be shown anywhere (optional)." x-model.fill="data.creatorEmail" {{#if creatorEmail}}value="{{creatorEmail}}" readonly{{/if}}>
<small class="form-text">If you provide your email, we will send your secret editing password here, and use it to notify you of updates to the event.</small>
</div>
</div>
<div class="form-group">
<label>Options</label>
<div >
{{#if showPublicEventList}}
<div class="form-check">
<input class="form-check-input" type="checkbox" id="publicEventCheckbox" name="publicCheckbox" x-model="data.publicCheckbox">
<label class="form-check-label" for="publicEventCheckbox">
Display this event on the public event list
</label>
</div>
{{/if}}
<div class="form-check">
<input class="form-check-input" type="checkbox" id="eventGroupCheckbox" name="eventGroupCheckbox" x-model="data.eventGroupCheckbox">
<label class="form-check-label" for="eventGroupCheckbox">
This event is part of an event group
</label>
</div>
<div class="card my-2" id="eventGroupData" x-show="data.eventGroupCheckbox">
<div class="card-header">
<strong>Link this event to an event group</strong>
</div>
<div class="card-body" x-data="eventGroupLinker()">
<div class="form-group-label" x-show="data.groups.length > 0">
<label>Choose a group you've edited before</label>
</div>
<div class="form-group" x-show="data.groups.length > 0">
<select
x-ref="eventGroupSelect"
id="eventGroupSelect"
name="eventGroupSelect"
class="form-control"
x-on:change="selectGroup"
>
<option></option>
<template x-for="group in data.groups">
<option :value="group.id" x-text="group.name"></option>
</template>
</select>
</div>
<button type="button" class="button button--outline-primary w-100 text-center" x-on:click="manualGroupInputVisible = !manualGroupInputVisible">
Enter group details manually <i class="fas" :class="{'fa-caret-down': !manualGroupInputVisible, 'fa-caret-up': manualGroupInputVisible}"></i>
</button>
<div
class="form-group slider"
id="manualGroupInput"
:class="manualGroupInputVisible && 'slider--open'"
:style="manualGroupInputVisible && {height: $el.scrollHeight+`px`}"
:aria-hidden="!manualGroupInputVisible"
>
<label for="eventGroupID" class="mt-2">Event group ID</label>
<div class="form-group">
<input type="text" class="form-control text-monospace" id="eventGroupID" name="eventGroupID" x-model="data.eventGroupID" x-on:input="resetGroupSelector">
<small class="form-text">You can find this short string of characters in the event group's link, in your confirmation email, or on the event group's page.</small>
</div>
<label for="eventGroupEditToken">Event group secret editing code</label>
<div class="form-group mb-0">
<input type="text" class="form-control text-monospace" id="eventGroupEditToken" name="eventGroupEditToken" x-model="data.eventGroupEditToken" x-on:input="resetGroupSelector">
<small class="form-text">You can find this long string of characters in the confirmation email you received when you created the event group.</small>
</div>
</div>
</div>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="interactionCheckbox" name="interactionCheckbox" x-model="data.interactionCheckbox">
<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" type="checkbox" id="joinCheckbox" name="joinCheckbox" x-model="data.joinCheckbox">
<label class="form-check-label" for="joinCheckbox">
Users can mark themselves as attending this event
</label>
</div>
<div class="form-check" id="maxAttendeesCheckboxContainer" x-show="data.joinCheckbox">
<input class="form-check-input" type="checkbox" id="maxAttendeesCheckbox" name="maxAttendeesCheckbox" x-model="data.maxAttendeesCheckbox">
<label class="form-check-label" for="maxAttendeesCheckbox">
Set a limit on the maximum number of attendees
</label>
</div>
</div>
</div>
<div class="form-group" id="maxAttendeesContainer" x-show="data.maxAttendeesCheckbox && data.joinCheckbox">
<label for="maxAttendees" >Attendee limit</label>
<div class="form-group ">
<input type="number" class="form-control" id="maxAttendees" name="maxAttendees" placeholder="Enter a number." x-model="data.maxAttendees" >
</div>
</div>
<div class="form-group">
<div class="col-12">
<div
class="alert alert-danger"
role="alert"
x-show="errors.length > 0"
>
<p><i class="fas fa-exclamation-triangle"></i> Please fix these errors:</p>
<ul>
<template x-for="error in errors">
<li x-html="error.message"></li>
</template>
</ul>
</div>
</div>
</div>
|