Commit d893316e authored by Tugce Nur Tas's avatar Tugce Nur Tas Committed by Tuğçe Nur Taş
Browse files

adapt volunteers new availability views

parent fd7e6504
......@@ -102,5 +102,11 @@ h3= t_attr(:single_accompaniment, Volunteer)
.col-xs-12
= f.input :interests
h3= t('volunteer_availability')
= render 'schedules/form', f: f, participant: @volunteer
.row
.col-xs-12
h3= t_attr(:volunteer_availability, Volunteer)
- Volunteer::AVAILABILITY.each do |availability|
.col-xs-6.col-md-3
= f.input availability
.col-xs-12
= f.input :detailed_description
......@@ -135,7 +135,30 @@ h3= t_attr(:group_accompaniment)
td= t_attr(:other_offer_desc)
td= @volunteer.other_offer_desc
= render 'schedules/show', participant: @volunteer
h3= t_attr(:volunteer_availability)
.table-responsive
table.table.table-striped
thead
tr
- Volunteer::AVAILABILITY.each do |availability|
th.text-center
= t_attr(availability)
tbody
tr
- Volunteer::AVAILABILITY.each do |availability|
td.text-center
- if @volunteer.read_attribute(availability)
i.glyphicon.glyphicon-ok.text-success
- else
i.glyphicon.glyphicon-remove.text-danger
- if @volunteer.detailed_description?
.table-responsive
table.table.table-no-border-top
tbody
tr
td= t_attr(:detailed_description)
td= @volunteer.detailed_description
- if @volunteer.assignments.any?
.row
......
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