mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
WIP: adding shopfront message to shop
This commit is contained in:
@@ -68,3 +68,14 @@
|
||||
|
||||
i.ofn-i_036-producers
|
||||
padding-left: 0.5rem
|
||||
|
||||
.shopfront_message, .shopfront_closed_message
|
||||
padding: 15px
|
||||
border-radius: 5px
|
||||
border: 2px solid #eb4c46
|
||||
|
||||
.shopfront_message
|
||||
margin-top: 2em
|
||||
|
||||
.shopfront_closed_message
|
||||
margin: 2em 0em
|
||||
|
||||
10
app/views/shop/_messages.html.haml
Normal file
10
app/views/shop/_messages.html.haml
Normal file
@@ -0,0 +1,10 @@
|
||||
- if @order_cycles and @order_cycles.empty?
|
||||
.row
|
||||
.small-12.columns
|
||||
.shopfront_closed_message
|
||||
= current_distributor.preferred_shopfront_message
|
||||
- elsif current_distributor.preferred_shopfront_message.present?
|
||||
.row
|
||||
.small-12.columns
|
||||
.shopfront_message
|
||||
= current_distributor.preferred_shopfront_message
|
||||
@@ -1,4 +1,4 @@
|
||||
= inject_enterprises
|
||||
= inject_enterprises
|
||||
|
||||
%shop.darkswarm
|
||||
- content_for :order_cycle_form do
|
||||
@@ -12,15 +12,17 @@
|
||||
|
||||
/ 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",
|
||||
%select.avenir#order_cycle_id{"ng-model" => "order_cycle.order_cycle_id",
|
||||
"ng-change" => "changeOrderCycle()",
|
||||
"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" => "Choose when you want your order:", "popover-trigger" => "openTrigger"}
|
||||
|
||||
|
||||
|
||||
|
||||
= render partial: "shopping_shared/details"
|
||||
|
||||
= render partial: 'shop/messages'
|
||||
|
||||
.row
|
||||
= render partial: "shop/products/form"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user