summaryrefslogtreecommitdiff
path: root/views/partials/importeventform.handlebars
diff options
context:
space:
mode:
Diffstat (limited to 'views/partials/importeventform.handlebars')
-rw-r--r--views/partials/importeventform.handlebars5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/partials/importeventform.handlebars b/views/partials/importeventform.handlebars
index d62b599..ac3c673 100644
--- a/views/partials/importeventform.handlebars
+++ b/views/partials/importeventform.handlebars
@@ -6,6 +6,7 @@
<img class="img-thumbnail mb-3 d-block mx-auto" src="/images/facebook-export.png" alt="Image showing the location of the export option on Facebook" />
<form id="icsImportForm" enctype="multipart/form-data" x-data="importEventForm()" @submit.prevent="submitForm">
+ <input type="hidden" name="magicLinkToken" value="{{magicLinkToken}}" x-ref="magicLinkToken">
<div class="form-group">
<div class="custom-file" id="icsImportContainer">
<input required name="icsImportControl" type="file" class="custom-file-input" id="icsImportControl" aria-describedby="fileHelp" accept="text/calendar" x-ref="icsImportControl"/>
@@ -17,7 +18,7 @@
<div class="form-group">
<label for="creatorEmail" class="form-label">Your email</label>
<div class="form-group">
- <input type="email" class="form-control" id="importCreatorEmail" name="creatorEmail" placeholder="Will not be shown anywhere (optional)." x-model="data.creatorEmail" >
+ <input type="email" class="form-control" id="importCreatorEmail" 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>
@@ -31,7 +32,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>