Commit a0a6007e authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou
Browse files

add assignments to volunteer show

parent c9fd180b
tr
td = link_to assignment.client, assignment.client
td = link_to assignment.volunteer, assignment.volunteer
- if action_name == 'index'
td = link_to assignment.volunteer, assignment.volunteer
td = t("state.#{assignment.state}", scope: [:simple_form, :options, :assignment]) if assignment.state.present?
td = link_to assignment.creator, assignment.creator if assignment.creator.present?
= render 'index_actions', subject: assignment
......
.row
.col-xs-12
table.table.table-striped
thead
tr
th= t_model(Client)
- if action_name == 'index'
th= t_model(Volunteer)
th= t_attr(:state)
th= t_attr(:created_by)
th colspan='5'
tbody
= render assignments
......@@ -2,18 +2,6 @@
.col-xs-12
h1= t('assignments')
.row
.col-xs-12
table.table.table-striped
thead
tr
th= t_model(Client)
th= t_model(Volunteer)
th= t_attr(:state)
th= t_attr(:created_by)
th colspan='5'
tbody
= render @assignments
= render 'assignments_block', assignments: @assignments
= form_navigation_btn :new
......@@ -109,5 +109,11 @@ h3= t_attr(:group_accompaniment)
= render 'schedules/show', participant: @volunteer
- if @volunteer.assignments.any?
.row
.col-xs-12
h3= t('assignments')
= render 'assignments/assignments_block', assignments: @volunteer.assignments
= form_navigation_btn :edit
= form_navigation_btn :back
Markdown is supported
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