mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-24 05:38:52 +00:00
Conflicts: Gemfile.lock app/controllers/admin/order_cycles_controller.rb app/views/admin/order_cycles/edit.html.haml app/views/admin/order_cycles/show.rep db/schema.rb spec/controllers/admin/order_cycles_controller_spec.rb
15 lines
588 B
Plaintext
15 lines
588 B
Plaintext
= content_for :page_actions do
|
|
%li
|
|
= button_to "Notify producers", main_app.notify_producers_admin_order_cycle_path, :id => 'admin_notify_producers'
|
|
|
|
|
|
%h1 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.order_cycles', 'ng-controller' => ng_controller, 'ng-submit' => 'submit($event)'} do |f|
|
|
- if order_cycles_simple_form
|
|
= render 'simple_form', f: f
|
|
- else
|
|
= render 'form', f: f
|