diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2015-04-24 15:03:49 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2015-04-24 15:03:49 +0800 |
commit | e378b3152c2b68561dc8f8d181cd7a1da5a63fa2 (patch) | |
tree | cf83c52ddd4912f3fd7cf4991181d3cca0b76e17 | |
parent | 673a76d638139ad3d5df1ba4314edfb1df2afc5c (diff) | |
parent | 3a3e1b90e7c1c293a60d74ecf3a08cb2c07743dc (diff) | |
download | gitea-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.less | 7 | ||||
-rw-r--r-- | templates/user/auth/signin.tmpl | 7 |
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"/> <strong>{{.i18n.Tr "auth.remember_me"}}</strong> + <label class="chk-label"> + <input class="ipt-chk" id="remember" name="remember" type="checkbox"/> <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" .}} |