Browse Source

Modificaciones

Edgar Ortigoza 8 years ago
parent
commit
799168bfa2
2 changed files with 38 additions and 3 deletions
  1. 10 1
      static/src/css/kingfisher_pro.css
  2. 28 2
      views/theme.xml

+ 10 - 1
static/src/css/kingfisher_pro.css

@@ -15,4 +15,13 @@
   padding-left: 3px; }
 #o_shop_collapse_category li i.fa {
   cursor: pointer; }
-
+  
+  
+.filtrouno {
+	margin: 5px 0px 5px 0px;
+	background:#FF6464;
+	color:#ffffff;
+	padding:10px;
+	width: 100%;
+	text-transform: uppercase;
+}

+ 28 - 2
views/theme.xml

@@ -1130,14 +1130,40 @@
                     <h3>Comprar por</h3>
                     <hr/>
                 </div>
+
+ <form class="js_attributes" method="get">
+                    <input name="buscar" t-att-value="search" type="hidden"/>
+                    <ul class="nav nav-pills nav-stacked mt16">
+                        <t t-as="b" t-foreach="attributes">
+                            <t t-if="b.name == 'Color'">
+                                <li t-if="b.value_ids and len(b.value_ids) &gt;1">
+                                    <div>
+                                        <strong class="filtrouno">Filtro por Colores</strong>
+                                    </div>
+                                    <t t-if="b.name == 'Color'">
+                                        <t t-as="w" t-foreach="b.value_ids">
+                                            <label t-attf-class="css_attribute_color #{'active' if w.id in attrib_set else ''}" t-attf-style="background-color:#{w.color or w.name}">
+                                                <input name="attrib" t-att-checked="'checked' if w.id in attrib_set else ''" t-att-title="w.name" t-att-value="'%s-%s' % (b.id,w.id)" type="checkbox"/>
+                                            </label>
+                                        </t>
+                                    </t>
+                                  
+                                   
+                                </li>
+                            </t>
+                        </t>
+                    </ul>
+                </form>
+
+
                 <form class="js_attributes" method="get">
                     <input name="search" t-att-value="search" type="hidden"/>
                     <ul class="nav nav-pills nav-stacked mt16">
                         <t t-as="a" t-foreach="attributes">
                             <t t-if="a.type != 'hidden'">
-                                <li t-if="a.value_ids and len(a.value_ids) &gt;1">
+                                <li t-if="a.value_ids and len(a.value_ids) &gt;1  and a.name != 'Color'"   >
                                     <div>
-                                        <strong t-field="a.name" style="margin-top: 10px;"/>
+                                        <strong class="filtrouno" t-field="a.name"/>
                                     </div>
                                     <t t-if="a.type == 'color'">
                                         <t t-as="v" t-foreach="a.value_ids">