mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_widget_numeric_step: Migration to 16.0
This commit is contained in:
@@ -4,37 +4,43 @@ Copyright 2019 GRAP - Quentin DUPONT
|
||||
Copyright 2020 Tecnativa - Alexandre Díaz
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
-->
|
||||
<templates>
|
||||
<t t-name="web_widget_numeric_step">
|
||||
<t t-if="widget.mode != 'readonly'">
|
||||
<div class="input-group widget_numeric_step">
|
||||
<div class="input-group-prepend">
|
||||
<button
|
||||
class="fa fa-minus btn btn-default btn_numeric_step"
|
||||
aria-label="Minus"
|
||||
title="Minus"
|
||||
type="button"
|
||||
data-mode="minus"
|
||||
/>
|
||||
</div>
|
||||
<input
|
||||
type="tel"
|
||||
class="form-control input_numeric_step"
|
||||
aria-label="Value"
|
||||
<template>
|
||||
<t t-name="web_widget_numeric_step" owl="1">
|
||||
<div
|
||||
class="d-flex widget_numeric_step"
|
||||
t-on-mouseleave="_onFocusOutInput"
|
||||
t-on-mouseenter="_onFocusInput"
|
||||
>
|
||||
<div class="input-group-prepend d-none widget_numeric_step_btn">
|
||||
<button
|
||||
class="fa fa-minus btn btn-default btn_numeric_step"
|
||||
aria-label="Minus"
|
||||
title="Minus"
|
||||
type="button"
|
||||
data-mode="minus"
|
||||
t-on-click="_onStepClick"
|
||||
/>
|
||||
<div class="input-group-append">
|
||||
<button
|
||||
class="fa fa-plus btn btn-default btn_numeric_step"
|
||||
aria-label="Plus"
|
||||
title="Plus"
|
||||
type="button"
|
||||
data-mode="plus"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<field />
|
||||
</t>
|
||||
<input
|
||||
t-att-id="props.id"
|
||||
t-ref="numpadDecimal"
|
||||
t-att-placeholder="props.placeholder"
|
||||
t-att-type="props.inputType"
|
||||
class="o_input input_numeric_step"
|
||||
t-att-step="props.step"
|
||||
t-on-keydown="_onKeyDown"
|
||||
t-on-wheel="_onWheel"
|
||||
/>
|
||||
<div class="input-group-append d-none widget_numeric_step_btn">
|
||||
<button
|
||||
class="fa fa-plus btn btn-default btn_numeric_step"
|
||||
aria-label="Plus"
|
||||
title="Plus"
|
||||
type="button"
|
||||
data-mode="plus"
|
||||
t-on-click="_onStepClick"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user