Browse Source

corrections

dev-rcn
root 3 years ago
parent
commit
9d8a3f36ed
4 changed files with 29 additions and 19 deletions
  1. +3
    -2
      controllers/kalachakra.py
  2. +9
    -0
      static/src/css/kalachakra.css
  3. +1
    -1
      views/event_templates_page.xml
  4. +16
    -16
      views/event_templates_page_registration.xml

+ 3
- 2
controllers/kalachakra.py View File

@ -381,8 +381,9 @@ class kalachakra_event(WebsiteEventController,PaymentProcessing):
res=request.env['event.registration'].sudo().create(vals)
#création de la facture à régler
membership=False
invoice_id=request.env['event.registration'].sudo().action_generate_participation_invoice(int(res.id),'CB',membership)
if not event.free_participation:
membership=False
invoice_id=request.env['event.registration'].sudo().action_generate_participation_invoice(int(res.id),'CB',membership)
request.session['res_id']=res.id


+ 9
- 0
static/src/css/kalachakra.css View File

@ -3,3 +3,12 @@
top: 0 ;
}
.kala_evt1{
font-size:18px;
}
.o_wevent_sidebar_block_kala {
padding: 25px 10px 10px 10px;
}

+ 1
- 1
views/event_templates_page.xml View File

@ -13,7 +13,7 @@
<div class="container align-items-baseline justify-content-start">
<a href="/event" class="navbar-brand h4 my-0 mr-0 mr-md-4">
<i class="fa fa-long-arrow-left text-primary mr-2"/>
<span class="h6">Toutes les activités</span>
<span class="kala_evt1">Toutes les activités</span>
</a>
</div>


+ 16
- 16
views/event_templates_page_registration.xml View File

@ -71,26 +71,26 @@
</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 &amp; Time</h6>
<div class="o_wevent_sidebar_block_kala">
<h6 class="o_wevent_sidebar_title kala_evt1">Date &amp; 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"/>
<span t-field="event.with_context(tz=event.date_tz).date_begin" class="my-1 mr-1 kala_evt1" t-options="{'date_only': 'true', 'format': 'EEEE'}"/>
<span class="my-1 kala_evt1" 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="not event.is_one_day"><span class="kala_evt1">Start -</span></t>
<span class="kala_evt1" 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'}"/>
<span class="kala_evt1" 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'}"/>
<span t-field="event.with_context(tz=event.date_tz).date_end" class="my-1 mr-1 kala_evt1" t-options="{'date_only': 'true', 'format': 'EEEE'}"/>
<span class="my-1 kala_evt1" 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 t-if="not event.is_one_day"><span class="kala_evt1">End -</span></t>
<span class="kala_evt1" t-field="event.with_context(tz=event.date_tz).date_end" t-options="{'time_only': 'true', 'format': 'short'}"/>
</t>
@ -105,18 +105,18 @@
</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='{
<div t-if="event.address_id" class="o_wevent_sidebar_block_kala">
<span class="o_wevent_sidebar_title kala_evt1">Location</span>
<span t-field="event.address_id" class="kala_evt1" t-options='{
"widget": "contact",
"fields": ["name"]
}'/>
<div itemprop="location" class="mb-2" t-field="event.address_id" t-options='{
<div itemprop="location" class="mb-2 kala_evt1" 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='{
<div class="mb-3 kala_evt1" t-field="event.address_id" t-options='{
"widget": "contact",
"fields": ["phone", "mobile", "email"]
}'/>


Loading…
Cancel
Save