aboutsummaryrefslogtreecommitdiff
path: root/templates/invite_send_code.html
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-14 22:01:58 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-14 22:25:49 +0100
commitc2f229f085513e9866437dfcb18165d80b9e11be (patch)
treea254acdae243123c3c427f4d69533d9f6a2dbbb0 /templates/invite_send_code.html
parent244a2434e4ad626c429534002f9e2f3f09392302 (diff)
downloadguichet-c2f229f085513e9866437dfcb18165d80b9e11be.tar.gz
guichet-c2f229f085513e9866437dfcb18165d80b9e11be.zip
Fix code generation form template
Diffstat (limited to 'templates/invite_send_code.html')
-rw-r--r--templates/invite_send_code.html19
1 files changed, 12 insertions, 7 deletions
diff --git a/templates/invite_send_code.html b/templates/invite_send_code.html
index 8d09b3a..6894142 100644
--- a/templates/invite_send_code.html
+++ b/templates/invite_send_code.html
@@ -34,24 +34,29 @@
<div class="input-group mt-4">
<div class="input-group-prepend">
<div class="input-group-text">
- <input type="radio" name="choice" value="display" id="choice_display" checked="true">
+ <input type="radio" name="choice" value="send" id="choice_send" checked="true">
</div>
</div>
- <label class="form-control" for="choice_display">
- Afficher le code et me laisser l'envoyer
+ <label class="form-control" for="choice_send">
+ Envoyer le code à l'addresse suivante:
</label>
+ <input class="form-control" type="text" name="sendto" id="sendto" placeholder="Addresse mail..." onclick="document.getElementById('choice_send').checked = true;" />
</div>
+ {{if .ErrorInvalidEmail}}
+ <div class="alert alert-warning mt-4">
+ Addresse mail invalide.
+ </div>
+ {{end}}
<div class="input-group mt-4">
<div class="input-group-prepend">
<div class="input-group-text">
- <input type="radio" name="choice" value="send" id="choice_send" aria-label="Checkbox for following text input">
+ <input type="radio" name="choice" value="display" id="choice_display">
</div>
</div>
- <label class="form-control" for="choice_send">
- Envoyer le code à l'addresse suivante:
+ <label class="form-control" for="choice_display">
+ Afficher le code et me laisser l'envoyer
</label>
- <input class="form-control" type="text" name="sendto" id="sendto" placeholder="Addresse mail..." onclick="document.getElementById('choice_send').checked = true;" />
</div>
<div class="form-group mt-4">