Skip to content

Commit

Permalink
Option hiding corrected
Browse files Browse the repository at this point in the history
Fixes: e45a831
Related: #18466
Author-Change-Id: IB#1105051
  • Loading branch information
pboguslawski committed Feb 4, 2022
1 parent e45a831 commit 38e5a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/admin/user/edit.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@

<div class="ui divider"></div>

<div class="inline field" {{if DisableLocalUserManagement}} hidden{{end}}>
<div class="inline field">
<div class="ui checkbox">
<label><strong>{{.i18n.Tr "admin.users.is_activated"}}</strong></label>
<input name="active" type="checkbox" {{if .User.IsActive}}checked{{end}} {{if DisableLocalUserManagement}}readonly{{end}}>
</div>
</div>
<div class="inline field">
<div class="inline field" {{if DisableLocalUserManagement}} hidden{{end}}>
<div class="ui checkbox">
<label><strong>{{.i18n.Tr "admin.users.prohibit_login"}}</strong></label>
<input name="prohibit_login" type="checkbox" {{if .User.ProhibitLogin}}checked{{end}} {{if eq .User.ID .SignedUserID}}disabled{{end}}>
Expand Down

0 comments on commit 38e5a4d

Please sign in to comment.