Verified Commit cd919012 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

feat(semester-process-volunteer): add nested attribute form table to select...

feat(semester-process-volunteer): add nested attribute form table to select volunteers for semester-process
parent 39bc9a2e
......@@ -4,6 +4,23 @@
.row:.col-xs-12.col-md-4
= f.input :semester, collection: @semester.collection, selected: params[:semester], input_html: { class: 'semester-selector' }
fieldset
legend Freiwillige auswählen
.table-responsive.table-scrollable
table.table.table-striped
thead:tr
th
th Name
th Einsatz
tbody
= f.simple_fields_for :semester_process_volunteers do |fv|
tr
td= fv.input :selected, as: :boolean, label: false
td= link_to fv.object.volunteer.contact.full_name, fv.object.volunteer
td.index-action-cell
= fv.hidden_field :volunteer_id
- fv.object.semester_process_volunteer_missions.each do |mission|
= link_to mission.mission.to_label, mission.mission
.row:.col-xs-12
= f.button :submit
= f.button :submit
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment