Update web_hijri_date.xml to add new template for hijri widget

This commit is contained in:
Mohamed Eltayar 2025-08-29 02:56:15 +03:00
parent dfe293893c
commit 5cc072f2b8
1 changed files with 22 additions and 8 deletions

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<!-- Template الأصلي للتوافق الخلفي (لن يُستخدم افتراضياً) -->
<t t-name="web.datepicker" t-extend="web.datepicker">
<t t-jquery=".o_datepicker" t-operation="replace">
<div class="o_datepicker" aria-atomic="true" t-att-id="datepickerID" data-target-input="nearest">
@ -7,16 +8,29 @@
class="o_datepicker_input o_input datetimepicker-input"
t-att-name="widget.name"
t-att-placeholder="placeholder"
t-attf-data-target="##{datepickerID}"
t-attf-data-target="#{datepickerID}"
autocomplete="off"/>
<span class="o_datepicker_button"/>
<span class="o_datepicker_button"/>
<input type="text"
class="o_hijri o_input mt4"
t-att-name="widget.name"
t-att-placeholder="placeholder"/>
<span class="o_datepicker_button o_hijri_datepicker_button"/>
</div>
</t>
</t>
</templates>
<!-- Template الجديد للتواريخ الهجرية -->
<t t-name="web_hijri.datepicker">
<div class="o_datepicker o_hijri_datepicker" aria-atomic="true" t-att-id="datepickerID" data-target-input="nearest">
<input type="text"
class="o_datepicker_input o_input datetimepicker-input"
t-att-name="widget.name"
t-att-placeholder="placeholder"
t-attf-data-target="#{datepickerID}"
autocomplete="off"/>
<span class="o_datepicker_button"/>
<span class="o_datepicker_button"/>
<input type="text"
class="o_hijri o_input mt4"
t-att-name="widget.name"
t-att-placeholder="placeholder"/>
<span class="o_datepicker_button o_hijri_datepicker_button"/>
</div>
</t>
</templates>