summaryrefslogtreecommitdiff
path: root/addons/hr_holidays/static/src/xml
diff options
context:
space:
mode:
authorjbm-odoo <jbm@odoo.com>2018-12-13 11:10:15 +0000
committerYannick Tivisse <yti@odoo.com>2019-01-21 11:29:30 +0000
commita3daff6bc121a42bf293ca91b8f522c26bac7c8a (patch)
tree7cdc12fc34bf66068e51970bb60f946c06c30a7e /addons/hr_holidays/static/src/xml
parent344877a0813a915344a230f1aaf1f932f2f9d5cb (diff)
[IMP] hr_holidays: Rename 'leave' into 'time off' + add dashboard
Purpose ======= We need to use an international word to define holidays and leaves, rename everything into Time Off. Employees needs a good dashboard and leaves summary Specification ============= 1/ Add a new dashboard: https://balsamiq.cloud/sm5j0d/pg5w04r Create a new dashboard with a calendar and a summary of all time off and time off request 2/ Rename leaves into Time Off everywhere 3/ Improve general usability TaskID: 1916871 closes odoo/odoo#29634
Diffstat (limited to 'addons/hr_holidays/static/src/xml')
-rw-r--r--addons/hr_holidays/static/src/xml/time_off_calendar.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/addons/hr_holidays/static/src/xml/time_off_calendar.xml b/addons/hr_holidays/static/src/xml/time_off_calendar.xml
new file mode 100644
index 00000000000..8e7746c228f
--- /dev/null
+++ b/addons/hr_holidays/static/src/xml/time_off_calendar.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<templates id="template" xml:space="preserve">
+ <t t-name="hr_holidays.dashboard.calendar.header">
+ <tr id="header_calendar_leaves">
+ <th colspan="7">
+ <button class="btn o_header_calendar_button_prev float-left" type="button">
+ <span class="fa fa-arrow-left"/>
+ </button>
+ <button class="btn o_header_calendar_button_next float-right" type="button">
+ <span class="fa fa-arrow-right"/>
+ </button>
+ <h2 class="o_header_calendar_month"><t t-esc="current_month"/></h2>
+ </th>
+ </tr>
+ </t>
+
+ <t t-name="hr_holidays.dashboard.calendar.button">
+ <button class="btn btn-primary btn-time-off" type="button">
+ <t t-esc="time_off"/>
+ </button>
+ <button class="btn btn-secondary btn-allocation" type="button">
+ <t t-esc="request"/>
+ </button>
+ </t>
+</templates>