2016-10-09 07:17:34 +03:00
|
|
|
- content_for :title
|
|
|
|
= @volunteer.name
|
|
|
|
|
|
|
|
.row
|
|
|
|
.col-lg-12
|
|
|
|
h1.page-header
|
|
|
|
= Volunteer.model_name.human.mb_chars.titleize
|
|
|
|
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-body
|
|
|
|
.media
|
|
|
|
.media-left.hidden-sm.hidden-xs
|
2024-02-20 02:27:07 +02:00
|
|
|
- if @volunteer.picture.attached?
|
|
|
|
= image_tag @volunteer.picture.variant(resize_to_limit: [150, 150])
|
2016-10-09 07:17:34 +03:00
|
|
|
- else
|
2024-02-20 02:27:07 +02:00
|
|
|
= image_tag('avatar-placeholder.png')
|
2016-10-09 07:17:34 +03:00
|
|
|
|
|
|
|
.media-body
|
|
|
|
.text-center.visible-sm.visible-xs
|
2024-02-20 02:27:07 +02:00
|
|
|
- if @volunteer.picture.attached?
|
|
|
|
= image_tag @volunteer.picture.variant(resize_to_limit: [150, 150])
|
2016-10-09 07:17:34 +03:00
|
|
|
- else
|
2024-02-20 02:27:07 +02:00
|
|
|
= image_tag('avatar-placeholder.png')
|
|
|
|
|
2016-10-09 07:17:34 +03:00
|
|
|
h4.media-heading
|
|
|
|
= @volunteer.name
|
|
|
|
hr
|
2024-04-18 18:57:26 +03:00
|
|
|
h4 = Volunteer.human_attribute_name(:volunteer_team)
|
|
|
|
= @volunteer.volunteer_team.name
|
|
|
|
h4 = Volunteer.human_attribute_name(:additional_volunteer_teams)
|
|
|
|
= @volunteer.additional_volunteer_teams.map(&:name).join(', ')
|
2016-10-09 07:17:34 +03:00
|
|
|
- if @volunteer.previous_experience.present?
|
|
|
|
h4 = Volunteer.human_attribute_name(:previous_experience)
|
|
|
|
= simple_format @volunteer.previous_experience
|
|
|
|
- if @volunteer.notes.present?
|
|
|
|
h4 = Volunteer.human_attribute_name(:notes)
|
|
|
|
= simple_format @volunteer.notes
|
|
|
|
h4 = t '.other_info'
|
|
|
|
= icon(:language, t("locales.#{@volunteer.language}"))
|
|
|
|
br
|
2024-05-18 15:49:34 +03:00
|
|
|
= icon(@volunteer.confirmed_at.present? ? "envelope" : "envelope-o", @volunteer.email)
|
2016-10-09 07:17:34 +03:00
|
|
|
br
|
|
|
|
= icon(:phone, @volunteer.phone.try(:phony_formatted, format: :international))
|
|
|
|
br
|
|
|
|
| 👕
|
|
|
|
=< t("simple_form.options.volunteer.tshirt_cut.#{@volunteer.tshirt_cut}")
|
|
|
|
=< t("simple_form.options.volunteer.tshirt_size.#{@volunteer.tshirt_size}")
|
|
|
|
br
|
|
|
|
= icon(:cutlery, t("simple_form.options.volunteer.food_preferences.#{@volunteer.food_preferences}"))
|
|
|
|
.panel-footer
|
|
|
|
.text-right
|
|
|
|
.btn-group.btn-group-sm
|
|
|
|
= action_buttons current_conference, @volunteer, [:edit, :destroy]
|