aboutsummaryrefslogtreecommitdiff
path: root/templates/admin_ldap.html
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-10 09:54:33 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-10 09:54:33 +0100
commit61a76f624decd9d9ef3afadaf584d46fe56e0817 (patch)
treec5e9e69aef5d8f82e25b738cf23f337d43d518b2 /templates/admin_ldap.html
parentb194b5f7eba47cbac677ba28fc9f8e1e29a7ed1a (diff)
downloadguichet-61a76f624decd9d9ef3afadaf584d46fe56e0817.tar.gz
guichet-61a76f624decd9d9ef3afadaf584d46fe56e0817.zip
Make some values non deletable
Diffstat (limited to 'templates/admin_ldap.html')
-rw-r--r--templates/admin_ldap.html12
1 files changed, 7 insertions, 5 deletions
diff --git a/templates/admin_ldap.html b/templates/admin_ldap.html
index 4480d10..c7a0872 100644
--- a/templates/admin_ldap.html
+++ b/templates/admin_ldap.html
@@ -76,11 +76,13 @@
</div>
<div class="col-md-1">
- <form method="POST" onsubmit="return confirm('Supprimer cet attribut ?');">
- <input type="hidden" name="action" value="delete" />
- <input type="hidden" name="attr" value="{{$key}}" />
- <input type="submit" value="Suppr." class="form-control btn btn-danger btn-sm" />
- </form>
+ {{if $value.Deletable}}
+ <form method="POST" onsubmit="return confirm('Supprimer cet attribut ?');">
+ <input type="hidden" name="action" value="delete" />
+ <input type="hidden" name="attr" value="{{$key}}" />
+ <input type="submit" value="Suppr." class="form-control btn btn-danger btn-sm" />
+ </form>
+ {{end}}
</div>
</div>
{{end}}