Verified Commit 8e80eab4 authored by Markus Koller's avatar Markus Koller 🦊
Browse files

Don't use remote for toggle links

parent 08b85cfb
Pipeline #18767 passed with stage
in 40 minutes and 57 seconds
......@@ -26,7 +26,7 @@ table.table.table-striped.group-assignments-table
title: 'Herunterladen'
- if policy(group_assignment.group_offer).change_active_state?
= button_link navigation_glyph(group_assignment.group_offer.active? ? :deactivate : :activate),
change_active_state_group_offer_path(group_assignment.group_offer), method: :put, remote: :true,
change_active_state_group_offer_path(group_assignment.group_offer), method: :put,
title: (group_assignment.group_offer.active? ? 'Deaktivieren' : 'Aktivieren')
td
- if group_assignment.group_offer
......
......@@ -53,7 +53,7 @@ table.table.table-striped
= button_link navigation_glyph(:download), group_offer_path(offer, format: :pdf), title: 'Herunterladen'
- if offer.period_end.blank?
= button_link navigation_glyph(offer.active? ? :deactivate : :activate),
change_active_state_group_offer_path(offer), method: :put, remote: :true,
change_active_state_group_offer_path(offer), method: :put,
title: (offer.active? ? 'Deaktivieren' : 'Aktivieren')
- if policy(offer).initiate_termination? && offer.terminatable?
= button_link navigation_glyph(:terminate),
......
Supports Markdown
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