guichet/templates/invite_send_code.html

67 lines
2.2 KiB
HTML
Raw Normal View History

2023-07-25 15:41:16 +00:00
{{define "title"}}Envoyer un code d'invitation{{end}}
2023-07-23 15:18:29 +00:00
{{define "admenu"}}
{{end}}
2023-07-24 09:01:09 +00:00
2020-02-14 20:58:34 +00:00
{{define "body"}}
<div class="d-flex">
<h4>Envoyer un code d'invitation</h4>
<a class="ml-auto btn btn-info" href="/">Retour</a>
</div>
2023-07-25 19:35:22 +00:00
{{if .Common.ErrorMessage}}
2020-02-14 20:58:34 +00:00
<div class="alert alert-danger mt-4">Impossible de génerer ou d'envoyer le code.
2023-07-25 19:35:22 +00:00
<div style="font-size: 0.8em">{{ .Common.ErrorMessage }}</div>
2020-02-14 20:58:34 +00:00
</div>
{{end}}
2023-07-25 19:35:22 +00:00
{{if .Common.Success}}
2020-02-14 20:58:34 +00:00
<div class="alert alert-success mt-4">
{{if .CodeSentTo}}
Un code d'invitation a bien été envoyé à <code>{{ .CodeSentTo }}</code>.
{{end}}
{{if .CodeDisplay}}
2020-02-15 09:29:46 +00:00
Lien d'invitation :
2020-02-14 20:58:34 +00:00
2020-02-15 09:29:46 +00:00
<p style="text-align: center; font-size: 1.4em" class="mt-4 mb-4">
2020-02-14 20:58:34 +00:00
<a href="{{.WebBaseAddress}}/invitation/{{ .CodeDisplay }}">{{.WebBaseAddress}}/invitation/{{.CodeDisplay}}</a>
</p>
{{end}}
</div>
{{else}}
<form method="POST" class="mt-4">
Choisissez une option:
<div class="input-group mt-4">
<div class="input-group-prepend">
<div class="input-group-text">
2020-02-14 21:01:58 +00:00
<input type="radio" name="choice" value="send" id="choice_send" checked="true">
2020-02-14 20:58:34 +00:00
</div>
</div>
2020-02-14 21:01:58 +00:00
<label class="form-control" for="choice_send">
Envoyer le code à l'addresse suivante:
2020-02-14 20:58:34 +00:00
</label>
2020-02-14 21:01:58 +00:00
<input class="form-control" type="text" name="sendto" id="sendto" placeholder="Addresse mail..." onclick="document.getElementById('choice_send').checked = true;" />
2020-02-14 20:58:34 +00:00
</div>
2023-07-25 19:35:22 +00:00
{{if .Common.ErrorInvalidEmail}}
2020-02-14 21:01:58 +00:00
<div class="alert alert-warning mt-4">
Addresse mail invalide.
</div>
{{end}}
2020-02-14 20:58:34 +00:00
<div class="input-group mt-4">
<div class="input-group-prepend">
<div class="input-group-text">
2020-02-14 21:01:58 +00:00
<input type="radio" name="choice" value="display" id="choice_display">
2020-02-14 20:58:34 +00:00
</div>
</div>
2020-02-14 21:01:58 +00:00
<label class="form-control" for="choice_display">
Afficher le code et me laisser l'envoyer
2020-02-14 20:58:34 +00:00
</label>
</div>
<div class="form-group mt-4">
<button type="submit" class="btn btn-primary">Génerer le code</button>
</div>
</form>
{{end}}
{{end}}