mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
Conflicts: app/assets/javascripts/admin/enterprise_fees.js app/assets/javascripts/admin/enterprises/controllers/side_menu_controller.js.coffee app/views/admin/shared/_columns_dropdown.html.haml app/views/admin/variant_overrides/_header.html.haml app/views/admin/variant_overrides/_products.html.haml spec/features/admin/bulk_order_management_spec.rb spec/features/admin/variant_overrides_spec.rb
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
- content_for :page_actions do
|
|
:javascript
|
|
function toggleSettings(){
|
|
if( $('#advanced_settings').is(":visible") ){
|
|
$('button#toggle_settings i').switchClass("icon-chevron-up","icon-chevron-down")
|
|
}
|
|
else {
|
|
$('button#toggle_settings i').switchClass("icon-chevron-down","icon-chevron-up")
|
|
}
|
|
$("#advanced_settings").slideToggle()
|
|
}
|
|
|
|
- if can? :notify_producers, @order_cycle
|
|
%li
|
|
= button_to "Notify producers", main_app.notify_producers_admin_order_cycle_path, :id => 'admin_notify_producers', :confirm => 'Are you sure?'
|
|
%li
|
|
%button#toggle_settings{ onClick: 'toggleSettings()' }
|
|
Advanced Settings
|
|
%i.icon-chevron-down
|
|
|
|
|
|
#advanced_settings{ hidden: true }
|
|
= render partial: "/admin/order_cycles/advanced_settings"
|
|
|
|
%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
|