root 2 years ago
parent
commit
a44a4e66ce
3 changed files with 20 additions and 0 deletions
  1. +7
    -0
      static/js/booking.js
  2. +1
    -0
      views/booking_website_registration.xml
  3. +12
    -0
      views/event_templates_list.xml

+ 7
- 0
static/js/booking.js View File

@ -337,6 +337,13 @@ odoo.define('booking.main', function (require) {
$('#validation_message').show()
}
else if ($('#gender').val()=='')
{
$('#validation_message').text('merci de sélectionner le sexe du participant')
$('#validation_message').show()
}
else
{


+ 1
- 0
views/booking_website_registration.xml View File

@ -272,6 +272,7 @@
</label>
<div class="col-12 col-sm-12 col-md-4 col-lg-2 col-xl-2">
<select id="gender" name="gender" class="form-control s_website_form_input">
<option label=" "></option>
<option name="male" value="male" label="Homme"></option>
<option name="femelle" value="femelle" label="Femme"></option>


+ 12
- 0
views/event_templates_list.xml View File

@ -133,6 +133,18 @@
</div>
</t>
</xpath>
<xpath expr="//main" position="attributes">
<attribute name="t-att-style">'background-color:white!important' if not event.booking_event else 'background-color:#f9ee75 ! important'</attribute>
</xpath>
<xpath expr="//article" position="attributes">
<attribute name="t-att-style">'background-color:white!important' if not event.booking_event else 'background-color:#f9ee75 !important'</attribute>
</xpath>
<xpath expr="//h5[1]" position="replace">
<h5 t-attf-class="card-title mt-2 mb-0 #{(not event.website_published) and 'text-danger'}">
<span t-field="event.name" itemprop="name"/>


Loading…
Cancel
Save