Add view for StudyGroups
This commit is contained in:
19
app/views/study_groups/_form.html.slim
Normal file
19
app/views/study_groups/_form.html.slim
Normal file
@@ -0,0 +1,19 @@
|
||||
= form_for(@study_group) do |f|
|
||||
= render('shared/form_errors', object: @study_group)
|
||||
.form-group
|
||||
= f.label(:name)
|
||||
= f.text_field(:name, class: 'form-control', required: true)
|
||||
|
||||
h3 = t('activerecord.attributes.study_group.members')
|
||||
.table-responsive
|
||||
table.table
|
||||
thead
|
||||
tr
|
||||
th = t('activerecord.attributes.exercise.selection')
|
||||
th = sort_link(@search, :name, t('navigation.sections.users'))
|
||||
= collection_check_boxes :study_group, :study_group_membership_ids, @members, :id, :id do |b|
|
||||
tr
|
||||
td = b.check_box
|
||||
td = link_to_if(policy(b.object.user).show?, b.object.user.displayname, b.object.user)
|
||||
|
||||
.actions = render('shared/submit_button', f: f, object: @study_group)
|
Reference in New Issue
Block a user