2020-02-09 23:04:27 +01:00
|
|
|
{{define "title"}}Nouvel objet |{{end}}
|
|
|
|
|
|
|
|
{{define "body"}}
|
|
|
|
<div class="d-flex">
|
|
|
|
<h4>Créer un objet</h4>
|
2020-02-10 09:44:18 +01:00
|
|
|
<a class="ml-auto btn btn-info" href="/">Menu principal</a>
|
2020-02-09 23:04:27 +01:00
|
|
|
</div>
|
|
|
|
|
2020-02-09 23:13:33 +01: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 23:04:27 +01: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 23:13:33 +01:00
|
|
|
<!--
|
2020-02-09 23:04:27 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label>Parent:</label>
|
|
|
|
<input type="text" disabled="true" class="form-control" value="{{ .SuperDN }}" />
|
|
|
|
</div>
|
2020-02-09 23:13:33 +01:00
|
|
|
-->
|
2020-02-09 23:04:27 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="idvalue">Identifiant:</label>
|
|
|
|
<input type="text" id="idvalue" name="idvalue" class="form-control" value="{{ .IdValue }}" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="idtype">Type d'identifiant:</label>
|
2020-02-10 09:44:18 +01:00
|
|
|
<input type="text" {{if .IsTemplated}}disabled="disabled"{{end}} id="idtype" name="idtype" class="form-control" value="{{ .IdType }}" />
|
2020-02-09 23:04:27 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="displayname">Nom:</label>
|
|
|
|
<input type="text" id="displayname" name="displayname" class="form-control" value="{{ .DisplayName }}" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="soc">StructuralObjectClass:</label>
|
2020-02-10 09:44:18 +01:00
|
|
|
<input type="text" {{if .IsTemplated}}disabled="disabled"{{end}} id="soc" name="soc" class="form-control" value="{{ .StructuralObjectClass }}" />
|
2020-02-09 23:04:27 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="oc">ObjectClass:</label>
|
2020-02-10 09:44:18 +01:00
|
|
|
<textarea rows="5" {{if .IsTemplated}}disabled="disabled"{{end}} id="oc" name="oc" class="form-control">{{ .ObjectClass }}</textarea>
|
2020-02-09 23:04:27 +01:00
|
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary">Créer l'objet</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{end}}
|