Commit 79c46f7c authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou
Browse files

show logs at volunteer show

parent 42796b38
- group_assignments.each do |group_assignment|
table.table.table-striped
thead
tr
th= t_attr(:title, GroupOffer)
th= t_attr(:volunteer_role, GroupAssignment)
th= t_attr(:start_date, GroupAssignment)
th= t_attr(:end_date, GroupAssignment)
th colspan='5'
tbody
table.table.table-striped
thead
tr
th= t_attr(:title, GroupOffer)
th= t_attr(:volunteer_role, GroupAssignment)
th= t_attr(:start_date, GroupAssignment)
th= t_attr(:end_date, GroupAssignment)
th colspan=(editable == 'yes' ? '6' : '2')
tbody
- group_assignments.each do |group_assignment|
tr
td= link_to group_assignment.group_offer.title, group_offer_path(group_assignment.group_offer)
- if group_assignment.responsible
td= t_attr(:responsible, GroupAssignment)
- else
td= t_attr(:member, GroupAssignment)
td= l(group_assignment.start_date)
td= l(group_assignment.end_date)
td= l(group_assignment.start_date) if group_assignment.start_date
td= l(group_assignment.end_date) if group_assignment.end_date
td= link_to t_action(:show), group_offer_path(group_assignment.group_offer)
td= link_to t('download'), group_offer_path(group_assignment.group_offer, format: :pdf)
- if policy(GroupOffer).edit?
td= link_to t_action(:edit), edit_group_offer_path(group_assignment.group_offer)
- if policy(GroupOffer).destroy?
td= link_to t_action(:destroy), group_offer_path(group_assignment.group_offer), confirm_deleting(group_assignment.group_offer)
- if policy(GroupOffer).change_active_state?
td= link_to "#{ group_assignment.group_offer.active? ? t('.deactivate') : t('.activate') }",
change_active_state_group_offer_path(group_assignment.group_offer), method: :put, remote: :true
- if editable == 'yes'
- if policy(GroupOffer).edit?
td= link_to t_action(:edit), edit_group_offer_path(group_assignment.group_offer)
- if policy(GroupOffer).destroy?
td= link_to t_action(:destroy), group_offer_path(group_assignment.group_offer), confirm_deleting(group_assignment.group_offer)
- if policy(GroupOffer).change_active_state?
td= link_to "#{ group_assignment.group_offer.active? ? t('.deactivate') : t('.activate') }",
change_active_state_group_offer_path(group_assignment.group_offer), method: :put, remote: :true
......@@ -174,7 +174,11 @@ h3= t('.availability')
- if @volunteer.group_assignments.any?
h3#group_assignments= t('.group_assignments')
= render 'group_assignments', group_assignments: @volunteer.group_assignments
= render 'group_assignments', group_assignments: @volunteer.group_assignments, editable: 'yes'
- if @volunteer.group_assignment_logs.any?
h3#group_assignment_logs= t('.old_group_assignments')
= render 'group_assignments', group_assignments: @volunteer.group_assignment_logs, editable: 'no'
nav.navbar.section-navigation
ul.list-inline
......
......@@ -186,6 +186,7 @@ de:
group_assignments: Gruppenangebote
hour_reports: Stunden Rapporte
new_certificate: Nachweis ausstellen
old_group_assignments: Gruppenangebote Archive
report_hours: Stunden erfassen
show_certificate: Nachweis anzeigen
show_certificates: Nachweise anzeigen
......
......@@ -177,6 +177,7 @@ en:
group_assignments: Group offers
hour_reports: Hour reports
new_certificate: Create certificate
old_group_assignments: Group assignments log
report_hours: Report hours
show_certificate: Show certificate
show_certificates: Show certificates
......
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