index.html.slim 1019 Bytes
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
        th= t_attr(:commited_by)
cla's avatar
cla committed
17
        th Letzte Bestätigung
18
19

    tbody
20
      - @spvs_sorted.each do |spv|
21
22
        tr
          td.index-action-cell.hidden-print
cla's avatar
cla committed
23
24
25
26
27
28
            = 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
29
          td= link_to_if policy(Volunteer).edit?, spv.volunteer.contact.full_name, edit_volunteer_path(spv.volunteer)
30
          td= spv.semester_t
31
32
33
          td= render_missions(spv)
          td= spv.commited_by
          td= spv.commited_at && l(spv.commited_at)
34
35
36
37

= bootstrap_paginate(@spvs)

= render 'index_nav'