clarion/app/views/management/volunteers/show.html.slim
Tocho Tochev 5ff505d246 Add indication for unverified volunteers (#45)
We want to have some indication for that some volunteers haven't confirmed their email.

Perhaps "unverified" is bad terminology, but until we have proper "verification" it will suffice.

(Ideally there would also be a filter, but my rails is way too rusty...)

Reviewed-on: #45
Co-authored-by: Tocho Tochev <tocho@tochev.net>
Co-committed-by: Tocho Tochev <tocho@tochev.net>
2024-06-01 12:31:38 +03:00

54 lines
2.0 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(@volunteer.confirmed_at.present? ? "envelope" : "envelope-o", @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]