aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-11 10:37:31 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-11 10:37:31 -0400
commit2c73ced0db2a3dc0402dc0cdc78538370bbf9e71 (patch)
treee292a8d87b66ab31a00b1b2a115f071370d1d4ab /templates/admin
parentf68e279150b8c58a0c5ffeea44fe1a613031e58b (diff)
downloadgitea-2c73ced0db2a3dc0402dc0cdc78538370bbf9e71.tar.gz
gitea-2c73ced0db2a3dc0402dc0cdc78538370bbf9e71.zip
Fix #173
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/auths/edit.tmpl58
1 files changed, 27 insertions, 31 deletions
diff --git a/templates/admin/auths/edit.tmpl b/templates/admin/auths/edit.tmpl
index 9ebc0aa4c4..2c7a5754bf 100644
--- a/templates/admin/auths/edit.tmpl
+++ b/templates/admin/auths/edit.tmpl
@@ -32,7 +32,6 @@
</div>
{{if eq $type 2}}
-
<div class="form-group {{if .Err_Domain}}has-error has-feedback{{end}}">
<label class="col-md-3 control-label">Domain: </label>
<div class="col-md-7">
@@ -81,44 +80,41 @@
<input name="ms_ad_sa" class="form-control" placeholder="Type Ms Ad SA" value="{{.Source.LDAP.MsAdSAFormat}}" required="required">
</div>
</div>
- {{else}}
- {{if eq $type 3}}
-
+ {{else if eq $type 3}}
<div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}">
- <label class="col-md-3 control-label">SMTP Auth: </label>
- <div class="col-md-7">
- <select name="smtpauth" class="form-control">
- {{$auth := .Source.SMTP.Auth}}
- {{range .SMTPAuths}}
- <option value="{{.}}"
- {{if eq . $auth}} selected{{end}}>{{.}}</option>
- {{end}}
- }
- </select>
- </div>
+ <label class="col-md-3 control-label">SMTP Auth: </label>
+ <div class="col-md-7">
+ <select name="smtpauth" class="form-control">
+ {{$auth := .Source.SMTP.Auth}}
+ {{range .SMTPAuths}}
+ <option value="{{.}}"
+ {{if eq . $auth}} selected{{end}}>{{.}}</option>
+ {{end}}
+ }
+ </select>
</div>
+ </div>
- <div class="form-group {{if .Err_Host}}has-error has-feedback{{end}}">
- <label class="col-md-3 control-label">Host: </label>
- <div class="col-md-7">
- <input name="smtphost" class="form-control" placeholder="Type host address" value="{{.Source.SMTP.Host}}">
- </div>
+ <div class="form-group {{if .Err_Host}}has-error has-feedback{{end}}">
+ <label class="col-md-3 control-label">Host: </label>
+ <div class="col-md-7">
+ <input name="smtphost" class="form-control" placeholder="Type host address" value="{{.Source.SMTP.Host}}">
</div>
+ </div>
- <div class="form-group {{if .Err_Port}}has-error has-feedback{{end}}">
- <label class="col-md-3 control-label">Port: </label>
- <div class="col-md-7">
- <input name="smtpport" class="form-control" placeholder="Type port number" value="{{.Source.SMTP.Port}}">
- </div>
+ <div class="form-group {{if .Err_Port}}has-error has-feedback{{end}}">
+ <label class="col-md-3 control-label">Port: </label>
+ <div class="col-md-7">
+ <input name="smtpport" class="form-control" placeholder="Type port number" value="{{.Source.SMTP.Port}}">
</div>
+ </div>
- <div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}">
- <label class="col-md-3 control-label">TLS: </label>
- <div class="col-md-7">
- <input name="smtptls" type="checkbox" class="form-control" {{if .Source.SMTP.TLS}}checked{{end}}>
- </div>
+ <div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}">
+ <label class="col-md-3 control-label">TLS: </label>
+ <div class="col-md-7">
+ <input name="smtptls" type="checkbox" class="form-control" {{if .Source.SMTP.TLS}}checked{{end}}>
</div>
- {{end}}
+ </div>
{{end}}
<div class="form-group {{if .Err_TLS}}has-error has-feedback{{end}}">