mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
- content_for(:title) do
|
|
= current_distributor.name
|
|
- content_for(:description) do
|
|
= current_distributor.description
|
|
- content_for(:image) do
|
|
= current_distributor.logo.url
|
|
|
|
- content_for :injection_data do
|
|
= inject_enterprise_shopfront(@enterprise)
|
|
|
|
%shop.darkswarm
|
|
- if @shopfront_layout == 'embedded'
|
|
= render partial: 'shop/blocked_cookies'
|
|
|
|
.alert-box.changeable-orders-alert.info.animate-show{ ng: { show: "alert.visible && alert.html", cloak: true } }
|
|
%span{ ng: { bind: { html: "alert.html" } } }
|
|
%a.close{ ng: { click: "alert.close()" } } ×
|
|
|
|
- content_for :order_cycle_form do
|
|
|
|
%div{"ng-controller" => "OrderCycleChangeCtrl", "ng-cloak" => true}
|
|
%closing{"ng-if" => "OrderCycle.selected()"}
|
|
= t :enterprises_next_closing
|
|
%strong {{ OrderCycle.orders_close_at() | date_in_words }}
|
|
|
|
%span
|
|
= t :enterprises_ready_for
|
|
|
|
/ Will this label should be a variable to reflect 'Ready for pickup / delivery' as appropriate
|
|
|
|
%select.avenir#order_cycle_id{"ng-model" => "order_cycle.order_cycle_id",
|
|
"ofn-change-order-cycle" => true,
|
|
"disabled" => require_customer?,
|
|
"ng-options" => "oc.id as oc.time for oc in #{@order_cycles.map {|oc| {time: pickup_time(oc), id: oc.id}}.to_json}",
|
|
"popover-placement" => "left", "popover" => t(:enterprises_choose), "popover-trigger" => "openTrigger"}
|
|
|
|
|
|
|
|
= render partial: "shopping_shared/details"
|
|
|
|
= render partial: 'shop/messages'
|
|
|
|
- unless require_customer?
|
|
.row= render partial: "shop/products/form"
|
|
|
|
= render partial: "shared/footer"
|