diff options
-rw-r--r-- | templates/invite_send_code.html | 19 |
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"> |