| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<templates xml:space="preserve"> |
| 3 |
|
| 4 |
<t t-name="hr_holidays.CalendarController" t-inherit="web.CalendarController" t-inherit-mode="primary"> |
| 5 |
<xpath expr="//Layout" position="inside"> |
| 6 |
<t t-if="props.archInfo.canCreate" t-set-slot="control-panel-create-button"> |
| 7 |
<span class="o_timeoff_buttons btn-group"> |
| 8 |
<div class="btn-group"> |
| 9 |
<button class="btn btn-primary btn-time-off " t-on-click="newTimeOffRequest" type="button"> |
| 10 |
New |
| 11 |
</button> |
| 12 |
</div> |
| 13 |
</span> |
| 14 |
</t> |
| 15 |
</xpath> |
| 16 |
</t> |
| 17 |
|
| 18 |
<t t-name="hr_holidays.CalendarView.Buttons"> |
| 19 |
<button t-if="canCreateGroupTimeOff" class="btn btn-secondary" t-on-click="onNewGroupTimeOff"> |
| 20 |
New Group Time Off |
| 21 |
</button> |
| 22 |
</t> |
| 23 |
|
| 24 |
</templates> |