Basics of producer modal in place

This commit is contained in:
Will Marshall
2014-05-15 14:01:31 +10:00
parent adb134743f
commit 3ac9c3e00d
3 changed files with 19 additions and 3 deletions

View File

@@ -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

View File

@@ -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|

View 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 }}