mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
Style local organics product details distributor heading
This commit is contained in:
@@ -19,16 +19,16 @@
|
||||
%div.cleared
|
||||
%br
|
||||
- if order.nil? || order.distributor.nil?
|
||||
%div Distributor for your order:
|
||||
%div.distributor Distributor for your order:
|
||||
= select_tag "distributor_id", options_from_collection_for_select([Enterprise.new]+@product.distributors, "id", "name", :include_blank => '')
|
||||
- else
|
||||
- available_distributors = DistributorChangeValidator.new(order).available_distributors(@product.distributors)
|
||||
- if available_distributors.length > 1
|
||||
%div Distributor for your order:
|
||||
%div.distributor Distributor for your order:
|
||||
= select_tag "distributor_id", options_from_collection_for_select(available_distributors, "id", "name", current_distributor.andand.id)
|
||||
- else
|
||||
= hidden_field_tag "distributor_id", order.distributor.id
|
||||
.distributor-fixed= "Your distributor for this order is #{order.distributor.name}"
|
||||
%br
|
||||
= button_tag :class => 'large primary', :id => 'add-to-cart-button', :type => :submit do
|
||||
= t(:add_to_cart)
|
||||
= t(:add_to_cart)
|
||||
|
||||
@@ -17,6 +17,7 @@ nav#filters .filter_choices li a {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* Products listing page */
|
||||
#products-local ul {
|
||||
background-color: #e6f4ff;
|
||||
}
|
||||
@@ -28,3 +29,10 @@ ul.product-listing li a.info {
|
||||
ul.product-listing li .price {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
|
||||
/* Product details page */
|
||||
#cart-form .distributor {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
Reference in New Issue
Block a user