mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
= content_for :page_title do
|
|
= t :admin_order_cycles
|
|
|
|
= content_for :page_actions do
|
|
%li#new_order_cycle_link
|
|
= button_link_to t(:new_order_cycle), main_app.new_admin_order_cycle_path, :icon => 'icon-plus', :id => 'admin_new_order_cycle_link'
|
|
- if @show_more
|
|
%li
|
|
= button_link_to t(:label_less), main_app.admin_order_cycles_path
|
|
- else
|
|
%li
|
|
= button_link_to t(:label_more), main_app.admin_order_cycles_path(params: { show_more: true })
|
|
|
|
= form_for @order_cycle_set, url: main_app.bulk_update_admin_order_cycles_path, html: {"ng-app" => "admin.orderCycles"} do |f|
|
|
%table.index#listing_order_cycles
|
|
%colgroup
|
|
%col
|
|
%col{'style' => 'width: 20%;'}
|
|
%col{'style' => 'width: 20%;'}
|
|
- unless order_cycles_simple_index
|
|
%col
|
|
%col
|
|
%col
|
|
%col
|
|
%col
|
|
%col
|
|
%col
|
|
|
|
%thead
|
|
%tr
|
|
%th
|
|
=t :name
|
|
%th
|
|
=t :open
|
|
%th
|
|
=t :close
|
|
- unless order_cycles_simple_index
|
|
%th
|
|
=t :supplier
|
|
%th
|
|
=t :coordinator
|
|
%th
|
|
=t :distributors
|
|
%th
|
|
=t :products
|
|
%th.actions
|
|
%th.actions
|
|
%th.actions
|
|
|
|
%tbody
|
|
= f.fields_for :collection do |order_cycle_form|
|
|
= render 'admin/order_cycles/row', order_cycle_form: order_cycle_form
|
|
|
|
= f.submit t :update
|