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

54 lines
2.0 KiB
Plaintext
Raw Normal View History

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
- if @volunteer.picture.attached?
= image_tag @volunteer.picture.variant(resize_to_limit: [150, 150])
2016-10-09 07:17:34 +03:00
- else
= image_tag('avatar-placeholder.png')
2016-10-09 07:17:34 +03:00
.media-body
.text-center.visible-sm.visible-xs
- if @volunteer.picture.attached?
= image_tag @volunteer.picture.variant(resize_to_limit: [150, 150])
2016-10-09 07:17:34 +03:00
- else
= image_tag('avatar-placeholder.png')
2016-10-09 07:17:34 +03:00
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(', ')
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
= 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]