Add CRUD operations for Programming Groups
* Correct sorting in table * Modify page when nested in exercises * Fix links between pages * Link from statistics page to programming_groups/index * Link from submission page to programming_groups/<id> * Allow filtering for exercise ID on ProgrammingGroup#index * Add search fields for internal and external user id on pg/index
This commit is contained in:

committed by
Sebastian Serth

parent
f1ca5da44d
commit
79ce069f68
16
app/views/programming_groups/_form_edit.html.slim
Normal file
16
app/views/programming_groups/_form_edit.html.slim
Normal file
@@ -0,0 +1,16 @@
|
||||
= form_for(@programming_group) do |f|
|
||||
= render('shared/form_errors', object: @programming_group)
|
||||
|
||||
h3 = t('activerecord.attributes.programming_group.member')
|
||||
.table-responsive
|
||||
table.table class="#{@members.present? ? 'sortable' : ''}"
|
||||
thead
|
||||
tr
|
||||
th = t('activerecord.attributes.exercise.selection')
|
||||
th = t('navigation.sections.contributors')
|
||||
= collection_check_boxes :programming_group, :programming_group_membership_ids, @members, :id, :id do |b|
|
||||
tr
|
||||
td = b.check_box class: 'form-check-input'
|
||||
td = link_to_if(policy(b.object.user).show?, b.object.user.displayname, b.object.user)
|
||||
|
||||
.actions = render('shared/submit_button', f: f, object: @programming_group)
|
Reference in New Issue
Block a user