Files
openfoodnetwork/app/views/admin/order_cycles/edit.html.haml
2015-12-21 10:11:07 +01:00

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