[IMP] Improved css for edit button.
bzr revid: tpa@tinyerp.com-20130531105333-kg2ktcdawjfddzlv
This commit is contained in:
@@ -357,7 +357,7 @@
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_job oe_kanban_card oe_kanban_global_click">
|
||||
<div class="oe_dropdown_toggle oe_dropdown_kanban">
|
||||
<div class="oe_dropdown_toggle oe_dropdown_kanban oe_custom">
|
||||
<span class="oe_e">í</span>
|
||||
<ul class="oe_dropdown_menu">
|
||||
<t t-if="widget.view.is_action_enabled('edit')">
|
||||
@@ -385,7 +385,7 @@
|
||||
<a name="%(hr_job_applications)d" type="action" t-if="record.application_count.value gt 1" class="oe_link"><t t-esc="record.application_count.value"/> Applications</a>
|
||||
<a name="%(hr_job_applications)d" type="action" t-if="record.application_count.value lt 2" class="oe_link"><t t-esc="record.application_count.value"/> Application</a>
|
||||
</div>
|
||||
<field state="recruit" name="no_of_recruitment" widget="gage" style="width:200px; height:130px;" options="{'min_field': 'no_of_hired_employee','max_field': 'no_of_recruitment', 'label_field': 'no_of_hired_employee', 'action_change': 'action_hired_employee'}">Forecast</field>
|
||||
<field state="recruit" name="no_of_recruitment" widget="gage" options="{'min_field': 'no_of_hired_employee','max_field': 'no_of_recruitment', 'label_field': 'no_of_hired_employee', 'action_change': 'action_hired_employee'}">Forecast</field>
|
||||
</t>
|
||||
<t t-if="record.state.raw_value == 'open'">
|
||||
<div class="oe_start_recruitment">
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
width: 355px;
|
||||
min-height: 125px !important;
|
||||
}
|
||||
.openerp .oe_custom{
|
||||
z-index:2;
|
||||
}
|
||||
.openerp .oe_job {
|
||||
font-size: 112%;
|
||||
position: inline;
|
||||
@@ -38,6 +41,13 @@
|
||||
font-size: 11px;
|
||||
color: gray;
|
||||
}
|
||||
.openerp .oe_justgage {
|
||||
float: right;
|
||||
margin-top: -105px;
|
||||
margin-right: -30px;
|
||||
width:200px;
|
||||
height:130px;
|
||||
}
|
||||
.openerp .oe_department {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ openerp.hr_recruitment = function (openerp) {
|
||||
var value = parent.values.no_of_hired_employee.value;
|
||||
var flag_open = false;
|
||||
this.$el.empty()
|
||||
.attr('style', this.$node.attr('style') + ';float: right; margin-top: -105px; margin-right: -30px;')
|
||||
.attr('id', unique_id);
|
||||
.attr('id', unique_id)
|
||||
.attr('class','oe_justgage');
|
||||
this.gage = new JustGage({
|
||||
id: unique_id,
|
||||
node: this.$el[0],
|
||||
@@ -40,7 +40,7 @@ openerp.hr_recruitment = function (openerp) {
|
||||
if (!self.$el.find(".oe_justgage_edit").size()) {
|
||||
var $svg = self.$el.find('svg');
|
||||
$div = $('<div class="oe_justgage_edit" style="text-align: center; z-index: 1; position: absolute; width: ' + $svg.outerWidth() + 'px; top: ' + ($svg.outerHeight()/2-5) + 'px;"/>');
|
||||
$input = $('<input style="text-align: center; width: ' + ($svg.outerWidth()-40) + 'px; margin: auto;"/>').val(value);
|
||||
$input = $('<input style="text-align: center; width: ' + ($svg.outerWidth()/2) + 'px; margin: auto;"/>').val(value);
|
||||
$div.append($input);
|
||||
self.$el.prepend($div)
|
||||
$input.focus()
|
||||
|
||||
Reference in New Issue
Block a user