<% if operation.enabled? %> <%= link_to disable_filter_operation_path(operation.filter, operation), data: { method: :patch, confirm: 'Are you sure you want to disable this operation?' }, class: "bg-green-400 relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500", "aria-pressed":"false" do %> Disable <% end %> <% else %> <%= link_to enable_filter_operation_path(operation.filter, operation), data: { method: :patch, confirm: 'Are you sure you want to disable this operation?' }, class: "bg-gray-200 relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500", "aria-pressed":"false" do %> Enable <% end %> <% end %>
Class name: <%= operation.class_name %>
Argument: <%= operation.argument %>