Handle multiple mail values

This commit is contained in:
Chris Mann 2023-07-27 22:31:27 +02:00
parent 708385c334
commit abe2644f66

View file

@ -21,8 +21,7 @@
<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> <label>Identifiant: {{ .Login.Status.Info.Username }}</label>
<pre>{{ .Login.Status.Info.Username }}</pre>
</div> </div>
</div> </div>
<div class="form-row"> <div class="form-row">
@ -45,20 +44,15 @@
<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">
<input type="hidden" name="username" value="{{ .Login.Status.Info.Username }}" />
<input type="hidden" disabled="true" class="form-control" value="{{ .Login.Status.Info.Username }}" /> <div class="form-row">
<div class="form-group col-md-12">
<div class="form-group col-md-6">
<label for="mail">Adresse e-mail:</label>
<input type="text" id="mail" disabled="true" name="mail" class="form-control" value="{{ .Data.Mail }}" />
</div>
</div>
<div class="form-group">
<label for="display_name">Nom complet:</label> <label for="display_name">Nom complet:</label>
<input type="text" id="display_name" name="display_name" class="form-control" value="{{ .Data.DisplayName }}" /> <input type="text" id="display_name" name="display_name" class="form-control" value="{{ .Data.DisplayName }}" />
</div> </div>
</div>
{{/* {{/*
<!-- <!--
<h4>Informations complémentaires</h4> <h4>Informations complémentaires</h4>
@ -102,10 +96,16 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="form-group col-md-12">
<label for="description">Description</label> <label for="description">Description</label>
<textarea id="description" name="description" class="form-control">{{ .Data.Description }}</textarea> <textarea id="description" name="description" class="form-control">{{ .Data.Description }}</textarea>
</div> </div>
</div>
<div class="form-group">
<div class="form-group col-md-12">
<button type="submit" class="btn btn-primary">Enregistrer les modifications</button> <button type="submit" class="btn btn-primary">Enregistrer les modifications</button>
</div>
</div>
</form> </form>
<script src="/static/javascript/minio.js"></script> <script src="/static/javascript/minio.js"></script>
{{end}} {{end}}