Files
openfoodnetwork/app/views/enterprises/shop.html.haml
Jean-Baptiste Bellet 6dbe91b199 Positions the order_cycle according to shop-tabs
- Move from `enterprises/shop.html.haml` to `shopping_shared/_tabs.html.haml` to handle its position correctly
 - Remove marginTop and height to order cycle component and display it relative to parent's bottom (ie. the columns in `tab-buttons`)
- Adjust z-index to display the entire component
2021-04-20 13:50:33 +02:00

27 lines
854 B
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
- cache(*CacheService::FragmentCaching.ams_shop(@enterprise)) 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
= render partial: "change_order_cycle"
= render partial: "shopping_shared/header"
= render partial: "shopping_shared/tabs"
= render partial: "shared/footer"