summaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-05-15 20:52:05 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-05-15 20:52:05 +0800
commit7869cfccb9ddf08069312c1e456908055d863e96 (patch)
tree556d84b5860efc1e4ea77573e11422bb4f2c413f /templates/admin
parentb70db618547b2167cac7e35be5405fb385512f30 (diff)
parenteb264a112b378d1ebdf8e1de076797dd56a0e6b8 (diff)
downloadgitea-7869cfccb9ddf08069312c1e456908055d863e96.tar.gz
gitea-7869cfccb9ddf08069312c1e456908055d863e96.zip
Merge pull request #192 from DerDackel/ldapssl
Add LDAP over SSL support
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/auths/edit.tmpl10
-rw-r--r--templates/admin/auths/new.tmpl9
2 files changed, 17 insertions, 2 deletions
diff --git a/templates/admin/auths/edit.tmpl b/templates/admin/auths/edit.tmpl
index b3277242ce..f2ba68fd27 100644
--- a/templates/admin/auths/edit.tmpl
+++ b/templates/admin/auths/edit.tmpl
@@ -53,6 +53,14 @@
</div>
</div>
+ <div class="form-group {{if .Err_UseSSL}}has-error has-feedback{{end}}">
+ <label class="col-md-3 control-label">Use SSL: </label>
+ <div class="col-md-7">
+ <input name="usessl" class="form-control" type="checkbox" {{if .Source.LDAP.UseSSL}}checked{{end}}>
+ </div>
+ </div>
+
+
<div class="form-group {{if .Err_BaseDN}}has-error has-feedback{{end}}">
<label class="col-md-3 control-label">Base DN: </label>
<div class="col-md-7">
@@ -150,4 +158,4 @@
</div>
</div>
-{{template "base/footer" .}} \ No newline at end of file
+{{template "base/footer" .}}
diff --git a/templates/admin/auths/new.tmpl b/templates/admin/auths/new.tmpl
index 3741d9cc5f..f9d9892f61 100644
--- a/templates/admin/auths/new.tmpl
+++ b/templates/admin/auths/new.tmpl
@@ -51,6 +51,13 @@
</div>
</div>
+ <div class="form-group {{if .Err_UseSSL}}has-error has-feedback{{end}}">
+ <label class="col-md-3 control-label">Use SSL: </label>
+ <div class="col-md-7">
+ <input name="usessl" class="form-control" type="checkbox" {{if .usessl}}checked{{end}}>
+ </div>
+ </div>
+
<div class="form-group {{if .Err_BaseDN}}has-error has-feedback{{end}}">
<label class="col-md-3 control-label">Base DN: </label>
<div class="col-md-7">
@@ -158,4 +165,4 @@
});
});
</script>
-{{template "base/footer" .}} \ No newline at end of file
+{{template "base/footer" .}}