|
|
@ -4,19 +4,19 @@ |
|
|
|
<xpath expr="//div[@class='col-lg-4 pt-3 pt-lg-0 pl-2 pl-lg-0']" position="replace"> |
|
|
|
<t t-if="event.booking_event"> |
|
|
|
<div class="col-lg-4 pt-3 pt-lg-0 pl-2 pl-lg-0"> |
|
|
|
<a t-attf-id="#{event.id}" t-attf-href="/booking/registration/options?event_id={{event.id}}" class="btn btn-primary btn-block" data-original-title="" title="" aria-describedby="tooltip34075">Register</a> |
|
|
|
<a t-attf-id="#{event.id}" t-attf-href="/booking/registration/options?event_id={{event.id}}" class="btn btn-secondary btn-block" data-original-title="" title="" aria-describedby="tooltip34075">Register</a> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
<t t-if="not event.booking_event"> |
|
|
|
<div class="col-lg-4 pt-3 pt-lg-0 pl-2 pl-lg-0"> |
|
|
|
<t t-if="event.online_event and not event.online_only"> |
|
|
|
<a t-attf-id="#{event.id}" t-attf-href="/event/registration/step1?event_id={{event.id}}" class="btn btn-primary btn-block" data-original-title="" title="" aria-describedby="tooltip34075">Register</a> |
|
|
|
<a t-attf-id="#{event.id}" t-attf-href="/event/registration/step1?event_id={{event.id}}" class="btn btn-secondary btn-block" data-original-title="" title="" aria-describedby="tooltip34075">Register</a> |
|
|
|
</t> |
|
|
|
<t t-if="event.online_only"> |
|
|
|
<a t-attf-id="#{event.id}" t-attf-href="/event/registration/step2?event_id={{event.id}}" class="btn btn-primary btn-block" data-original-title="" title="" aria-describedby="tooltip34075">Register</a> |
|
|
|
<a t-attf-id="#{event.id}" t-attf-href="/event/registration/step2?event_id={{event.id}}" class="btn btn-secondary btn-block" data-original-title="" title="" aria-describedby="tooltip34075">Register</a> |
|
|
|
</t> |
|
|
|
<t t-if="not event.online_event"> |
|
|
|
<a t-attf-id="#{event.id}" t-attf-href="/event/registration/step2?event_id={{event.id}}" class="btn btn-primary btn-block" data-original-title="" title="" aria-describedby="tooltip34075">Register</a> |
|
|
|
<t t-if="not event.online_event and not event.online_only"> |
|
|
|
<a t-attf-id="#{event.id}" t-attf-href="/event/registration/step2?event_id={{event.id}}" class="btn btn-secondary btn-block" data-original-title="" title="" aria-describedby="tooltip34075">Register</a> |
|
|
|
</t> |
|
|
|
</div> |
|
|
|
<t t-if="event.seats_limited and event.seats_max and event.seats_available <= (event.seats_max * 0.2)"> |
|
|
@ -25,6 +25,9 @@ |
|
|
|
</t> |
|
|
|
|
|
|
|
|
|
|
|
</xpath> |
|
|
|
<xpath expr="//h6[@class='my-0 pr-3 border-right text-dark']" position="replace"> |
|
|
|
|
|
|
|
</xpath> |
|
|
|
<!-- on bloque la qte à 1 --> |
|
|
|
<xpath expr="//select[@class='w-auto custom-select']" position="replace"> |
|
|
@ -62,7 +65,66 @@ |
|
|
|
|
|
|
|
</t> |
|
|
|
</xpath> |
|
|
|
<xpath expr="//div[4][@class='o_wevent_sidebar_block']" position="replace"> |
|
|
|
<xpath expr="//div[3][@class='o_wevent_sidebar_block']" position="replace"> |
|
|
|
</xpath> |
|
|
|
<xpath expr="//div[3][@class='o_wevent_sidebar_block']" position="replace"> |
|
|
|
</xpath> |
|
|
|
|
|
|
|
<xpath expr="//div[1][@class='o_wevent_sidebar_block']" position="replace"> |
|
|
|
<div class="o_wevent_sidebar_block"> |
|
|
|
<h6 class="o_wevent_sidebar_title">Date & Time</h6> |
|
|
|
<div class="d-flex"> |
|
|
|
<h5 t-field="event.with_context(tz=event.date_tz).date_begin" class="my-1 mr-1" t-options="{'date_only': 'true', 'format': 'EEEE'}"/> |
|
|
|
<h5 class="my-1" t-field="event.with_context(tz=event.date_tz).date_begin" t-options="{'date_only': 'true', 'format': 'long'}" itemprop="startDate" t-att-datetime="event.date_begin"/> |
|
|
|
</div> |
|
|
|
<t t-if="not event.is_one_day">Start -</t> |
|
|
|
<span t-field="event.with_context(tz=event.date_tz).date_begin" t-options="{'time_only': 'true', 'format': 'short'}"/> |
|
|
|
<t t-if="event.is_one_day"> |
|
|
|
<i class="fa fa-long-arrow-right mx-1"/> |
|
|
|
<span t-field="event.with_context(tz=event.date_tz).date_end" t-options="{'time_only': 'true', 'format': 'short'}"/> |
|
|
|
</t> |
|
|
|
<t t-else=""> |
|
|
|
<i class="fa fa-long-arrow-down d-block text-muted mx-3 my-2" style="font-size: 1.5rem"/> |
|
|
|
<div class="d-flex"> |
|
|
|
<h5 t-field="event.with_context(tz=event.date_tz).date_end" class="my-1 mr-1" t-options="{'date_only': 'true', 'format': 'EEEE'}"/> |
|
|
|
<h5 class="my-1" t-field="event.with_context(tz=event.date_tz).date_end" t-options="{'date_only': 'true', 'format': 'long'}"/> |
|
|
|
</div> |
|
|
|
<t t-if="not event.is_one_day">End -</t> |
|
|
|
<span t-field="event.with_context(tz=event.date_tz).date_end" t-options="{'time_only': 'true', 'format': 'short'}"/> |
|
|
|
</t> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <div class="dropdown"> |
|
|
|
<i class="fa fa-calendar mr-1"/> |
|
|
|
<a href="#" role="button" data-toggle="dropdown">Add to Calendar</a> |
|
|
|
<div class="dropdown-menu"> |
|
|
|
<a t-att-href="iCal_url" class="dropdown-item">iCal/Outlook</a> |
|
|
|
<a t-att-href="google_url" class="dropdown-item" target="_blank">Google</a> |
|
|
|
</div> |
|
|
|
</div>--> |
|
|
|
</div> |
|
|
|
</xpath> |
|
|
|
<xpath expr="//div[2][@class='o_wevent_sidebar_block']" position="replace"> |
|
|
|
<div t-if="event.address_id" class="o_wevent_sidebar_block"> |
|
|
|
<h6 class="o_wevent_sidebar_title">Location</h6> |
|
|
|
<h4 t-field="event.address_id" class="" t-options='{ |
|
|
|
"widget": "contact", |
|
|
|
"fields": ["name"] |
|
|
|
}'/> |
|
|
|
<div itemprop="location" class="mb-2" t-field="event.address_id" t-options='{ |
|
|
|
"widget": "contact", |
|
|
|
"fields": ["address"], |
|
|
|
"no_marker": True |
|
|
|
}'/> |
|
|
|
<div class="mb-3" t-field="event.address_id" t-options='{ |
|
|
|
"widget": "contact", |
|
|
|
"fields": ["phone", "mobile", "email"] |
|
|
|
}'/> |
|
|
|
<!-- <i class="fa fa-map-marker fa-fw" role="img"/> |
|
|
|
<a t-att-href="event._google_map_link()" target="_blank">Get the direction</a> --> |
|
|
|
</div> |
|
|
|
|
|
|
|
</xpath> |
|
|
|
|
|
|
|
</template> |
|
|
|
</odoo> |