show.html.slim 3.62 KB
Newer Older
1
2
.row
  .col-xs-12
Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
3
4
    h1= Volunteer.full_name(@volunteer)

5
6
7
8
9
10
11
12
13
14
15
.row
  .col-xs-12
    .table-responsive
      table.table.table-no-border-top
        tbody
          tr
            td= t_attr(:date_of_birth)
            td= l(@volunteer.date_of_birth) if @volunteer.date_of_birth
          tr
            td= t_attr(:gender)
            td= t("gender.#{@volunteer.gender}") unless @volunteer.gender.blank?
16
17
18
          tr
            td= t_attr(:avatar)
            td= image_tag @volunteer.avatar.url(:thumb) if @volunteer.avatar.present?
19
20
          tr
            td= t_attr(:nationality)
21
            td= country(@volunteer.nationality)
22
          tr
23
            td= t_attr(:additional_nationality)
24
            td= country(@volunteer.additional_nationality)
25
26
27
28
29
30
31
32
33
34
          tr
            td= t_attr(:street)
            td= @volunteer.street
          tr
            td= t_attr(:zip)
            td= @volunteer.zip
          tr
            td= t_attr(:city)
            td= @volunteer.city
          tr
Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
35
            td= t_attr(:email)
36
37
38
39
            td= @volunteer.email
          tr
            td= t_attr(:phone)
            td= @volunteer.phone
40
41
42
          tr
            td= t('language_skills')
            td= render 'language_skill_show', speaker: @volunteer
43
44
45
          tr
            td= t('relatives')
            td= render 'relatives_show', relative: @volunteer
46
47
48
49
50
51
52
53
54
55
56
          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)
57
            td= Volunteer.human_boolean(@volunteer.experience)
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
          tr
            td= t_attr(:expectations)
            td= @volunteer.expectations
          tr
            td= t_attr(:strengths)
            td= @volunteer.strengths
          tr
            td= t_attr(:skills)
            td= @volunteer.skills
          tr
            td= t_attr(:interests)
            td= @volunteer.interests
          tr
            td= t_attr(:state)
            td= @volunteer.state
          tr
            td= t_attr(:duration)
            td= t("duration.#{@volunteer.duration}") unless @volunteer.duration.blank?
          tr
            td= t_attr(:region)
            td= t("region.#{@volunteer.region}") unless @volunteer.region.blank?
79

Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
.row
  .col-xs-12
    h3= t('single_accompaniment')
    table.table.table-striped
      thead
        tr
          - Volunteer.single_accompaniment.each do |single|
            th.text-center
              = t("accompaniment.#{single}")
      tbody
        tr
          - Volunteer.single_accompaniment.each do |single|
            td.text-center
              - if @volunteer.read_attribute(single)
                i.glyphicon.glyphicon-ok.text-success
              - else
                i.glyphicon.glyphicon-remove.text-danger
97

Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
.row
  .col-xs-12
    h3= t('group_accompaniment')
    table.table.table-striped
      thead
        tr
          - Volunteer.group_accompaniment.each do |group|
            th.text-center
              = t("accompaniment.#{group}")
      tbody
        tr
          - Volunteer.group_accompaniment.each do |group|
            td.text-center
              - if @volunteer.read_attribute(group)
                i.glyphicon.glyphicon-ok.text-success
              - else
                i.glyphicon.glyphicon-remove.text-danger
115

Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
116
= render 'schedules_show', participant: @volunteer
117

118
119
.row
  .col-xs-12
Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
120
121
122
123
124
    = link_to t_action(:edit), edit_volunteer_path(@volunteer), class: 'btn btn-default'

.row
  .col-xs-12
    = link_to t('back'), volunteers_path, class: 'btn btn-default'