show.html.slim 4.97 KB
Newer Older
1
h1.m-b-20= @volunteer.contact.full_name
2
3
4
5
6
- if @volunteer.rejected?
  - if @volunteer.rejection_type.present?
    h4= "#{t_attr(:rejection_type)}: #{t("rejection_type.#{@volunteer.rejection_type}")}"
  - if @volunteer.rejection_text.present?
    h4= "#{t_attr(:rejection_text)}: #{@volunteer.rejection_text}"
7

Emily Wangler's avatar
Emily Wangler committed
8
= render 'buttons'
Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
9

Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
10
- if policy(Volunteer).superadmin_privileges?
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
11
  - if @volunteer.import.present?
12
    = render 'import_account_invite', volunteer: @volunteer
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
13

Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
14
15

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

35
h2.small Persönlicher Hintergrund
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
36
37
38
.table-responsive
  table.table.table-no-border-top
    tbody
Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
39
40
41
      tr
        td= t_attr(:salutation)
        td= t("salutation.#{@volunteer.salutation}") if @volunteer.salutation?
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
42
43
      = render 'contacts/show', contact: @volunteer.contact
      tr
44
        td= t_attr(:birth_year)
45
        td= @volunteer.birth_year.try(:year)
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
46
47
48
49
50
      tr
        td= t_attr(:avatar)
        td= image_tag @volunteer.avatar.url(:thumb) if @volunteer.avatar.present?
      tr
        td= t_attr(:nationality)
51
        td= nationality_name(@volunteer.nationality)
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
52
53
      tr
        td= t_attr(:additional_nationality)
54
        td= nationality_name(@volunteer.additional_nationality)
55

Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
56
57
58
59
60
      = render 'language_skills/show', speaker: @volunteer

      tr
        td= t_attr(:profession)
        td= @volunteer.profession
61
62
63
      tr
        td= t_attr(:own_kids)
        td= @volunteer.own_kids
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
64
65
66
67
68
69
70
71
      tr
        td= t_attr(:education)
        td= @volunteer.education
      tr
        td= t_attr(:motivation)
        td= @volunteer.motivation
      tr
        td= t_attr(:experience)
72
        td
73
74
75
76
          - if @volunteer.experience?
            dl.dl-horizontal
              dt= t(@volunteer.experience)
              dd= @volunteer.volunteer_experience_desc
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
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
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
86
87
88
89
90
91
92
93
      - if @volunteer.internal?
        tr
          td= t_attr(:bank_details)
          td= @volunteer.full_bank_details
        tr
          td= t_attr(:waive)
          td= t(@volunteer.waive)

94
      tr
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
95
96
        td #{t_attr(:external)} / #{t_attr(:internal)}
        td= @volunteer.external? ? t_attr(:external) : t_attr(:internal)
Tugce Nur Tas's avatar
Tugce Nur Tas committed
97
      tr
98
        td= t_attr(:created_by)
Tugce Nur Tas's avatar
Tugce Nur Tas committed
99
        td
Tugce Nur Tas's avatar
Tugce Nur Tas committed
100
          - if @volunteer.self_applicant?
Tugce Nur Tas's avatar
Tugce Nur Tas committed
101
            = t('volunteer_self_applicant')
Tugce Nur Tas's avatar
Tugce Nur Tas committed
102
          - else
Tugce Nur Tas's avatar
Tugce Nur Tas committed
103
            = link_to @volunteer.registrar.full_name, profile_link(@volunteer.registrar)
104
      - if policy(Volunteer).show_comments?
105
106
107
108
109
110
        tr
          td= t_attr(:comments)
          td= @volunteer.comments
        tr
          td= t_attr(:additional_comments)
          td= @volunteer.additional_comments
Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
111

Markus Koller's avatar
Markus Koller committed
112
113
114
115
116
117
.row
  .col-xs-6
    = render 'volunteers/single_accompaniments', volunteer: @volunteer
  .col-xs-6
    h3= t_attr(:availability, Volunteer)
    = render 'availability/show', available: @volunteer
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
118

Markus Koller's avatar
Markus Koller committed
119
120
121
122
h3= t_attr(:group_accompaniment)
h4.label-list
  .row
    .col-xs-12
123
124
      - if @group_offer_categories.present?
        - @group_offer_categories.each do |category|
Markus Koller's avatar
Markus Koller committed
125
126
          span.label.label-success>
            => navigation_glyph(:yes)
127
128
129
            = t_attr(category.category_name)
      - else
        em Keine Kategorien Ausgewählt
Markus Koller's avatar
Markus Koller committed
130
131
  .row
    .col-xs-12
132
133
134
135
      - @group_offer_categories_house_moving.each do |category|
        span.label.label-success>
          => navigation_glyph(:yes)
          = t_attr(category.category_name)
136

Markus Koller's avatar
Markus Koller committed
137
138
139
140
141
142
143
144
.row
  .col-xs-12
    strong= t_attr(:other_offer_desc)
    ':
    - if @volunteer.other_offer_desc?
      = @volunteer.other_offer_desc
    - else
      em keine
145

146
- if @current_assignments.present?
147
  h2.small#assignments Aktuelle Begleitungen
148
  = render 'assignments/client_volunteer_index', assignments: @current_assignments
149

150
- if @archived_assignments.present?
151
  h2.small Archivierte Begleitungen
152
153
  = render 'assignment_logs/assignment_logs_volunteer_index',
      assignment_logs: @archived_assignments
154

155
- if @current_group_assignments.present?
156
  h2.small#assignments= t('.group_assignments')
157
158
  = render 'group_assignments/volunteer_group_assignments',
      group_assignments: @current_group_assignments, editable: true
159

160
- if @archived_group_assignments.present?
161
  h2.small= t('.old_group_assignments')
162
163
  = render 'group_assignments/volunteer_group_assignments_logs',
      group_assignment_logs: @archived_group_assignments
Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
164

Tugce Nur Tas's avatar
Tugce Nur Tas committed
165
166
- if policy(Event).show? && @volunteer_events.present?
  = render 'events/volunteer_events', events: @volunteer_events
167

Emily Wangler's avatar
Emily Wangler committed
168
= render 'buttons'