Adding producer details popups

This commit is contained in:
Will Marshall
2014-03-12 12:39:15 +11:00
parent 0d97397084
commit f73cd3db7d
3 changed files with 15 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
%section
%p.title.avenir{"data-section-title" => ""}
%a{href: "#producers"} Our Producers
.content{"data-section-content" => ""}
%ul
- for producer in @producers
%li
%a{"data-reveal-id" => "producer_details_#{producer.id}"}
= producer.name

View File

@@ -18,7 +18,8 @@
%div
%h5
{{ product.name }}
{{ product.supplier.name }}
%a{"data-reveal-id" => "producer_details_{{product.supplier.id}}"}
{{ product.supplier.name }}
%td.notes {{ product.notes | truncate:80 }}
%td
%span{"ng-hide" => "product.variants.length > 0"} {{ product.master.options_text }}

View File

@@ -1,5 +1,4 @@
%shop.darkswarm{"ng-app" => "Shop"}
- content_for :order_cycle_form do
%strong.avenir Ready for
%select.avenir#order_cycle_id{"ng-model" => "order_cycle.order_cycle_id",
@@ -12,6 +11,8 @@
%strong {{ order_cycle.orders_close_at | date_in_words }}
= render partial: "shop/details"
-# This partial generates the producer detail popovers
= render partial: "shop/shop/producer_details"
%tabs
.row
@@ -23,13 +24,7 @@
%img.about.right{src: @distributor.promo_image.url(:large)}
%p= @distributor.long_description.andand.html_safe
%section
%p.title.avenir{"data-section-title" => ""}
%a{href: "#producers"} Our Producers
.content{"data-section-content" => ""}
%ul
- for producer in @producers
%li= producer.name
= render 'shop/shop/producers'
%section
%p.title.avenir{"data-section-title" => ""}
@@ -45,6 +40,7 @@
%products.row
= render partial: "shop/shop/products"
#footer
%section.row
= render partial: "shop/shop/contact_us"