{"en_US": "<t name=\"Modal for tickets registration\" t-name=\"website_event.modal_ticket_registration\">\n    <!-- Modal -->\n    <div id=\"modal_ticket_registration\" t-attf-class=\"modal fade {{'o_wevent_modal_slot_ticket_registration' if event.is_multi_slots else ''}}\" data-bs-backdrop=\"static\" data-bs-keyboard=\"false\" tabindex=\"-1\" aria-labelledby=\"staticBackdropLabelTicket\" aria-hidden=\"true\">\n        <div class=\"modal-dialog\">\n            <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <div class=\"o_wevent_registration_title modal-title fs-5\" id=\"staticBackdropLabelTicket\">Tickets</div>\n                <div t-if=\"len(event.event_ticket_ids) &gt; 2\" class=\"o_wevent_price_range ms-2\"/>\n                <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"/>\n            </div>\n\n            <form t-if=\"event.event_registrations_open and (not event.event_ticket_ids or any(not ticket.is_expired for ticket in event.event_ticket_ids))\" id=\"registration_form\" t-attf-action=\"/event/#{slug(event)}/registration/new\" method=\"post\" itemscope=\"itemscope\" itemprop=\"offers\" itemtype=\"http://schema.org/AggregateOffer\">\n                <input type=\"hidden\" name=\"csrf_token\" t-att-value=\"request.csrf_token()\"/>\n                <input t-if=\"event_slot\" type=\"hidden\" name=\"event_slot_id\" t-att-value=\"event_slot.id\"/>\n                <div id=\"o_wevent_tickets\" class=\"shadow-sm o_wevent_js_ticket_details\">\n                    <div t-if=\"registration_error_code == 'insufficient_seats'\" class=\"alert alert-danger\" role=\"alert\">\n                        <p class=\"mb-0\">\n                            Registration failed! These tickets are not available anymore.\n                        </p>\n                    </div>\n                    <t t-set=\"tickets\" t-value=\"event.event_ticket_ids.filtered(lambda ticket: not ticket.is_expired)\"/>\n                    <!-- If some tickets expired and there is only one type left, we keep the same layout -->\n                    <t t-if=\"len(event.event_ticket_ids) &gt; 1\">\n                        <span t-if=\"not event.event_registrations_open\" class=\"text-danger\">\n                            <i class=\"fa fa-ban me-2\"/>Sold Out\n                        </span>\n                        <div id=\"o_wevent_tickets_collapse\" class=\"modal-body collapse show\">\n                            <div t-foreach=\"tickets\" t-as=\"ticket\" t-attf-class=\"d-flex justify-content-between o_wevent_ticket_selector mb-2 pb-2 {{not ticket_last and 'border-bottom' or ''}}\" t-att-name=\"ticket.name\">\n                                <div itemscope=\"itemscope\" itemtype=\"http://schema.org/Offer\">\n                                    <h5 itemprop=\"name\" t-field=\"ticket.name\" class=\"h6 my-0\"/>\n                                    <t t-if=\"ticket.description\">\n                                        <small t-field=\"ticket.description\" class=\"text-muted py-2\"/>\n                                        <br/>\n                                    </t>\n                                    <small t-if=\"ticket.end_sale_datetime and ticket.sale_available and not ticket.is_expired\" class=\"text-muted me-3\" itemprop=\"availabilityEnds\">Sales end on\n                                        <span itemprop=\"priceValidUntil\" t-out=\"ticket.end_sale_datetime\" t-options=\"{'widget': 'datetime', 'tz_name': event.date_tz, 'format': 'short'}\"/>\n                                        <span t-if=\"website_visitor_timezone != event.date_tz\">(<t t-out=\"event.date_tz\"/>)</span>\n                                    </small>\n                                    <small t-if=\"ticket.start_sale_datetime and not ticket.sale_available and not ticket.is_expired\" class=\"text-muted me-3\" itemprop=\"availabilityEnds\">\n                                        Sales start on <span itemprop=\"priceValidUntil\" t-out=\"ticket.start_sale_datetime\" t-options=\"{'widget': 'datetime', 'tz_name': event.date_tz, 'format': 'short'}\"/>\n                                        <span t-if=\"website_visitor_timezone != event.date_tz\">(<t t-out=\"event.date_tz\"/>)</span>\n                                    </small>\n                                </div>\n                                <div class=\"d-flex flex-column flex-md-row align-items-center justify-content-between gap-2\">\n                                    <div class=\"o_wevent_registration_multi_select flex-md-grow-1 text-end\"/>\n                                    <div class=\"ms-auto\">\n                                        <t t-set=\"seats_available_slot_ticket\" t-value=\"seats_available_slot_tickets and seats_available_slot_tickets.get(ticket.id, 0) or 0\"/>\n                                        <t t-set=\"seats_available_slot\" t-value=\"event_slot and event_slot.seats_available or 0\"/>\n                                        <t t-set=\"seats_max_slot_ticket\" t-value=\"((not event.seats_limited and not ticket.seats_limited) or seats_available_slot_ticket &gt; 9) and 10 or seats_available_slot_ticket + 1\"/>\n                                        <t t-set=\"seats_max_slot\" t-value=\"(not event.seats_limited or seats_available_slot &gt; 9) and 10 or seats_available_slot + 1\"/>\n                                        <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\"/>\n                                        <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\"/>\n                                        <t t-set=\"seats_max_event_or_slot\" t-value=\"seats_max_slot if event_slot else seats_max_event\"/>\n                                        <t t-set=\"seats_max\" t-value=\"seats_available_slot_tickets and seats_max_slot_ticket or min(seats_max_ticket, seats_max_event_or_slot)\"/>\n                                        <select t-if=\"(not ticket.is_expired and ticket.sale_available) or seats_available_slot_ticket\" t-attf-name=\"nb_register-#{ticket.id}\" class=\"w-auto form-select\">\n                                            <t t-foreach=\"range(0, seats_max)\" t-as=\"nb\">\n                                                <option t-out=\"nb\" t-att-selected=\"len(ticket) == 0 and nb == 0 and 'selected'\"/>\n                                            </t>\n                                        </select>\n                                        <div t-else=\"\" class=\"text-danger\">\n                                            <span t-if=\"not ticket.sale_available and not ticket.is_expired and ticket.is_launched\">Sold Out</span>\n                                            <span t-if=\"ticket.is_expired\">Expired</span>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"modal-footer flex-lg-row border-top\">\n                            <button type=\"button\" class=\"btn btn-light js_goto_event\" data-bs-dismiss=\"modal\">\n                                <t t-if=\"event.is_multi_slots\">Cancel</t>\n                                <t t-else=\"\">Close</t>\n                            </button>\n                            <button type=\"submit\" class=\"btn btn-primary a-submit\" disabled=\"\" t-attf-id=\"#{event.id}\">\n                                Register\n                                <t t-if=\"event.seats_limited and event.seats_max and event.seats_available &lt;= (event.seats_max * 0.2)\">\n                                    (only <t t-out=\"event.seats_available\"/> available)\n                                </t>\n                            </button>\n                        </div>\n                    </t>\n                    <div t-else=\"\" class=\"o_wevent_registration_single\">\n                        <div class=\"modal-body row px-3 py-2 mx-0\">\n                            <div class=\"col-12 col-md-8 p-0\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Offer\">\n                                <h5 itemprop=\"name\" class=\"my-0 pe-3 o_wevent_single_ticket_name\">\n                                    <span t-if=\"tickets\" t-field=\"tickets.name\"/>\n                                    <span t-else=\"\">Registration</span>\n                                </h5>\n                                <t t-if=\"tickets.description\">\n                                    <small t-field=\"tickets.description\" class=\"text-muted py-2\"/>\n                                    <br/>\n                                </t>\n                                <small t-if=\"tickets.end_sale_datetime and tickets.sale_available and not tickets.is_expired\" class=\"text-muted\" itemprop=\"availabilityEnds\">\n                                    Sales end on\n                                    <span itemprop=\"priceValidUntil\" t-out=\"tickets.end_sale_datetime\" t-options=\"{'widget': 'datetime', 'tz_name': event.date_tz, 'format': 'short'}\"/>\n                                    <span t-if=\"website_visitor_timezone != event.date_tz\">(<t t-out=\"event.date_tz\"/>)</span>\n                                </small>\n                            </div>\n                            <div class=\"col-md-4 d-flex align-items-center justify-content-between p-0\">\n                                <t t-if=\"event.event_registrations_open\">\n                                    <link itemprop=\"availability\" content=\"http://schema.org/InStock\"/>\n                                    <div class=\"o_wevent_registration_single_select w-auto ms-auto\">\n                                        <t t-set=\"seats_available_slot_ticket\" t-value=\"seats_available_slot_tickets and tickets and seats_available_slot_tickets.get(tickets.id, 0) or 0\"/>\n                                        <t t-set=\"seats_max_slot_ticket\" t-value=\"((not event.seats_limited and not tickets.seats_limited) or seats_available_slot_ticket &gt; 9) and 10 or seats_available_slot_ticket + 1\"/>\n                                        <t t-set=\"seats_available_slot\" t-value=\"event_slot and event_slot.seats_available or 0\"/>\n                                        <t t-set=\"seats_max_slot\" t-value=\"(not event.seats_limited or seats_available_slot &gt; 9) and 10 or seats_available_slot + 1\"/>\n                                        <t t-set=\"seats_max_ticket\" t-value=\"(not tickets or not tickets.seats_limited or tickets.seats_available &gt; 9) and 10 or tickets.seats_available + 1\"/>\n                                        <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\"/>\n                                        <t t-set=\"seats_max_event_or_slot\" t-value=\"seats_max_slot if event_slot else seats_max_event\"/>\n                                        <t t-set=\"seats_max\" t-value=\"(seats_available_slot_tickets and seats_max_slot_ticket or min(seats_max_ticket, seats_max_event_or_slot)) if tickets else seats_max_event_or_slot\"/>\n                                        <select t-att-name=\"'nb_register-%s' % (tickets.id if tickets else 0)\" class=\"d-inline w-auto form-select\">\n                                            <t t-foreach=\"range(0, seats_max)\" t-as=\"nb\">\n                                                <option t-out=\"nb\" t-att-selected=\"nb == 1 and 'selected'\"/>\n                                            </t>\n                                        </select>\n                                    </div>\n                                </t>\n                                <t t-else=\"\">\n                                    <span itemprop=\"availability\" content=\"http://schema.org/SoldOut\" class=\"text-danger\">\n                                        <i class=\"fa fa-ban me-2\"/>Sold Out\n                                    </span>\n                                </t>\n                            </div>\n                        </div>\n                        <div class=\"modal-footer flex-lg-row border-top\">\n                            <button type=\"button\" class=\"btn btn-light js_goto_event\" data-bs-dismiss=\"modal\">\n                                <t t-if=\"event.is_multi_slots\">Cancel</t>\n                                <t t-else=\"\">Close</t>\n                            </button>\n                            <button type=\"submit\" class=\"btn btn-primary a-submit\" t-attf-id=\"#{event.id}\" disabled=\"disabled\">\n                                Register\n                                <t t-if=\"event.seats_limited and event.seats_max and event.seats_available &lt;= (event.seats_max * 0.2)\">\n                                    (only <t t-out=\"event.seats_available\"/> available)\n                                </t>\n                            </button>\n                        </div>\n                    </div>\n                </div>\n            </form>\n            </div>\n        </div>\n    </div>\n</t>", "fr_FR": "<t name=\"Modal for tickets registration\" t-name=\"website_event.modal_ticket_registration\">\n    <!-- Modal -->\n    <div id=\"modal_ticket_registration\" t-attf-class=\"modal fade {{'o_wevent_modal_slot_ticket_registration' if event.is_multi_slots else ''}}\" data-bs-backdrop=\"static\" data-bs-keyboard=\"false\" tabindex=\"-1\" aria-labelledby=\"staticBackdropLabelTicket\" aria-hidden=\"true\">\n        <div class=\"modal-dialog\">\n            <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <div class=\"o_wevent_registration_title modal-title fs-5\" id=\"staticBackdropLabelTicket\">Tickets</div>\n                <div t-if=\"len(event.event_ticket_ids) &gt; 2\" class=\"o_wevent_price_range ms-2\"/>\n                <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Fermer\"/>\n            </div>\n\n            <form t-if=\"event.event_registrations_open and (not event.event_ticket_ids or any(not ticket.is_expired for ticket in event.event_ticket_ids))\" id=\"registration_form\" t-attf-action=\"/event/#{slug(event)}/registration/new\" method=\"post\" itemscope=\"itemscope\" itemprop=\"offers\" itemtype=\"http://schema.org/AggregateOffer\">\n                <input type=\"hidden\" name=\"csrf_token\" t-att-value=\"request.csrf_token()\"/>\n                <input t-if=\"event_slot\" type=\"hidden\" name=\"event_slot_id\" t-att-value=\"event_slot.id\"/>\n                <div id=\"o_wevent_tickets\" class=\"shadow-sm o_wevent_js_ticket_details\">\n                    <div t-if=\"registration_error_code == 'insufficient_seats'\" class=\"alert alert-danger\" role=\"alert\">\n                        <p class=\"mb-0\">\n                            Échec de l'inscription ! Ces tickets ne sont plus disponibles.\n                        </p>\n                    </div>\n                    <t t-set=\"tickets\" t-value=\"event.event_ticket_ids.filtered(lambda ticket: not ticket.is_expired)\"/>\n                    <!-- If some tickets expired and there is only one type left, we keep the same layout -->\n                    <t t-if=\"len(event.event_ticket_ids) &gt; 1\">\n                        <span t-if=\"not event.event_registrations_open\" class=\"text-danger\">\n                            <i class=\"fa fa-ban me-2\"/>Complet\n                        </span>\n                        <div id=\"o_wevent_tickets_collapse\" class=\"modal-body collapse show\">\n                            <div t-foreach=\"tickets\" t-as=\"ticket\" t-attf-class=\"d-flex justify-content-between o_wevent_ticket_selector mb-2 pb-2 {{not ticket_last and 'border-bottom' or ''}}\" t-att-name=\"ticket.name\">\n                                <div itemscope=\"itemscope\" itemtype=\"http://schema.org/Offer\">\n                                    <h5 itemprop=\"name\" t-field=\"ticket.name\" class=\"h6 my-0\"/>\n                                    <t t-if=\"ticket.description\">\n                                        <small t-field=\"ticket.description\" class=\"text-muted py-2\"/>\n                                        <br/>\n                                    </t>\n                                    <small t-if=\"ticket.end_sale_datetime and ticket.sale_available and not ticket.is_expired\" class=\"text-muted me-3\" itemprop=\"availabilityEnds\">Fin des ventes le\n                                        <span itemprop=\"priceValidUntil\" t-out=\"ticket.end_sale_datetime\" t-options=\"{'widget': 'datetime', 'tz_name': event.date_tz, 'format': 'short'}\"/>\n                                        <span t-if=\"website_visitor_timezone != event.date_tz\">(<t t-out=\"event.date_tz\"/>)</span>\n                                    </small>\n                                    <small t-if=\"ticket.start_sale_datetime and not ticket.sale_available and not ticket.is_expired\" class=\"text-muted me-3\" itemprop=\"availabilityEnds\">\n                                        Début des ventes le <span itemprop=\"priceValidUntil\" t-out=\"ticket.start_sale_datetime\" t-options=\"{'widget': 'datetime', 'tz_name': event.date_tz, 'format': 'short'}\"/>\n                                        <span t-if=\"website_visitor_timezone != event.date_tz\">(<t t-out=\"event.date_tz\"/>)</span>\n                                    </small>\n                                </div>\n                                <div class=\"d-flex flex-column flex-md-row align-items-center justify-content-between gap-2\">\n                                    <div class=\"o_wevent_registration_multi_select flex-md-grow-1 text-end\"/>\n                                    <div class=\"ms-auto\">\n                                        <t t-set=\"seats_available_slot_ticket\" t-value=\"seats_available_slot_tickets and seats_available_slot_tickets.get(ticket.id, 0) or 0\"/>\n                                        <t t-set=\"seats_available_slot\" t-value=\"event_slot and event_slot.seats_available or 0\"/>\n                                        <t t-set=\"seats_max_slot_ticket\" t-value=\"((not event.seats_limited and not ticket.seats_limited) or seats_available_slot_ticket &gt; 9) and 10 or seats_available_slot_ticket + 1\"/>\n                                        <t t-set=\"seats_max_slot\" t-value=\"(not event.seats_limited or seats_available_slot &gt; 9) and 10 or seats_available_slot + 1\"/>\n                                        <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\"/>\n                                        <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\"/>\n                                        <t t-set=\"seats_max_event_or_slot\" t-value=\"seats_max_slot if event_slot else seats_max_event\"/>\n                                        <t t-set=\"seats_max\" t-value=\"seats_available_slot_tickets and seats_max_slot_ticket or min(seats_max_ticket, seats_max_event_or_slot)\"/>\n                                        <select t-if=\"(not ticket.is_expired and ticket.sale_available) or seats_available_slot_ticket\" t-attf-name=\"nb_register-#{ticket.id}\" class=\"w-auto form-select\">\n                                            <t t-foreach=\"range(0, seats_max)\" t-as=\"nb\">\n                                                <option t-out=\"nb\" t-att-selected=\"len(ticket) == 0 and nb == 0 and 'selected'\"/>\n                                            </t>\n                                        </select>\n                                        <div t-else=\"\" class=\"text-danger\">\n                                            <span t-if=\"not ticket.sale_available and not ticket.is_expired and ticket.is_launched\">Complet</span>\n                                            <span t-if=\"ticket.is_expired\">Expiré</span>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"modal-footer flex-lg-row border-top\">\n                            <button type=\"button\" class=\"btn btn-light js_goto_event\" data-bs-dismiss=\"modal\">\n                                <t t-if=\"event.is_multi_slots\">Annuler</t>\n                                <t t-else=\"\">Fermer</t>\n                            </button>\n                            <button type=\"submit\" class=\"btn btn-primary a-submit\" disabled=\"\" t-attf-id=\"#{event.id}\">\n                                S'inscrire\n                                <t t-if=\"event.seats_limited and event.seats_max and event.seats_available &lt;= (event.seats_max * 0.2)\">\n                                    (uniquement <t t-out=\"event.seats_available\"/> disponible)\n                                </t>\n                            </button>\n                        </div>\n                    </t>\n                    <div t-else=\"\" class=\"o_wevent_registration_single\">\n                        <div class=\"modal-body row px-3 py-2 mx-0\">\n                            <div class=\"col-12 col-md-8 p-0\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Offer\">\n                                <h5 itemprop=\"name\" class=\"my-0 pe-3 o_wevent_single_ticket_name\">\n                                    <span t-if=\"tickets\" t-field=\"tickets.name\"/>\n                                    <span t-else=\"\">Inscription</span>\n                                </h5>\n                                <t t-if=\"tickets.description\">\n                                    <small t-field=\"tickets.description\" class=\"text-muted py-2\"/>\n                                    <br/>\n                                </t>\n                                <small t-if=\"tickets.end_sale_datetime and tickets.sale_available and not tickets.is_expired\" class=\"text-muted\" itemprop=\"availabilityEnds\">\n                                    Fin des ventes le\n                                    <span itemprop=\"priceValidUntil\" t-out=\"tickets.end_sale_datetime\" t-options=\"{'widget': 'datetime', 'tz_name': event.date_tz, 'format': 'short'}\"/>\n                                    <span t-if=\"website_visitor_timezone != event.date_tz\">(<t t-out=\"event.date_tz\"/>)</span>\n                                </small>\n                            </div>\n                            <div class=\"col-md-4 d-flex align-items-center justify-content-between p-0\">\n                                <t t-if=\"event.event_registrations_open\">\n                                    <link itemprop=\"availability\" content=\"http://schema.org/InStock\"/>\n                                    <div class=\"o_wevent_registration_single_select w-auto ms-auto\">\n                                        <t t-set=\"seats_available_slot_ticket\" t-value=\"seats_available_slot_tickets and tickets and seats_available_slot_tickets.get(tickets.id, 0) or 0\"/>\n                                        <t t-set=\"seats_max_slot_ticket\" t-value=\"((not event.seats_limited and not tickets.seats_limited) or seats_available_slot_ticket &gt; 9) and 10 or seats_available_slot_ticket + 1\"/>\n                                        <t t-set=\"seats_available_slot\" t-value=\"event_slot and event_slot.seats_available or 0\"/>\n                                        <t t-set=\"seats_max_slot\" t-value=\"(not event.seats_limited or seats_available_slot &gt; 9) and 10 or seats_available_slot + 1\"/>\n                                        <t t-set=\"seats_max_ticket\" t-value=\"(not tickets or not tickets.seats_limited or tickets.seats_available &gt; 9) and 10 or tickets.seats_available + 1\"/>\n                                        <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\"/>\n                                        <t t-set=\"seats_max_event_or_slot\" t-value=\"seats_max_slot if event_slot else seats_max_event\"/>\n                                        <t t-set=\"seats_max\" t-value=\"(seats_available_slot_tickets and seats_max_slot_ticket or min(seats_max_ticket, seats_max_event_or_slot)) if tickets else seats_max_event_or_slot\"/>\n                                        <select t-att-name=\"'nb_register-%s' % (tickets.id if tickets else 0)\" class=\"d-inline w-auto form-select\">\n                                            <t t-foreach=\"range(0, seats_max)\" t-as=\"nb\">\n                                                <option t-out=\"nb\" t-att-selected=\"nb == 1 and 'selected'\"/>\n                                            </t>\n                                        </select>\n                                    </div>\n                                </t>\n                                <t t-else=\"\">\n                                    <span itemprop=\"availability\" content=\"http://schema.org/SoldOut\" class=\"text-danger\">\n                                        <i class=\"fa fa-ban me-2\"/>Épuisé\n                                    </span>\n                                </t>\n                            </div>\n                        </div>\n                        <div class=\"modal-footer flex-lg-row border-top\">\n                            <button type=\"button\" class=\"btn btn-light js_goto_event\" data-bs-dismiss=\"modal\">\n                                <t t-if=\"event.is_multi_slots\">Annuler</t>\n                                <t t-else=\"\">Fermer</t>\n                            </button>\n                            <button type=\"submit\" class=\"btn btn-primary a-submit\" t-attf-id=\"#{event.id}\" disabled=\"disabled\">\n                                S'inscrire\n                                <t t-if=\"event.seats_limited and event.seats_max and event.seats_available &lt;= (event.seats_max * 0.2)\">\n                                    (uniquement <t t-out=\"event.seats_available\"/> disponible)\n                                </t>\n                            </button>\n                        </div>\n                    </div>\n                </div>\n            </form>\n            </div>\n        </div>\n    </div>\n</t>"}