Browse Source

Merge pull request #1210 from acusti/patch-1

Wrap remember me text and checkbox in a label
tags/v1.21.12.1
Lunny Xiao 11 years ago
parent
commit
e378b3152c
2 changed files with 10 additions and 4 deletions
  1. +6
    -1
      public/ng/less/gogs/sign.less
  2. +4
    -3
      templates/user/auth/signin.tmpl

+ 6
- 1
public/ng/less/gogs/sign.less View File

@@ -25,6 +25,11 @@ The register and sign-in page style
.form-label { .form-label {
width: 160px; width: 160px;
} }
.chk-label {
width: auto;
text-align: left;
margin-left: 176px;
}
.alert{ .alert{
margin:0 30px 24px 30px; margin:0 30px 24px 30px;
} }
@@ -60,4 +65,4 @@ The register and sign-in page style
background-color: #FFF; background-color: #FFF;
margin-left: -15px; margin-left: -15px;
} }
}
}

+ 4
- 3
templates/user/auth/signin.tmpl View File

@@ -17,8 +17,9 @@
</div> </div>
{{if not .IsSocialLogin}} {{if not .IsSocialLogin}}
<div class="field"> <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> </div>
{{end}} {{end}}
<div class="field"> <div class="field">
@@ -41,4 +42,4 @@
</div> </div>
</form> </form>
</div> </div>
{{template "ng/base/footer" .}}
{{template "ng/base/footer" .}}

Loading…
Cancel
Save