[ADD] Trying to improve the form_steps_separtor.png.

bzr revid: vta@openerp.com-20120806142359-m6saukyiwx33mibf
This commit is contained in:
vta vta@openerp.com 2012-08-06 16:23:59 +02:00
parent 22b25ce40b
commit 33cd3834ef
4 changed files with 4 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 B

View File

@ -4706,7 +4706,7 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
_.each(elemts, function(element){
$item = $(element);
if ($item.attr("data-id") != self.selected_value) {
$item.attr("style", "cursor: pointer; background: #ba3d37;");
$item.attr("style", "cursor: pointer; background: #ba3d37; position: relative; left: 5px;");
$item.parent().attr("style", "background: #ba3d37;");
$item.click(function(event){
var data_id = parseInt($(this).attr("data-id"))
@ -4715,7 +4715,7 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
});
});
} else {
$item.attr("style", "background: #8a89ba;");
$item.attr("style", "background: #8a89ba; position: relative; left: 5px;");
$item.parent().attr("style", "background: #8a89ba;");
}
});

View File

@ -1032,10 +1032,8 @@
<t t-set="size" t-value="widget.to_show.length"/>
<t t-foreach="_.range(size)" t-as="i">
<li t-att-class="widget.to_show[i][0] === widget.selected_value ? 'oe_form_steps_active' : ''">
<span class="oe_form_steps_item" t-att-data-id="widget.to_show[i][0]"><t t-esc="widget.to_show[i][1]"/></span>
<span>
<img t-att-src='_s + "/web/static/src/img/form_steps_separator_v2.png"' style="position: relative; left: 10px; top: 1px;" class="oe_form_steps_arrow" t-if="i &lt; size - 1"/>
</span>
<span class="oe_form_steps_item" t-att-data-id="widget.to_show[i][0]"><t t-esc="widget.to_show[i][1]"/></span>
<img t-att-src='_s + "/web/static/src/img/form_steps_separator_v4.png"' style="position: relative; left: 10px; height: 30px" class="oe_form_steps_arrow" t-if="i &lt; size - 1"/>
<!-- <img t-att-src='_s + "/web/static/src/img/form_steps_separator.png"' class="oe_form_steps_arrow" t-if="i &lt; size - 1"/> -->
</li>
</t>