Commit 08533489 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻 Committed by Kaspar
Browse files

fix assignments views using volunteer collection view with a Record

parent b0d01407
.row
.col-xs-12
table.table.table-striped
thead
tr
th= t_model(Client)
th= t_attr(:state, Assignment)
th= t_attr(:created_at, Assignment)
th= t_attr(:created_by)
th colspan='5'
tbody
= render assignments
......@@ -2,9 +2,9 @@
.col-xs-12
h1= @volunteer.contact.full_name
= render 'volunteers/columns', volunteers: @volunteer
= render 'volunteers/show_excerpt', volunteer: @volunteer
h3= t_attr(:single_accompaniment)
h3= t_attr(:single_accompaniment, Volunteer)
.table-responsive
table.table.table-striped
thead
......
.table-responsive
table.table.table-striped
thead
tr
th= t_attr(:title, Contact)
th= t_attr(:city, Contact)
th= t_attr(:postal_code, Contact)
th= t_attr(:primary_email, Contact)
th= t_attr(:birth_year, Volunteer)
th= t_attr(:native_language, LanguageSkill)
th= t_attr(:foreign_languages, LanguageSkill)
th= t_attr(:education, Volunteer)
th= t_attr(:profession, Volunteer)
th= t_attr(:working_percent, Volunteer)
th= t_attr(:expectations, Volunteer)
th= t_attr(:interests, Volunteer)
th= t_attr(:state, Volunteer)
tbody
tr
td = t("salutation.#{volunteer.salutation}") if volunteer.salutation?
td = volunteer.contact.full_name
td = volunteer.contact.city
td = volunteer.contact.postal_code
td = volunteer.contact.primary_email
td = volunteer.birth_year.year if volunteer.birth_year?
td = volunteer.language_skills.first.language_name if volunteer.language_skills.any?
td = render 'language_skills/show_inline', language_skills: volunteer.language_skills
td = volunteer.education
td = volunteer.profession
td #{volunteer.working_percent}%
td = volunteer.expectations
td = volunteer.interests
td = t("simple_form.options.volunteer.state.#{volunteer.state}")
......@@ -164,7 +164,7 @@ h3= t_attr(:volunteer_availability)
.row
.col-xs-12#assignments
h3= t('assignments')
= render 'assignments/assignments_block', assignments: @volunteer.assignments
= render 'assignments/volunteer_index', assignments: @volunteer.assignments
= form_navigation_btn :edit
= form_navigation_btn :back
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