app/views/button/_toggle_order_paid.html.slim
- c = defined?(css) ? css : ''
- url = url_for([:toggle_paid, @basket, @order])
- if @order.paid?
a.btn.btn-default> class=c href=url data-method="patch" title=t('button.toggle_paid.paid.title') button.toggle_paid.paid.button
- else
a.btn.btn-primary> class=c href=url data-method="patch" title=t('button.toggle_paid.not_paid.title') button.toggle_paid.not_paid.button