[FIX] website_event: Add style to the quantity of selected tickets

Issue:
- In mobile when we have multiple tickets, the quantity of
      selected tickets is not visible

Steps to reproduce the issue:
- Go to events
- Select any event with multiple tickets
- Go to website
- Click on register now
- Notice in mobile the quantity of selected tickets is not visible

Solution:
- Add style to the quantity of selected tickets

this it was introduced by: 469d94a
opw-3602057

closes odoo/odoo#146904

Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
This commit is contained in:
kdeb@odoo.com
2024-01-04 12:01:58 +00:00
parent 26a2e94528
commit e88f8ad89f
@@ -397,10 +397,10 @@
</div>
<div class="d-flex align-items-center justify-content-between p-0">
<div class="o_wevent_registration_multi_select flex-md-grow-1 me-2 text-end"/>
<div class="w-auto ms-auto">
<div class="ms-auto">
<select t-if="not ticket.is_expired and ticket.sale_available"
t-attf-name="nb_register-#{ticket.id}"
class="form-select">
class="w-auto form-select">
<t t-set="seats_max_ticket" t-value="(not ticket.seats_limited or ticket.seats_available &gt; 9) and 10 or ticket.seats_available + 1"/>
<t t-set="seats_max_event" t-value="(not event.seats_limited or event.seats_available &gt; 9) and 10 or event.seats_available + 1"/>
<t t-set="seats_max" t-value="min(seats_max_ticket, seats_max_event)"/>