Adjust filter for platform_admin user search and update views

This commit is contained in:
Janis Vaneylen
2022-09-09 17:51:24 +02:00
committed by Sebastian Serth
parent 02c65af034
commit 998a12e6bc
8 changed files with 25 additions and 25 deletions

View File

@@ -9,7 +9,8 @@
.mb-3
= f.label(:name, class: 'form-label')
= f.text_field(:name, class: 'form-control', required: true)
.mb-3
= f.label(:role, class: 'form-label')
= f.select(:role, User::ROLES.map { |role| [t("users.roles.#{role}"), role] }, {selected: @user.role || 'teacher'}, class: 'form-control')
.form-check
label.form-check-label
= f.check_box(:platform_admin, class: 'form-check-input')
= f.label(:platform_admin, t('activerecord.attributes.external_user.platform_admin'), class: 'form-label')
.actions = render('shared/submit_button', f: f, object: @user)