代码优化
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
<input type="email" name="email" class="form-control" required id="email" value="{{.Email}}"
|
||||
aria-describedby="emailValid">
|
||||
</div>
|
||||
{{if .EmailErr}}
|
||||
<small id="emailValid" style="color: #f44336;" class="form-text">{{.EmailErr}}</small>
|
||||
{{if .EmailMsg}}
|
||||
<small id="emailValid" style="color: #f44336;" class="form-text">{{.EmailMsg}}</small>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -24,8 +24,8 @@
|
||||
<input type="password" name="password" class="form-control" required id="password" value="{{.Password}}"
|
||||
aria-describedby="passwordValid">
|
||||
</div>
|
||||
{{if .PasswordErr}}
|
||||
<small id="passwordValid" style="color: #f44336;" class="form-text">{{.PasswordErr}}</small>
|
||||
{{if .PasswordMsg}}
|
||||
<small id="passwordValid" style="color: #f44336;" class="form-text">{{.PasswordMsg}}</small>
|
||||
{{end}}
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary btn-block">提交</button>
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
<input type="email" name="email" class="form-control" required id="email" value="{{.Email}}"
|
||||
aria-describedby="emailValid">
|
||||
</div>
|
||||
{{if .EmailErr}}
|
||||
<small id="emailValid" style="color: #f44336;" class="form-text">{{.EmailErr}}</small>
|
||||
{{if .EmailMsg}}
|
||||
<small id="emailValid" style="color: #f44336;" class="form-text">{{.EmailMsg}}</small>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -24,8 +24,8 @@
|
||||
<input type="text" name="username" class="form-control" required id="username" value="{{.Username}}"
|
||||
aria-describedby="usernameValid">
|
||||
</div>
|
||||
{{if .UsernameErr}}
|
||||
<small id="usernameValid" style="color: #f44336;" class="form-text">{{.UsernameErr}}</small>
|
||||
{{if .UsernameMsg}}
|
||||
<small id="usernameValid" style="color: #f44336;" class="form-text">{{.UsernameMsg}}</small>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -36,8 +36,8 @@
|
||||
<input type="password" name="password" class="form-control" required id="password" value="{{.Password}}"
|
||||
aria-describedby="passwordValid">
|
||||
</div>
|
||||
{{if .PasswordErr}}
|
||||
<small id="passwordValid" style="color: #f44336;" class="form-text">{{.PasswordErr}}</small>
|
||||
{{if .PasswordMsg}}
|
||||
<small id="passwordValid" style="color: #f44336;" class="form-text">{{.PasswordMsg}}</small>
|
||||
{{end}}
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary btn-block">提交</button>
|
||||
|
||||
Reference in New Issue
Block a user