Skip to content

Commit 790a79b

Browse files
GiteaBotyp05327
andauthored
Fix missed .hide class (#23208) (#23237)
Backport #23208 #22950 removed `hide` class, and use `gt-hidden` But there are some missed `hide`.... Co-authored-by: yp05327 <576951401@qq.com>
1 parent f8a40da commit 790a79b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/admin/user/new.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
</div>
5151
</div>
5252

53-
<div class="required non-local field {{if .Err_LoginName}}error{{end}} {{if eq .login_type "0-0"}}hide{{end}}">
53+
<div class="required non-local field {{if .Err_LoginName}}error{{end}} {{if eq .login_type "0-0"}}gt-hidden{{end}}">
5454
<label for="login_name">{{.locale.Tr "admin.users.auth_login_name"}}</label>
5555
<input id="login_name" name="login_name" value="{{.login_name}}">
5656
</div>
@@ -62,12 +62,12 @@
6262
<label for="email">{{.locale.Tr "email"}}</label>
6363
<input id="email" name="email" type="email" value="{{.email}}" required>
6464
</div>
65-
<div class="required local field {{if .Err_Password}}error{{end}} {{if not (eq .login_type "0-0")}}hide{{end}}">
65+
<div class="required local field {{if .Err_Password}}error{{end}} {{if not (eq .login_type "0-0")}}gt-hidden{{end}}">
6666
<label for="password">{{.locale.Tr "password"}}</label>
6767
<input id="password" name="password" type="password" autocomplete="new-password" value="{{.password}}" {{if eq .login_type "0-0"}}required{{end}}>
6868
</div>
6969

70-
<div class="inline field local{{if ne .login_type "0-0"}} hide{{end}}">
70+
<div class="inline field local {{if ne .login_type "0-0"}}gt-hidden{{end}}">
7171
<div class="ui checkbox">
7272
<label><strong>{{.locale.Tr "auth.allow_password_change"}}</strong></label>
7373
<input name="must_change_password" type="checkbox" checked>

templates/repo/editor/commit_form.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</label>
5959
</div>
6060
</div>
61-
<div class="quick-pull-branch-name {{if not (eq .commit_choice "commit-to-new-branch")}}hide{{end}}">
61+
<div class="quick-pull-branch-name {{if not (eq .commit_choice "commit-to-new-branch")}}gt-hidden{{end}}">
6262
<div class="new-branch-name-input field {{if .Err_NewBranchName}}error{{end}}">
6363
{{svg "octicon-git-branch"}}
6464
<input type="text" name="new_branch_name" value="{{.new_branch_name}}" class="input-contrast gt-mr-2 js-quick-pull-new-branch-name" placeholder="{{.locale.Tr "repo.editor.new_branch_name_desc"}}" {{if eq .commit_choice "commit-to-new-branch"}}required{{end}} title="{{.locale.Tr "repo.editor.new_branch_name"}}">

0 commit comments

Comments
 (0)