clarion/app/views/management/volunteers/show.html.slim

54 lines
1.9 KiB
Plaintext

- 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
- if @volunteer.picture.attached?
= image_tag @volunteer.picture.variant(resize_to_limit: [150, 150])
- else
= image_tag('avatar-placeholder.png')
.media-body
.text-center.visible-sm.visible-xs
- if @volunteer.picture.attached?
= image_tag @volunteer.picture.variant(resize_to_limit: [150, 150])
- else
= image_tag('avatar-placeholder.png')
h4.media-heading
= @volunteer.name
hr
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(', ')
- 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
= icon(:envelope, @volunteer.email)
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]