summaryrefslogtreecommitdiffstats
path: root/templates/admin/user
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-13 09:56:50 -0400
committerUnknwon <u@gogs.io>2015-09-13 09:56:50 -0400
commit1fa5b6711b1540415511cd33d17a12170ab69ba6 (patch)
treed93727e3602496a2b33bd6376515008d59412ddb /templates/admin/user
parent8e0a69f86a9e103d1d82d3c5000e01b4e2570a51 (diff)
downloadgitea-1fa5b6711b1540415511cd33d17a12170ab69ba6.tar.gz
gitea-1fa5b6711b1540415511cd33d17a12170ab69ba6.zip
fix html logic
Diffstat (limited to 'templates/admin/user')
-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 59f624ec7e..f8dfad11bd 100644
--- a/templates/admin/user/new.tmpl
+++ b/templates/admin/user/new.tmpl
@@ -15,7 +15,7 @@
<div class="inline required field {{if .Err_LoginType}}error{{end}}">
<label>{{.i18n.Tr "admin.users.auth_source"}}</label>
<div class="ui selection type dropdown">
- <input type="hidden" id="login_type" name="login_type" value="{{.login_type}}-{{.login_id}}" required>
+ <input type="hidden" id="login_type" name="login_type" value="{{.login_type}}" required>
<div class="text">{{.i18n.Tr "admin.users.local"}}</div>
<i class="dropdown icon"></i>
<div class="menu">
@@ -26,7 +26,7 @@
</div>
</div>
</div>
- <div class="required non-local field {{if .Err_LoginName}}error{{end}} {{if not (eq .login_type "0-0")}}hide{{end}}">
+ <div class="required non-local field {{if .Err_LoginName}}error{{end}} {{if eq .login_type "0-0"}}hide{{end}}">
<label for="login_name">{{.i18n.Tr "admin.users.auth_login_name"}}</label>
<input id="login_name" name="login_name" value="{{.login_name}}">
</div>
@@ -39,7 +39,7 @@
<input id="email" name="email" type="email" value="{{.email}}" required>
</div>
<input class="fake" type="password">
- <div class="required local field {{if .Err_Password}}error{{end}} {{if eq .login_type "0-0"}}hide{{end}}">
+ <div class="required local field {{if .Err_Password}}error{{end}} {{if not (eq .login_type "0-0")}}hide{{end}}">
<label for="password">{{.i18n.Tr "password"}}</label>
<input id="password" name="password" type="password" value="{{.password}}" required>
</div>