show.html.slim 3.97 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

Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- if policy(Volunteer).checklist?
  h3= t('checklist')
  .table-responsive
    table.table.table-no-border-top
      tbody
        tr
          td= t_attr(:trial_period)
          td= Volunteer.human_boolean(@volunteer.trial_period)
        tr
          td= t_attr(:intro_course)
          td= Volunteer.human_boolean(@volunteer.intro_course)
        tr
          td= t_attr(:doc_sent)
          td= Volunteer.human_boolean(@volunteer.doc_sent)
        tr
          td= t_attr(:bank_account)
          td= Volunteer.human_boolean(@volunteer.bank_account)
        tr
          td= t_attr(:evaluation)
          td= Volunteer.human_boolean(@volunteer.evaluation)

h3= t('personal_background')
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
35
36
37
38
39
.table-responsive
  table.table.table-no-border-top
    tbody
      = render 'contacts/show', contact: @volunteer.contact
      tr
40
41
        td= t_attr(:birth_year)
        td= l(@volunteer.birth_year) if @volunteer.birth_year
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
42
      tr
Tugce Nur Tas's avatar
Tugce Nur Tas committed
43
        td= t_attr(:salutation)
44
        td= t("salutation.#{@volunteer.salutation}") if @volunteer.salutation?
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
45
46
47
48
49
      tr
        td= t_attr(:avatar)
        td= image_tag @volunteer.avatar.url(:thumb) if @volunteer.avatar.present?
      tr
        td= t_attr(:nationality)
50
        td= nationality_name(@volunteer.nationality)
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
51
52
      tr
        td= t_attr(:additional_nationality)
53
        td= nationality_name(@volunteer.additional_nationality)
54

Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
55
56
57
58
59
60
61
62
63
64
65
66
67
      = 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)
68
69
70
        td
          dl.dl-horizontal
            dt= Volunteer.human_boolean(@volunteer.experience)
71
            dd= @volunteer.volunteer_experience_desc if @volunteer.volunteer_experience_desc?
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
72
73
74
75
76
77
78
79
80
81
82
83
84
85
      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?
86
          tr
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
87
88
            td= t_attr(:rejection_type)
            td= t("rejection_type.#{@volunteer.rejection_type}") if @volunteer.rejection_type.present?
89
          tr
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
90
91
            td= t_attr(:rejection_text)
            td= @volunteer.rejection_text
Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
92

93
94
95
96
97
h3= t_attr(:single_accompaniment)
.table-responsive
  table.table.table-striped
    thead
      tr
98
        - Volunteer::SINGLE_ACCOMPANIMENTS.each do |single|
99
100
101
          th.text-center= t_attr(single)
    tbody
      tr
102
        - Volunteer::SINGLE_ACCOMPANIMENTS.each do |single|
103
104
105
106
107
108
109
110
111
112
113
          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
114
        - Volunteer::GROUP_ACCOMPANIMENTS.each do |group|
115
116
117
118
          th.text-center
            = t_attr(group)
    tbody
      tr
119
        - Volunteer::GROUP_ACCOMPANIMENTS.each do |group|
120
121
122
123
124
          td.text-center
            - if @volunteer.read_attribute(group)
              i.glyphicon.glyphicon-ok.text-success
            - else
              i.glyphicon.glyphicon-remove.text-danger
125

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

128
129
130
131
132
133
- if @volunteer.assignments.any?
  .row
    .col-xs-12
      h3= t('assignments')
  = render 'assignments/assignments_block', assignments: @volunteer.assignments

134
135
= form_navigation_btn :edit
= form_navigation_btn :back