mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
Basics of producer modal in place
This commit is contained in:
@@ -12,8 +12,7 @@
|
||||
%strong Our producers
|
||||
%ul
|
||||
%li{"ng-repeat" => "producer in hub.producers"}
|
||||
%ofn-modal{title: "{{ producer.name }}"}
|
||||
{{ producer || json }}
|
||||
= render partial: "modals/producer"
|
||||
|
||||
.row.active_table_row.link{"ng-show" => "open()", "ng-if" => "hub.active"}
|
||||
.columns.small-11
|
||||
|
||||
@@ -6,7 +6,11 @@ child distributed_taxons: :taxons do
|
||||
end
|
||||
|
||||
child suppliers: :producers do
|
||||
attributes :name, :id
|
||||
attributes :name, :id, :description, :long_description
|
||||
|
||||
node :promo_image do |producer|
|
||||
producer.promo_image.url
|
||||
end
|
||||
end
|
||||
|
||||
node :pickup do |hub|
|
||||
|
||||
13
app/views/modals/_producer.html.haml
Normal file
13
app/views/modals/_producer.html.haml
Normal file
@@ -0,0 +1,13 @@
|
||||
%ofn-modal{title: "{{ producer.name }}"}
|
||||
#producer_modal{bindonce: true}
|
||||
.row
|
||||
.small-12.columns
|
||||
%img{"bo-src" => "producer.promo_image"}
|
||||
%h3 {{ producer.name }}
|
||||
|
||||
.row
|
||||
.small-6.columns
|
||||
%p
|
||||
{{ producer.description }}
|
||||
.small-6.columns
|
||||
Stay in touch with {{ producer.name }}
|
||||
Reference in New Issue
Block a user