show.html.slim 3.61 KB
Newer Older
1
2
3
4
.row
  .col-xs-12
    h1= @volunteer.contact.full_name

5
- if @volunteer.seeking_clients?
6
7
8
  .row
    .col-xs-12
      = button_link t_title(:new, Assignment), new_assignment_path(volunteer_id: @volunteer)
9

10
11
- if policy(Volunteer).supervisor?
  = render 'journals/journal_block', journaled_for: @volunteer
12

Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
13
14
15
16
17
.table-responsive
  table.table.table-no-border-top
    tbody
      = render 'contacts/show', contact: @volunteer.contact
      tr
18
19
        td= t_attr(:birth_year)
        td= l(@volunteer.birth_year) if @volunteer.birth_year
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
20
      tr
Tugce Nur Tas's avatar
Tugce Nur Tas committed
21
        td= t_attr(:salutation)
22
        td= t("salutation.#{@volunteer.salutation}") if @volunteer.salutation?
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
23
24
25
26
27
      tr
        td= t_attr(:avatar)
        td= image_tag @volunteer.avatar.url(:thumb) if @volunteer.avatar.present?
      tr
        td= t_attr(:nationality)
28
        td= nationality_name(@volunteer.nationality)
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
29
30
      tr
        td= t_attr(:additional_nationality)
31
        td= nationality_name(@volunteer.additional_nationality)
32

Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
33
34
35
36
37
38
39
40
41
42
43
44
45
      = render 'language_skills/show', speaker: @volunteer

      tr
        td= t_attr(:profession)
        td= @volunteer.profession
      tr
        td= t_attr(:education)
        td= @volunteer.education
      tr
        td= t_attr(:motivation)
        td= @volunteer.motivation
      tr
        td= t_attr(:experience)
46
47
48
        td
          dl.dl-horizontal
            dt= Volunteer.human_boolean(@volunteer.experience)
49
            dd= @volunteer.volunteer_experience_desc if @volunteer.volunteer_experience_desc?
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
50
51
52
53
54
55
56
57
58
59
60
61
62
63
      tr
        td= t_attr(:expectations)
        td= @volunteer.expectations
      tr
        td= t_attr(:strengths)
        td= @volunteer.strengths
      tr
        td= t_attr(:interests)
        td= @volunteer.interests
      - if policy(Volunteer).destroy?
        tr
          td= t_attr(:state)
          td= t("state.#{@volunteer.state}")
        - if @volunteer.rejected?
64
          tr
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
65
66
            td= t_attr(:rejection_type)
            td= t("rejection_type.#{@volunteer.rejection_type}") if @volunteer.rejection_type.present?
67
          tr
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
68
69
70
71
72
73
74
75
76
77
78
            td= t_attr(:rejection_text)
            td= @volunteer.rejection_text
      tr
        td= t_attr(:duration)
        td= t("duration.#{@volunteer.duration}") if @volunteer.duration.present?
      tr
        td= t_attr(:region)
        td= t("region.#{@volunteer.region}") if @volunteer.region.present?
      tr
        td= t_attr(:region_specific)
        td= @volunteer.region_specific
Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
79

80
81
82
83
84
h3= t_attr(:single_accompaniment)
.table-responsive
  table.table.table-striped
    thead
      tr
85
        - Volunteer::SINGLE_ACCOMPANIMENTS.each do |single|
86
87
88
          th.text-center= t_attr(single)
    tbody
      tr
89
        - Volunteer::SINGLE_ACCOMPANIMENTS.each do |single|
90
91
92
93
94
95
96
97
98
99
100
          td.text-center
            - if @volunteer.read_attribute(single)
              i.glyphicon.glyphicon-ok.text-success
            - else
              i.glyphicon.glyphicon-remove.text-danger

h3= t_attr(:group_accompaniment)
.table-responsive
  table.table.table-striped
    thead
      tr
101
        - Volunteer::GROUP_ACCOMPANIMENTS.each do |group|
102
103
104
105
          th.text-center
            = t_attr(group)
    tbody
      tr
106
        - Volunteer::GROUP_ACCOMPANIMENTS.each do |group|
107
108
109
110
111
          td.text-center
            - if @volunteer.read_attribute(group)
              i.glyphicon.glyphicon-ok.text-success
            - else
              i.glyphicon.glyphicon-remove.text-danger
112

Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
113
= render 'schedules/show', participant: @volunteer
114

115
116
117
118
119
120
- if @volunteer.assignments.any?
  .row
    .col-xs-12
      h3= t('assignments')
  = render 'assignments/assignments_block', assignments: @volunteer.assignments

121
122
= form_navigation_btn :edit
= form_navigation_btn :back