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

2 lines
216 B
Plaintext

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