aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-03-02 13:22:04 +0900
committerGitHub <noreply@github.com>2023-03-02 12:22:04 +0800
commit0945bf63d3e0784c06a9d85504d42458b091d6b8 (patch)
treee1a41113e7c2f7e5c82ab1dddd3768a2f476c141 /templates/admin
parent785a3e6e92948814b8b54fe430de0cb92d5806e9 (diff)
downloadgitea-0945bf63d3e0784c06a9d85504d42458b091d6b8.tar.gz
gitea-0945bf63d3e0784c06a9d85504d42458b091d6b8.zip
Fix missed `.hide` class (#23208)
https://github.com/go-gitea/gitea/pull/22950 removed `hide` class, and use `gt-hidden` But there are some missed `hide`.... --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/user/new.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/admin/user/new.tmpl b/templates/admin/user/new.tmpl
index e5ca864cb7..2bf1d0ace5 100644
--- a/templates/admin/user/new.tmpl
+++ b/templates/admin/user/new.tmpl
@@ -50,7 +50,7 @@
</div>
</div>
- <div class="required non-local field {{if .Err_LoginName}}error{{end}} {{if eq .login_type "0-0"}}hide{{end}}">
+ <div class="required non-local field {{if .Err_LoginName}}error{{end}} {{if eq .login_type "0-0"}}gt-hidden{{end}}">
<label for="login_name">{{.locale.Tr "admin.users.auth_login_name"}}</label>
<input id="login_name" name="login_name" value="{{.login_name}}">
</div>
@@ -62,12 +62,12 @@
<label for="email">{{.locale.Tr "email"}}</label>
<input id="email" name="email" type="email" value="{{.email}}" required>
</div>
- <div class="required local field {{if .Err_Password}}error{{end}} {{if not (eq .login_type "0-0")}}hide{{end}}">
+ <div class="required local field {{if .Err_Password}}error{{end}} {{if not (eq .login_type "0-0")}}gt-hidden{{end}}">
<label for="password">{{.locale.Tr "password"}}</label>
<input id="password" name="password" type="password" autocomplete="new-password" value="{{.password}}" {{if eq .login_type "0-0"}}required{{end}}>
</div>
- <div class="inline field local{{if ne .login_type "0-0"}} hide{{end}}">
+ <div class="inline field local {{if ne .login_type "0-0"}}gt-hidden{{end}}">
<div class="ui checkbox">
<label><strong>{{.locale.Tr "auth.allow_password_change"}}</strong></label>
<input name="must_change_password" type="checkbox" checked>