cirandas.net

ref: master

plugins/orders_cycle/lib/orders_cycle_plugin/repeat_helper.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
module OrdersCyclePlugin::RepeatHelper

  def repeat_checkout_order_button order
    button :check, t('views.public.repeat.checkout'), {controller: :orders_cycle_plugin_order, action: :repeat, order_id: order.id, cycle_id: @cycle.id},
      class: 'repeat-checkout-order'
  end

  def repeat_choose_order_button order
    nil
  end

end