diff options
author | Raphael Kabo <raphaelkabo@gmail.com> | 2022-01-17 11:19:22 +0000 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@gmail.com> | 2022-01-17 11:19:22 +0000 |
commit | 4ef3273f8bca7ad84140730cea9e7842ee5a0a79 (patch) | |
tree | 6821e50a901589a7533a97e2211c4378d3780734 /views | |
parent | 1873af016e95bf2df512e332c7014e233cd57c17 (diff) |
Make emails optional when creating events/groups
Diffstat (limited to 'views')
-rwxr-xr-x | views/event.handlebars | 12 | ||||
-rwxr-xr-x | views/newevent.handlebars | 6 | ||||
-rwxr-xr-x | views/partials/neweventform.handlebars | 4 | ||||
-rwxr-xr-x | views/partials/neweventgroupform.handlebars | 4 |
4 files changed, 12 insertions, 14 deletions
diff --git a/views/event.handlebars b/views/event.handlebars index 5c7bce5..6f13c38 100755 --- a/views/event.handlebars +++ b/views/event.handlebars @@ -114,7 +114,9 @@ <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> - Welcome to your event! We've just sent you an email with your secret editing link, which you can also see in the address bar above. Haven't got the email? Check your spam or junk folder. To share your event, use the link you can see just above this message - that way your attendees won't be able to edit or delete your event! + <p>Welcome to your event!</p> + <p>Your secret editing password for this event is: <strong>{{eventData.editToken}}</strong>. It's been saved in your browser storage, and if you supplied your email, it's also been sent to you. If you didn't supply your email, you <strong>must save it somewhere safe</strong>, because it won't be shown again!</p> + <p>To share your event, use the link you can see just above this message - that way your attendees won't be able to edit or delete your event!</p> </div> {{/if}} <div class="card mb-4" id="eventDescription"> @@ -507,12 +509,8 @@ $("#image-preview").css("background-image", "url('/events/{{eventData.image}}')"); $("#image-preview").css("background-size", "cover"); $("#image-preview").css("background-position", "center center"); - {{#if editingEnabled}} - {{#unless eventHasConcluded}} - $('#eventStart').datepicker().data('datepicker').selectDate(moment('{{parsedStart}}', 'YYYYMMDD[T]HHmmss').toDate()); - $('#eventEnd').datepicker().data('datepicker').selectDate(moment('{{parsedEnd}}', 'YYYYMMDD[T]HHmmss').toDate()); - {{/unless}} - {{/if}} + $('#eventStart').datepicker().data('datepicker').selectDate(moment('{{parsedStart}}', 'YYYYMMDD[T]HHmmss').toDate()); + $('#eventEnd').datepicker().data('datepicker').selectDate(moment('{{parsedEnd}}', 'YYYYMMDD[T]HHmmss').toDate()); new ClipboardJS('#copyEventLink'); autosize($('textarea')); $("#exportICS").click(function(){ diff --git a/views/newevent.handlebars b/views/newevent.handlebars index 9d10f2d..5e7752f 100755 --- a/views/newevent.handlebars +++ b/views/newevent.handlebars @@ -12,13 +12,13 @@ <div class="container mb-4"> <div class="row"> <div class="col-sm-4 p-2"> - <button type="button" id="showNewEventFormButton" class="btn btn-lg btn-secondary w-100"><i class="fas fa-file"></i> Create a new event</button> + <button type="button" id="showNewEventFormButton" class="btn btn-secondary w-100"><i class="fas fa-file"></i> Create a new event</button> </div> <div class="col-sm-4 p-2"> - <button type="button" id="showImportEventFormButton" class="btn btn-lg btn-secondary w-100"><i class="fas fa-file-import"></i> Import an existing event</button> + <button type="button" id="showImportEventFormButton" class="btn btn-secondary w-100"><i class="fas fa-file-import"></i> Import an existing event</button> </div> <div class="col-sm-4 p-2"> - <button type="button" id="showNewEventGroupFormButton" class="btn btn-lg btn-secondary w-100"><i class="fas fa-folder-open"></i> Create a new event group </button> + <button type="button" id="showNewEventGroupFormButton" class="btn btn-secondary w-100"><i class="fas fa-folder-open"></i> Create a new event group </button> </div> </div> </div> diff --git a/views/partials/neweventform.handlebars b/views/partials/neweventform.handlebars index 829ec42..ea13298 100755 --- a/views/partials/neweventform.handlebars +++ b/views/partials/neweventform.handlebars @@ -74,8 +74,8 @@ <div class="form-group row"> <label for="creatorEmail" class="col-sm-2 col-form-label">Your email</label> <div class="form-group col-sm-10"> - <input type="email" class="form-control" id="creatorEmail" name="creatorEmail" placeholder="We won't spam you <3" data-validation="email required"> - <small class="form-text">We will send your secret editing link to this email address.</small> + <input type="email" class="form-control" id="creatorEmail" name="creatorEmail" placeholder="We won't spam you <3 (optional)" data-validation="email" data-validation-optional="true"> + <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 row"> diff --git a/views/partials/neweventgroupform.handlebars b/views/partials/neweventgroupform.handlebars index 8201c60..616b8ca 100755 --- a/views/partials/neweventgroupform.handlebars +++ b/views/partials/neweventgroupform.handlebars @@ -40,8 +40,8 @@ <div class="form-group row"> <label for="creatorEmail" class="col-sm-2 col-form-label">Your email</label> <div class="form-group col-sm-10"> - <input type="email" class="form-control" id="creatorEmail" name="creatorEmail" placeholder="We won't spam you <3" data-validation="email required"> - <small class="form-text">We will send your secret editing link to this email address.</small> + <input type="email" class="form-control" id="creatorEmail" name="creatorEmail" placeholder="We won't spam you <3 (optional)" data-validation="email" data-validation-optional="true"> + <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 row"> |