Commit c53f48b0 authored by Tugce Nur Tas's avatar Tugce Nur Tas
Browse files

add collapse partial for volunteers events

parent 18f0abab
button.btn.btn-default(data-toggle='collapse' data-target='#events' type='button' aria-expanded='false' aria-controls='events')
= 'Veranstaltungen'
hr
#events.collapse
.table-responsive
table.table
thead
th Art
th Datum
th Zeit
th Titel
th Departement
th
tbody
- events.each do |event|
tr
td= t(".#{event.kind}") if event.kind
td= l(event.date.to_date) if event.date
td
= "#{(event.start_time.strftime('%H:%M'))} - " if event.start_time
= "#{(event.end_time.strftime('%H:%M'))}" if event.end_time
td= event.title if event.title
td= event.department.contact.last_name if event.department
td.index-action-cell.hidden-print
span= link_to t_action(:show), event_path(event)
......@@ -192,6 +192,10 @@ h2.small= t('.availability')
h2.small= t('.old_group_assignments')
= render 'group_assignments/volunteer_group_assignments_logs', group_assignment_logs: @volunteer.group_assignment_logs
- if @volunteer.events.any?
h3#events Veranstaltungen
= render 'events/volunteer_events', events: @volunteer.events
nav.navbar.section-navigation
ul.list-inline
li= button_link current_user.volunteer? ? t('edit_profile') : t_title(:edit), edit_volunteer_path(@volunteer)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment