summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2015-04-24 15:03:49 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2015-04-24 15:03:49 +0800
commite378b3152c2b68561dc8f8d181cd7a1da5a63fa2 (patch)
treecf83c52ddd4912f3fd7cf4991181d3cca0b76e17
parent673a76d638139ad3d5df1ba4314edfb1df2afc5c (diff)
parent3a3e1b90e7c1c293a60d74ecf3a08cb2c07743dc (diff)
downloadgitea-e378b3152c2b68561dc8f8d181cd7a1da5a63fa2.tar.gz
gitea-e378b3152c2b68561dc8f8d181cd7a1da5a63fa2.zip
Merge pull request #1210 from acusti/patch-1
Wrap remember me text and checkbox in a label
-rw-r--r--public/ng/less/gogs/sign.less7
-rw-r--r--templates/user/auth/signin.tmpl7
2 files changed, 10 insertions, 4 deletions
diff --git a/public/ng/less/gogs/sign.less b/public/ng/less/gogs/sign.less
index 55a9ffbbd9..3950be032a 100644
--- a/public/ng/less/gogs/sign.less
+++ b/public/ng/less/gogs/sign.less
@@ -25,6 +25,11 @@ The register and sign-in page style
.form-label {
width: 160px;
}
+ .chk-label {
+ width: auto;
+ text-align: left;
+ margin-left: 176px;
+ }
.alert{
margin:0 30px 24px 30px;
}
@@ -60,4 +65,4 @@ The register and sign-in page style
background-color: #FFF;
margin-left: -15px;
}
-} \ No newline at end of file
+}
diff --git a/templates/user/auth/signin.tmpl b/templates/user/auth/signin.tmpl
index 455df63ac8..bc0b0f2d31 100644
--- a/templates/user/auth/signin.tmpl
+++ b/templates/user/auth/signin.tmpl
@@ -17,8 +17,9 @@
</div>
{{if not .IsSocialLogin}}
<div class="field">
- <span class="form-label"></span>
- <input class="ipt-chk" id="remember" name="remember" type="checkbox"/>&nbsp;&nbsp;&nbsp;&nbsp;<strong>{{.i18n.Tr "auth.remember_me"}}</strong>
+ <label class="chk-label">
+ <input class="ipt-chk" id="remember" name="remember" type="checkbox"/>&nbsp;&nbsp;&nbsp;&nbsp;<strong>{{.i18n.Tr "auth.remember_me"}}</strong>
+ </label>
</div>
{{end}}
<div class="field">
@@ -41,4 +42,4 @@
</div>
</form>
</div>
-{{template "ng/base/footer" .}} \ No newline at end of file
+{{template "ng/base/footer" .}}