aboutsummaryrefslogtreecommitdiff
path: root/templates/admin_create.html
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-02-08 16:46:13 +0100
committerAlex Auvolat <alex@adnab.me>2023-02-08 16:46:13 +0100
commitf77697f50147f34aad34fd13aab85f335f6a9746 (patch)
treea2af74b069841bce475ae26c286f54e221694d33 /templates/admin_create.html
parent670123df38608c98eadc482b9778ddfffe8560c7 (diff)
downloadguichet-f77697f50147f34aad34fd13aab85f335f6a9746.tar.gz
guichet-f77697f50147f34aad34fd13aab85f335f6a9746.zip
mailing list: ability to add guest users
Diffstat (limited to 'templates/admin_create.html')
-rw-r--r--templates/admin_create.html25
1 files changed, 16 insertions, 9 deletions
diff --git a/templates/admin_create.html b/templates/admin_create.html
index 9971aaf..1ea6fee 100644
--- a/templates/admin_create.html
+++ b/templates/admin_create.html
@@ -30,33 +30,40 @@
<input type="text" disabled="true" class="form-control" value="{{ .SuperDN }}" />
</div>
-->
+ {{if eq .Template "ml"}}
+ <div class="form-group">
+ <label for="idvalue">Adresse complète de la mailing list :</label>
+ <input type="text" id="idvalue" name="idvalue" class="form-control" value="{{ .IdValue }}" placeholder="example@deuxfleurs.fr" />
+ </div>
+ {{else}}
+ <div class="form-group">
+ <label for="idvalue">Identifiant :</label>
+ <input type="text" id="idvalue" name="idvalue" class="form-control" value="{{ .IdValue }}" />
+ </div>
+ {{end}}
<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>
+ <label for="idtype">Type d'identifiant :</label>
<input type="text" {{if .Template}}disabled="disabled"{{end}} id="idtype" name="idtype" class="form-control" value="{{ .IdType }}" />
</div>
{{ if eq .Template "user" }}
<div class="form-group">
- <label for="displayname">Nom:</label>
+ <label for="displayname">Nom :</label>
<input type="text" id="displayname" name="displayname" class="form-control" value="{{ .DisplayName }}" />
</div>
<input type="hidden" name="description" value="" />
{{ else }}
<div class="form-group">
- <label for="description">Description:</label>
+ <label for="description">Description :</label>
<input type="text" id="description" name="description" class="form-control" value="{{ .Description }}" />
</div>
<input type="hidden" name="displayname" value="" />
{{ end }}
<div class="form-group">
- <label for="soc">StructuralObjectClass:</label>
+ <label for="soc">StructuralObjectClass :</label>
<input type="text" {{if .Template}}disabled="disabled"{{end}} id="soc" name="soc" class="form-control" value="{{ .StructuralObjectClass }}" />
</div>
<div class="form-group">
- <label for="oc">ObjectClass:</label>
+ <label for="oc">ObjectClass :</label>
<textarea rows="5" {{if .Template}}disabled="disabled"{{end}} id="oc" name="oc" class="form-control">{{ .ObjectClass }}</textarea>
</div>
<button type="submit" class="btn btn-primary">Créer l'objet</button>