Bug Fixing
This commit is contained in:
parent
346b69c7b2
commit
68995022c6
1 changed files with 15 additions and 26 deletions
|
@ -26,27 +26,27 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
<form method="POST" class="mt-4">
|
<form method="POST" class="mt-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="givenname">Prénom :</label>
|
<label for="givenname" class="required">Prénom :</label>
|
||||||
<input type="text" id="givenname" name="givenname" class="form-control" value="{{ .GivenName }}" />
|
<input type="text" id="givenname" name="givenname" class="form-control" value="{{ .GivenName }}" required />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="surname">Nom de famille :</label>
|
<label for="surname" class="required">Nom de famille :</label>
|
||||||
<input type="text" id="surname" name="surname" class="form-control" value="{{ .Surname }}" />
|
<input type="text" id="surname" name="surname" class="form-control" value="{{ .Surname }}" required />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="othermailbox">Email de secours:</label>
|
<label for="othermailbox" class="required">Email de secours:</label>
|
||||||
<input type="text" id="othermailbox" name="othermailbox" class="form-control" value="{{ .OtherMailbox }}" />
|
<input type="email" id="othermailbox" name="othermailbox" class="form-control" value="{{ .OtherMailbox }}" required />
|
||||||
<small class="form-text text-muted">
|
<small class="form-text text-muted">
|
||||||
Le courriel de l'utilisateur.
|
Le courriel de l'utilisateur.
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="displayname">Nom affiché :</label>
|
<label for="displayname" class="required">Nom affiché :</label>
|
||||||
<input type="text" id="displayname" name="displayname" class="form-control" value="{{ .DisplayName }}" />
|
<input type="text" id="displayname" name="displayname" class="form-control" value="{{ .DisplayName }}" required />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="username">Identifiant :</label>
|
<label for="username" class="required">Identifiant :</label>
|
||||||
<input type="text" id="username" name="username" class="form-control" />
|
<input type="text" id="username" name="username" class="form-control" required />
|
||||||
<small class="form-text text-muted">
|
<small class="form-text text-muted">
|
||||||
Votre identifiant doit être en minuscule.
|
Votre identifiant doit être en minuscule.
|
||||||
</small>
|
</small>
|
||||||
|
@ -65,16 +65,16 @@
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="defaultdomain">Domain au sein des GV:</label>
|
<label for="defaultdomain" class="required">Domain au sein des GV:</label>
|
||||||
<input type="text" id="defaultdomain" name="defaultdomain" class="form-control"
|
<input type="text" id="defaultdomain" name="defaultdomain" class="form-control"
|
||||||
value="{{ .NewUserDefaultDomain }}" />
|
value="{{ .NewUserDefaultDomain }}" required />
|
||||||
<small class="form-text text-muted">
|
<small class="form-text text-muted">
|
||||||
Le domaine du courriel des GV pour le nouveau utilisateur
|
Le domaine du courriel des GV pour le nouveau utilisateur
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="mail">Email des GV:</label>
|
<label for="mail" class="required">Email des GV:</label>
|
||||||
<input type="text" id="mail" name="mail" class="form-control" value="{{ .Mail }}" />
|
<input type="email" id="mail" name="mail" class="form-control" value="{{ .Mail }}" required />
|
||||||
<small class="form-text text-muted">
|
<small class="form-text text-muted">
|
||||||
Le courriel et login interne.
|
Le courriel et login interne.
|
||||||
</small>
|
</small>
|
||||||
|
@ -102,24 +102,13 @@
|
||||||
Les deux mots de passe entrés ne correspondent pas.
|
Les deux mots de passe entrés ne correspondent pas.
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
<button type="submit" class="btn btn-primary" onClick="ValidateEmail(document.getElementById('othermailbox'))">Créer
|
<button type="submit" class="btn btn-primary">Créer
|
||||||
le compte</button>
|
le compte</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script lang="javascript">
|
<script lang="javascript">
|
||||||
function ValidateEmail(inputControl) {
|
|
||||||
var mailformat = /^\w+([\.+-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,24})+$/;
|
|
||||||
if (inputControl.value.match(mailformat)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
alert("Merci de renseigner un courriel de secours svp");
|
|
||||||
inputControl.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function changeGivenNameOrSurname() {
|
function changeGivenNameOrSurname() {
|
||||||
givenname = document.getElementById("givenname");
|
givenname = document.getElementById("givenname");
|
||||||
|
|
Loading…
Reference in a new issue