mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
17 lines
637 B
Plaintext
17 lines
637 B
Plaintext
- if can? :notify_producers, @order_cycle
|
|
= content_for :page_actions do
|
|
%li
|
|
= button_to "Notify producers", main_app.notify_producers_admin_order_cycle_path, :id => 'admin_notify_producers', :confirm => 'Are you sure?'
|
|
|
|
|
|
%h1
|
|
=t'edit_order_cycle'
|
|
|
|
|
|
- ng_controller = order_cycles_simple_form ? 'AdminSimpleEditOrderCycleCtrl' : 'AdminEditOrderCycleCtrl'
|
|
= form_for [main_app, :admin, @order_cycle], :url => '', :html => {:class => 'ng order_cycle', 'ng-app' => 'admin.orderCycles', 'ng-controller' => ng_controller} do |f|
|
|
- if order_cycles_simple_form
|
|
= render 'simple_form', f: f
|
|
- else
|
|
= render 'form', f: f
|