Handle multiple mail values
This commit is contained in:
parent
e6f908389f
commit
708385c334
1 changed files with 22 additions and 17 deletions
|
@ -21,29 +21,34 @@
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-12">
|
<div class="form-group col-md-12">
|
||||||
|
<label>Identifiant:</label>
|
||||||
{{range $index, $email := .Data.MailValues }}
|
<pre>{{ .Login.Status.Info.Username }}</pre>
|
||||||
<form method="POST" class="mt-4" enctype="multipart/form-data" action="/user/mail">
|
</div>
|
||||||
<input type="email" name="email" value="{{$email}}" required>
|
</div>
|
||||||
<input type="submit" name="delete" value="Delete">
|
<div class="form-row">
|
||||||
<input type="hidden" name="action" value="Delete">
|
<div class="form-group col-md-6">
|
||||||
<input type="hidden" name="index" value="{{$index}}">
|
<label>Courriels existants gérés par Les GV:</label>
|
||||||
</form>
|
{{range $index, $email := .Data.MailValues }}
|
||||||
{{end}}
|
|
||||||
|
|
||||||
<br>
|
|
||||||
<form method="POST" class="mt-4" enctype="multipart/form-data" action="/user/mail">
|
<form method="POST" class="mt-4" enctype="multipart/form-data" action="/user/mail">
|
||||||
|
<input type="email" name="email" value="{{$email}}" required>
|
||||||
|
<input type="submit" name="delete" value="Delete">
|
||||||
|
<input type="hidden" name="action" value="Delete">
|
||||||
|
<input type="hidden" name="index" value="{{$index}}">
|
||||||
|
</form>
|
||||||
|
{{end}}
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-6">
|
||||||
|
<form method="POST" class="mt-4" enctype="multipart/form-data" action="/user/mail">
|
||||||
|
<label>Ajouter un courriel sous un domaine géré par Les GV :</label>
|
||||||
<input type="email" name="email" required>
|
<input type="email" name="email" required>
|
||||||
<input type="hidden" name="action" value="Add">
|
<input type="hidden" name="action" value="Add">
|
||||||
<input type="submit" name="add" value="Add">
|
<input type="submit" name="add" value="Add">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form method="POST" class="mt-4" enctype="multipart/form-data">
|
<form method="POST" class="mt-4" enctype="multipart/form-data">
|
||||||
<div class="form-row">
|
|
||||||
<div class="form-group col-md-6">
|
<input type="hidden" disabled="true" class="form-control" value="{{ .Login.Status.Info.Username }}" />
|
||||||
<label>Identifiant:</label>
|
|
||||||
<input type="text" disabled="true" class="form-control" value="{{ .Login.Status.Info.Username }}" />
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
<label for="mail">Adresse e-mail:</label>
|
<label for="mail">Adresse e-mail:</label>
|
||||||
<input type="text" id="mail" disabled="true" name="mail" class="form-control" value="{{ .Data.Mail }}" />
|
<input type="text" id="mail" disabled="true" name="mail" class="form-control" value="{{ .Data.Mail }}" />
|
||||||
|
|
Loading…
Reference in a new issue