[IMP] Improved visual aspect of the stagesbar.

bzr revid: vta@openerp.com-20120806144722-9cich1qg6t8ad3iq
This commit is contained in:
vta vta@openerp.com 2012-08-06 16:47:22 +02:00
parent 33cd3834ef
commit d159b218c7
3 changed files with 6 additions and 6 deletions

View File

@ -1952,7 +1952,7 @@
}
.openerp ul.oe_form_steps li {
border-right: none;
padding: 0;
padding: 0px;
margin: 0;
float: left;
vertical-align: top;

View File

@ -4706,8 +4706,8 @@ 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; position: relative; left: 5px;");
$item.parent().attr("style", "background: #ba3d37;");
$item.attr("style", "cursor: pointer; background: #ba3d37; position: relative; left: 5px; top: -3px;");
$item.parent().attr("style", "background: #ba3d37; height: 24px; margin-top: 3px;");
$item.click(function(event){
var data_id = parseInt($(this).attr("data-id"))
self.view.dataset.call('stage_set', [[self.view.datarecord.id],data_id]).then(function() {
@ -4715,8 +4715,8 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
});
});
} else {
$item.attr("style", "background: #8a89ba; position: relative; left: 5px;");
$item.parent().attr("style", "background: #8a89ba;");
$item.attr("style", "background: #8a89ba; position: relative; left: 5px; top: -3px;");
$item.parent().attr("style", "background: #8a89ba; height: 24px; margin-top: 3px;");
}
});
}

View File

@ -1033,7 +1033,7 @@
<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>
<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_v4.png"' style="position: relative; left: 10px; height: 24px" 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>