[IMP] website_event: Reduce daterange width

Purpose
=======
Reduce the daterange widget width in the add
event website modal to avoid unecessary white
gaps.

Task-3081384

Part-of: odoo/odoo#106980
This commit is contained in:
amdi-odoo
2023-01-11 09:38:46 +01:00
parent f23c463b26
commit ba5da3a1ec
@@ -12,10 +12,10 @@
<field name="name" placeholder="e.g. &quot;Conference for Architects&quot;" string="Event Name"/>
<field name="address_id" context="{'show_address': 1}" options='{"always_reload": True}'/>
<label for="date_begin" string="Start &#8594; End"/>
<div class="o_row w-100">
<field name="date_begin" widget="daterange" nolabel="1" options="{'related_end_date': 'date_end'}"/>
<div class="d-flex flex-column flex-sm-row align-items-baseline w-100">
<field name="date_begin" style="width: 17ch" widget="daterange" nolabel="1" options="{'related_end_date': 'date_end'}"/>
<i class="fa fa-long-arrow-right mx-2" aria-label="Arrow icon" title="Arrow"/>
<field name="date_end" widget="daterange" nolabel="1" options="{'related_start_date': 'date_begin'}"/>
<field name="date_end" style="width: 17ch" widget="daterange" nolabel="1" options="{'related_start_date': 'date_begin'}"/>
</div>
</group>
</form>