Commit 6995e1b4 authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou
Browse files

birth year instead of birth date

parent b9570b6d
......@@ -25,7 +25,7 @@ h4.m-b-10= t('assignment_pdf.volunteer_title')
.col-xs-7.col-input= @assignment.volunteer.contact.full_city
.col-xs-5= t('assignment_pdf.birth_year')
.col-xs-7.col-input= @assignment.volunteer.birth_year
.col-xs-7.col-input= @assignment.volunteer.birth_year.try(:year)
h4.m-b-10= t('assignment_pdf.client_title')
.row.m-b-10
......@@ -44,7 +44,7 @@ h4.m-b-10= t('assignment_pdf.client_title')
.col-xs-7.col-input= @assignment.client.contact.primary_email
.col-xs-5= t('assignment_pdf.birth_year')
.col-xs-7.col-input= @assignment.client.birth_year
.col-xs-7.col-input= @assignment.client.birth_year.try(:year)
.col-xs-6
.row
.col-xs-5= t('assignment_pdf.first_name')
......
......@@ -55,7 +55,7 @@ h3= t('personal_background')
= render 'contacts/show', contact: @volunteer.contact
tr
td= t_attr(:birth_year)
td= l(@volunteer.birth_year) if @volunteer.birth_year
td= @volunteer.birth_year.try(:year)
tr
td= t_attr(:salutation)
td= t("salutation.#{@volunteer.salutation}") if @volunteer.salutation?
......
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