Allow teachers to access internal users and manage them in their study groups

This commit is contained in:
Sebastian Serth
2022-09-22 17:55:10 +02:00
committed by Sebastian Serth
parent e3018c1847
commit 0e7c38657f
11 changed files with 45 additions and 22 deletions

View File

@@ -6,11 +6,11 @@
h3 = t('activerecord.attributes.study_group.members')
.table-responsive
table.table
table.sortable.table
thead
tr
th = t('activerecord.attributes.exercise.selection')
th = sort_link(@search, :name, t('navigation.sections.users'))
th = t('navigation.sections.users')
= collection_check_boxes :study_group, :study_group_membership_ids, @members, :id, :id do |b|
tr
td = b.check_box class: 'form-check-input'

View File

@@ -12,10 +12,10 @@ h1
h2.mt-4 = t('activerecord.attributes.study_group.members')
.table-responsive
table.table
table.sortable.table
thead
tr
th = sort_link(@search, :name, t('navigation.sections.users'))
th = t('navigation.sections.users')
- @study_group.users.each do |user|
tr
td = link_to_if(policy(user).show?, user.displayname, user)