summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/auths.tmpl2
-rw-r--r--templates/admin/auths/edit.tmpl18
-rw-r--r--templates/admin/auths/new.tmpl16
-rw-r--r--templates/admin/users/edit.tmpl2
4 files changed, 26 insertions, 12 deletions
diff --git a/templates/admin/auths.tmpl b/templates/admin/auths.tmpl
index 87baeafd62..a0f7ba9790 100644
--- a/templates/admin/auths.tmpl
+++ b/templates/admin/auths.tmpl
@@ -19,7 +19,7 @@
<th>Actived</th>
<th>Updated</th>
<th>Created</th>
- <th>Operation</th>
+ <th>Edit</th>
</tr>
</thead>
<tbody>
diff --git a/templates/admin/auths/edit.tmpl b/templates/admin/auths/edit.tmpl
index f2ba68fd27..5747c1ab51 100644
--- a/templates/admin/auths/edit.tmpl
+++ b/templates/admin/auths/edit.tmpl
@@ -115,16 +115,20 @@
<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="tls" type="checkbox" class="form-control" {{if .Source.SMTP.TLS}}checked{{end}}>
- </div>
- </div> -->
{{end}}
<div class="form-group">
+ {{if eq $type 3}}
+ <div class="col-md-offset-3 col-md-7">
+ <div class="checkbox">
+ <label>
+ <input name="tls" type="checkbox" class="form-control" {{if .Source.SMTP.TLS}}checked{{end}}>
+ <strong>Enable TLS Encryption</strong>
+ </label>
+ </div>
+ </div>
+ {{end}}
+
<div class="col-md-offset-3 col-md-7">
<div class="checkbox">
<label>
diff --git a/templates/admin/auths/new.tmpl b/templates/admin/auths/new.tmpl
index f9d9892f61..6045f1c532 100644
--- a/templates/admin/auths/new.tmpl
+++ b/templates/admin/auths/new.tmpl
@@ -114,16 +114,16 @@
</div>
</div>
- <!-- <div class="form-group">
+ <div class="form-group">
<div class="col-md-offset-3 col-md-7">
<div class="checkbox">
<label>
<input name="tls" type="checkbox" {{if .tls}}checked{{end}}>
- <strong>Enable Register Confirmation</strong>
+ <strong>Enable TLS Encryption</strong>
</label>
</div>
</div>
- </div> -->
+ </div>
</div>
<div class="form-group">
@@ -148,6 +148,16 @@
</div>
</div>
+ <div class="panel panel-info">
+ <div class="panel-heading">
+ Tips
+ </div>
+
+ <div class="panel-body">
+ <h5>GMail Setting:</h5>
+ <p>Host: smtp.gmail.com, Post: 587, Enable TLS Encryption: true</p>
+ </div>
+ </div>
</div>
</div>
<script>
diff --git a/templates/admin/users/edit.tmpl b/templates/admin/users/edit.tmpl
index 4995856768..b1fffb69c3 100644
--- a/templates/admin/users/edit.tmpl
+++ b/templates/admin/users/edit.tmpl
@@ -29,7 +29,7 @@
<div class="form-group">
<label class="col-md-3 control-label">Auth Login Name: </label>
<div class="col-md-7">
- <input name="loginname" class="form-control" placeholder="Type auth login's username" value="{{.loginname}}">
+ <input name="loginname" class="form-control" placeholder="Type auth login's username" value="{{.User.LoginName}}">
</div>
</div>