Simplify layout by using clear placeholders instead of complex labels

This commit is contained in:
Mohamed Eltayar 2025-08-28 15:53:18 +03:00
parent a0b674c15a
commit 371eaada97
1 changed files with 9 additions and 18 deletions

View File

@ -3,31 +3,22 @@
<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">
<!-- الحقل الميلادي العادي بدون تغيير -->
<!-- الحقل الميلادي -->
<input type="text"
class="o_datepicker_input o_input datetimepicker-input"
t-att-name="widget.name"
t-att-placeholder="placeholder"
t-att-placeholder="'التاريخ الميلادي'"
t-attf-data-target="##{datepickerID}"
autocomplete="off"/>
<span class="o_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>
<!-- الحقل الهجري -->
<input type="text"
class="o_hijri o_input mt-2"
t-att-name="widget.name"
t-att-placeholder="'التاريخ الهجري'"
readonly="readonly"/>
<span class="o_datepicker_button o_hijri_datepicker_button"/>
</div>
</t>
</t>