Update XML to display Hijri field with proper label layout like standard Odoo fields

This commit is contained in:
Mohamed Eltayar 2025-08-28 15:41:11 +03:00
parent e0bf079f98
commit d56250eca8
1 changed files with 22 additions and 23 deletions

View File

@ -3,30 +3,29 @@
<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">
<!-- Gregorian Date Section -->
<div class="o_date_section">
<label class="o_date_label o_gregorian_label">التاريخ الميلادي</label>
<div class="o_date_input_container">
<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"/>
</div>
</div>
<!-- الحقل الميلادي العادي بدون تغيير -->
<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"/>
<!-- Hijri Date Section -->
<div class="o_date_section mt-2">
<label class="o_date_label o_hijri_label">التاريخ الهجري</label>
<div class="o_date_input_container">
<input type="text"
class="o_hijri o_input"
t-att-name="widget.name"
t-att-placeholder="'التاريخ الهجري'"
readonly="readonly"/>
<span class="o_datepicker_button o_hijri_datepicker_button"/>
<!-- محاكاة شكل الحقل العادي للهجري -->
<div class="o_hijri_field_container">
<div class="o_hijri_field_row">
<div class="o_hijri_label_container">
<label class="o_form_label o_hijri_label">التاريخ الهجري:</label>
</div>
<div class="o_hijri_input_container">
<input type="text"
class="o_hijri o_input"
t-att-name="widget.name"
t-att-placeholder="'التاريخ الهجري'"
readonly="readonly"/>
<span class="o_datepicker_button o_hijri_datepicker_button"/>
</div>
</div>
</div>
</div>