grantcallendar/app/views/dotations/_activate.html.erb

2 lines
219 B
Plaintext

<%= link_to((dotation.active.eql?(true) ? 'TAK' : 'NIE'), { controller: :dotations, action: :activate, id: dotation.id }, class: dotation.active.eql?(true) ? 'btn-sm btn-success' : 'btn-sm btn-danger', remote: true) %>