show.html.slim 3.39 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.row
  .col-xs-12
    h1
      = @volunteer.first_name
      | ,
      = @volunteer.last_name
.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?
18
19
20
          tr
            td= t_attr(:avatar)
            td= image_tag @volunteer.avatar.url(:thumb) if @volunteer.avatar.present?
21
22
          tr
            td= t_attr(:nationality)
23
            td= country(@volunteer.nationality)
24
          tr
25
            td= t_attr(:additional_nationality)
26
            td= country(@volunteer.additional_nationality)
27
28
29
30
31
32
33
34
35
36
          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
37
            td= t_attr(:email)
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
            td= @volunteer.email
          tr
            td= t_attr(:phone)
            td= @volunteer.phone
          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)
53
            td= Volunteer.human_boolean(@volunteer.experience)
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
          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?
75

Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.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
93

Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.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
111
112
113

.row
  .col-xs-12
Chrysanthi Lagodimou's avatar
Chrysanthi Lagodimou committed
114
115
116
117
118
    = 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'