index.html.slim 1.46 KB
Newer Older
1
h1= t_title(:index)
2
3
4
5
6
7
8
9
10
11

= render 'index_nav'

= bootstrap_paginate(@spvs)

.table-responsive
  table.table.table-striped
    thead
      tr
        th.hidden-print Aktionen
cla's avatar
cla committed
12
        th Status
cla's avatar
cla committed
13
14
        th Freiwilige/r
        th Einsätze
Jiri Strojil's avatar
Tmp    
Jiri Strojil committed
15
        th Missions
16
17
18
19
        th Ziele
        th Erfolge
        th Zukunft
        th Bemerkungen
20
        th= t_attr(:commited_by)
cla's avatar
cla committed
21
        th Letzte Bestätigung
22
23

    tbody
24
      - @spvs_sorted.each do |spv|
25
26
        tr
          td.index-action-cell.hidden-print
cla's avatar
cla committed
27
28
29
30
31
32
            = button_link icon_span(:edit), review_semester_semester_process_volunteer_path(spv), title: 'Bearbeiten'
          td
            - if spv.commited_at.present?
              .label.label-success Bestätigt
            - else
              .label.label-warning Unbestätigt
Jiri Strojil's avatar
Tmp    
Jiri Strojil committed
33
          td= link_to_if policy(Volunteer).edit?, spv.volunteer.contact.full_name, edit_volunteer_path(spv.volunteer)
34
          td= spv.semester_t
35
          td= render_missions(spv)
36
37
38
39
          = td_truncate_content_modal(spv.render_feedback(:goals), 'Ziele', shorten_size: 300)
          = td_truncate_content_modal(spv.render_feedback(:achievements), 'Erfolge', shorten_size: 300)
          = td_truncate_content_modal(spv.render_feedback(:future), 'Zukunft', shorten_size: 300)
          = td_truncate_content_modal(spv.render_feedback(:comments), 'Bemerkungen', shorten_size: 300)
40
41
          td= spv.commited_by
          td= spv.commited_at && l(spv.commited_at)
42
43
44
45

= bootstrap_paginate(@spvs)

= render 'index_nav'