Sprankelprachtig aan/afmeldsysteem

edit_subgroups.html.haml 796B

1234567891011121314151617181920212223242526272829303132
  1. .row
  2. .alert.alert-info
  3. = t 'activities.subgroups.only_present_people'
  4. .row
  5. .col-md-12
  6. = form_tag(group_activity_update_subgroups_path(@group, @activity)) do
  7. %table.table
  8. %tr
  9. %th
  10. Naam
  11. %th
  12. Huidig
  13. %th
  14. Nieuw
  15. - @participants.each do |p|
  16. %tr
  17. %td
  18. = p.person.full_name
  19. %td
  20. = p.subgroup&.name || '--'
  21. %td
  22. = select_tag("participant_subgroups[#{p.id}]", options_for_select(@subgroup_options, p.subgroup_id || 'nil'), class: 'form-control input-sm')
  23. = submit_tag("Opslaan", class: 'btn btn-primary')
  24. = link_to(edit_group_activity_path(@group, @activity), class: 'btn btn-default') do
  25. = t :back