|
@@ -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) >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) >1">
|
|
|
+ <li t-if="a.value_ids and len(a.value_ids) >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">
|