mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
12 lines
442 B
Plaintext
12 lines
442 B
Plaintext
%h1
|
|
=t'new_order_cycle'
|
|
|
|
- ng_controller = order_cycles_simple_form ? 'AdminSimpleCreateOrderCycleCtrl' : 'AdminCreateOrderCycleCtrl'
|
|
= admin_inject_order_cycle_instance
|
|
|
|
= 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
|