Fix code generation form template

This commit is contained in:
Alex 2020-02-14 22:01:58 +01:00
parent 244a2434e4
commit c2f229f085
1 changed files with 17 additions and 12 deletions

View File

@ -34,18 +34,7 @@
<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">
</div>
</div>
<label class="form-control" for="choice_display">
Afficher le code et me laisser l'envoyer
</label>
</div>
<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="send" id="choice_send" checked="true">
</div>
</div>
<label class="form-control" for="choice_send">
@ -53,6 +42,22 @@
</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="display" id="choice_display">
</div>
</div>
<label class="form-control" for="choice_display">
Afficher le code et me laisser l'envoyer
</label>
</div>
<div class="form-group mt-4">
<button type="submit" class="btn btn-primary">Génerer le code</button>