2020-02-09 22:04:27 +00:00
|
|
|
{{define "title"}}Nouvel objet |{{end}}
|
|
|
|
|
|
|
|
{{define "body"}}
|
|
|
|
<div class="d-flex">
|
2023-07-21 14:18:40 +00:00
|
|
|
<h2>Créer un objet</h2>
|
2020-02-09 22:04:27 +00:00
|
|
|
</div>
|
|
|
|
|
2020-02-09 22:13:33 +00:00
|
|
|
<div class="mt-4">
|
|
|
|
<nav aria-label="breadcrumb">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
{{range .Path}}
|
|
|
|
<li class="breadcrumb-item"><a href="/admin/ldap/{{.DN}}">{{.Identifier}}</a></li>
|
|
|
|
{{end}}
|
|
|
|
<li class="breadcrumb-item active" aria-current="page">Nouvel objet</li>
|
|
|
|
</ol>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
|
2020-02-09 22:04:27 +00:00
|
|
|
{{if .Error}}
|
|
|
|
<div class="alert alert-danger mt-4">Impossible de créer l'objet.
|
|
|
|
<div style="font-size: 0.8em">{{ .Error }}</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<form method="POST" class="mt-4">
|
2020-02-09 22:13:33 +00:00
|
|
|
<!--
|
2020-02-09 22:04:27 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label>Parent:</label>
|
|
|
|
<input type="text" disabled="true" class="form-control" value="{{ .SuperDN }}" />
|
|
|
|
</div>
|
2020-02-09 22:13:33 +00:00
|
|
|
-->
|
2023-02-08 15:46:13 +00:00
|
|
|
{{if eq .Template "ml"}}
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="idvalue">Adresse complète de la mailing list :</label>
|
2023-07-17 10:15:13 +00:00
|
|
|
<input type="text" id="idvalue" name="idvalue" class="form-control" value="{{ .IdValue }}" placeholder="exemple@resdigita.org" pattern="^[-A-z0-9\.]+@resdigita.org" />
|
2023-02-08 15:46:13 +00:00
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="form-group">
|
2023-07-17 09:18:21 +00:00
|
|
|
<label for="idvalue">Identifiant :</label>
|
2023-07-17 10:15:13 +00:00
|
|
|
<input type="text" id="idvalue" name="idvalue" class="form-control" value="{{ .IdValue }}" placeholder="exemple@resdigita.org" pattern="^[-A-z0-9\.]+@resdigita.org" />
|
2023-02-08 15:46:13 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2020-02-09 22:04:27 +00:00
|
|
|
<div class="form-group">
|
2023-02-08 15:46:13 +00:00
|
|
|
<label for="idtype">Type d'identifiant :</label>
|
2020-02-12 14:54:17 +00:00
|
|
|
<input type="text" {{if .Template}}disabled="disabled"{{end}} id="idtype" name="idtype" class="form-control" value="{{ .IdType }}" />
|
2020-02-09 22:04:27 +00:00
|
|
|
</div>
|
2020-02-12 14:54:17 +00:00
|
|
|
{{ if eq .Template "user" }}
|
|
|
|
<div class="form-group">
|
2023-07-17 08:19:01 +00:00
|
|
|
<label for="displayname">Nom affiché :</label>
|
2020-02-12 14:54:17 +00:00
|
|
|
<input type="text" id="displayname" name="displayname" class="form-control" value="{{ .DisplayName }}" />
|
|
|
|
</div>
|
2023-07-17 08:19:01 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="mail">Email:</label>
|
|
|
|
<input type="text" id="mail" name="mail" class="form-control" value="{{ .Mail }}" />
|
|
|
|
</div>
|
|
|
|
<input type="hidden" name="mail" value="" />
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="givenname">Prénom :</label>
|
|
|
|
<input type="text" id="givenname" name="givenname" class="form-control" value="{{ .GivenName }}" />
|
|
|
|
</div>
|
|
|
|
<input type="hidden" name="givenname" value="" />
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="sn">Nom de Famille :</label>
|
|
|
|
<input type="text" id="sn" name="sn" class="form-control" value=" {{ .SN }}" />
|
|
|
|
</div>
|
|
|
|
<input type="hidden" name="sn" value="" />
|
2020-02-12 14:54:17 +00:00
|
|
|
{{ else }}
|
|
|
|
<div class="form-group">
|
2023-02-08 15:46:13 +00:00
|
|
|
<label for="description">Description :</label>
|
2020-02-12 14:54:17 +00:00
|
|
|
<input type="text" id="description" name="description" class="form-control" value="{{ .Description }}" />
|
|
|
|
</div>
|
2023-07-17 08:19:01 +00:00
|
|
|
<input type="hidden" name="description" value="" />
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="member">Member :</label>
|
|
|
|
<input type="text" id="member" name="member" class="form-control" value="{{ .Member }}" />
|
|
|
|
</div>
|
|
|
|
<input type="hidden" name="member" value="" />
|
2020-02-12 14:54:17 +00:00
|
|
|
{{ end }}
|
2023-07-17 08:19:01 +00:00
|
|
|
<!--
|
2020-02-09 22:04:27 +00:00
|
|
|
<div class="form-group">
|
2023-02-08 15:46:13 +00:00
|
|
|
<label for="soc">StructuralObjectClass :</label>
|
2020-02-12 14:54:17 +00:00
|
|
|
<input type="text" {{if .Template}}disabled="disabled"{{end}} id="soc" name="soc" class="form-control" value="{{ .StructuralObjectClass }}" />
|
2020-02-09 22:04:27 +00:00
|
|
|
</div>
|
2023-07-17 08:19:01 +00:00
|
|
|
-->
|
2020-02-09 22:04:27 +00:00
|
|
|
<div class="form-group">
|
2023-02-08 15:46:13 +00:00
|
|
|
<label for="oc">ObjectClass :</label>
|
2020-02-12 14:54:17 +00:00
|
|
|
<textarea rows="5" {{if .Template}}disabled="disabled"{{end}} id="oc" name="oc" class="form-control">{{ .ObjectClass }}</textarea>
|
2020-02-09 22:04:27 +00:00
|
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary">Créer l'objet</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{end}}
|