Better error-handling, emails for not-attending, language strings for JS errors

This commit contains the following changes:
* Better error handling: Previously, there was no proper handling in
  of email-related errors. Now, all error messages are caught and the
  user gets a nice landing page. The script will always try to contact
  the organizers of the wedding with information on the error.
* Emails for not-attending: This commit adds the possibility to send
  seperate emails to guests that attend and guests that cannot attend.
* Language strings for JavaScript errors: Previously, all JS errors were
  in Dutch. Now, they are configurable.
This commit is contained in:
2019-09-04 01:27:43 +02:00
parent 454175755a
commit ac77c9064a
4 changed files with 191 additions and 32 deletions

View File

@@ -26,12 +26,12 @@
{{ h2 }}
</span>
<div class="wrap-input1 validate-input" data-validate = "Vul aub een naam in">
<div class="wrap-input1 validate-input" data-validate = "{{ name_error }}">
<input class="input1" type="text" name="name" placeholder="{{ name }}">
<span class="shadow-input1"></span>
</div>
<div class="wrap-input1 validate-input" data-validate = "Vul aub een geldig adres in">
<div class="wrap-input1 validate-input" data-validate = "{{ email_error }}">
<input class="input1" type="text" name="email" placeholder="{{ email }}">
<span class="shadow-input1"></span>
</div>
@@ -39,7 +39,7 @@
<div class="select-box">
<div class="select-box__current" tabindex="1">
<span class="shadow-input1"></span>
<div class="select-box__value validate-input" data-validate = "Selecteer aantal gasten" >
<div class="select-box__value validate-input" data-validate = "{{ guest_error }}" >
<input class="select-box__input" type="radio" id="255" value="255" name="guests" checked="checked"/>
<p class="select-box__input-text select-box__default-text">{{ num_guests }}</p>
</div>