diff options
| author | Raphael Kabo <raphaelkabo@hey.com> | 2024-02-25 17:56:25 +0000 | 
|---|---|---|
| committer | Raphael Kabo <raphaelkabo@hey.com> | 2024-02-25 17:56:25 +0000 | 
| commit | cd0f291eb1a608589fcc2c1875fa7099ed8e2c51 (patch) | |
| tree | 05b1d8b1d63baed174883cc96807051e530969a2 /views/partials/eventForm.handlebars | |
| parent | b17238eb2840553c69fc2dae168be557afbcee9c (diff) | |
feat: optionally restrict event creation to specific emails
Diffstat (limited to 'views/partials/eventForm.handlebars')
| -rwxr-xr-x | views/partials/eventForm.handlebars | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/views/partials/eventForm.handlebars b/views/partials/eventForm.handlebars index c44a2ef..c2eebc3 100755 --- a/views/partials/eventForm.handlebars +++ b/views/partials/eventForm.handlebars @@ -1,3 +1,4 @@ +<input type="hidden" name="magicLinkToken" value="{{magicLinkToken}}" x-ref="magicLinkToken">  <div class="form-group">    <label for="eventName" >Event name</label>    <div class="form-group "> @@ -65,7 +66,7 @@  <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="data.creatorEmail" > +    <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> @@ -159,7 +160,7 @@        <p><i class="fas fa-exclamation-triangle"></i> Please fix these errors:</p>        <ul>          <template x-for="error in errors"> -          <li x-text="error.message"></li> +          <li x-html="error.message"></li>          </template>        </ul>      </div>  | 
