Commit 69df378d690b6aef535bbbf0522495bdc643f5a2

Authored by Rodrigo Souto
1 parent 405d15e1

Adding the cart namespace to a style selector of the cart plugin

plugins/shopping_cart/public/style.css
@@ -209,7 +209,7 @@ label.error { @@ -209,7 +209,7 @@ label.error {
209 padding-left: 5px; 209 padding-left: 5px;
210 } 210 }
211 211
212 -#order-filter { 212 +#cart-order-filter {
213 background-color: #ccc; 213 background-color: #ccc;
214 border: 1px solid #aaa; 214 border: 1px solid #aaa;
215 border-radius: 5px; 215 border-radius: 5px;
plugins/shopping_cart/views/shopping_cart_plugin_myprofile/reports.html.erb
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 <% status_collection = [[nil, _('All')]] %> 6 <% status_collection = [[nil, _('All')]] %>
7 <% status_collection += status.map{|s| [pos+=1, s] } %> 7 <% status_collection += status.map{|s| [pos+=1, s] } %>
8 8
9 -<% form_tag({}, {:id => 'order-filter'}) do %> 9 +<% form_tag({}, {:id => 'cart-order-filter'}) do %>
10 <%= labelled_text_field(_('From')+' ', :from, @from.strftime("%Y-%m-%d"), :id => 'from', :size => 9) %> 10 <%= labelled_text_field(_('From')+' ', :from, @from.strftime("%Y-%m-%d"), :id => 'from', :size => 9) %>
11 <%= labelled_text_field(_('to')+' ', :to, @to.strftime("%Y-%m-%d"), :id => 'to', :size => 9) %> 11 <%= labelled_text_field(_('to')+' ', :to, @to.strftime("%Y-%m-%d"), :id => 'to', :size => 9) %>
12 <span style="white-space:nowrap"><%= labelled_select(_('Status')+' ', :filter_status, :first, :last, @status, status_collection)%></span> 12 <span style="white-space:nowrap"><%= labelled_select(_('Status')+' ', :filter_status, :first, :last, @status, status_collection)%></span>