Browse Source

retraite individuelle

dev-rcn
root 3 years ago
parent
commit
bec212c1fc
6 changed files with 29 additions and 6 deletions
  1. +7
    -0
      controllers/booking.py
  2. +1
    -0
      models/event.py
  3. +3
    -1
      views/booking_event.xml
  4. +6
    -4
      views/booking_website_registration.xml
  5. +1
    -1
      views/event.xml
  6. +11
    -0
      views/event_templates_list.xml

+ 7
- 0
controllers/booking.py View File

@ -411,4 +411,11 @@ class booking(WebsiteEventController,AuthSignupHome):
def booking_payment_confirmation(self, **post):
return request.render("kalachakra.booking_thankyou")
@http.route(['/booking/registration/individual_booking'], type='http', auth="public", website=True, sitemap=False)
def booking_registration_individual_booking(self):
individual_booking=request.env['event.event'].sudo().search([('name','=','Retraite individuelle')])
if individual_booking:
return request.redirect('/booking/registration/options?event_id='+str(int(individual_booking.id)))

+ 1
- 0
models/event.py View File

@ -300,6 +300,7 @@ class KalachakraEvent(models.Model):
individual_member_month_price=fields.Monetary('1 month price',currency_field='currency_id')
individual_super_member_month_price=fields.Monetary('1 month price',currency_field='currency_id')
individual_booking_html_introduction=fields.Html('Introduction text')
@api.onchange('booking_event')


+ 3
- 1
views/booking_event.xml View File

@ -162,7 +162,9 @@
<field name="individual_super_member_month_price" attrs="{'required': [('individual_booking_event','=', True)]}"/>
</group>
<group>
<field string="Introduction text" widget="html" name="individual_booking_html_introduction"/>
</group>
</page>
</xpath>
<xpath expr="//page[@name='tickets']" position="replace">


+ 6
- 4
views/booking_website_registration.xml View File

@ -55,10 +55,12 @@
<input type="hidden" name="nb_o" value="0"/>
</t>
<t t-if="event.individual_booking_event">
<h6>
Ce formulaire est réservé aux personnes dont le projet et les dates de retraite individuelle ont déjà été validés par la direction du centre. Pour soumettre votre demande (projet + dates souhaitées),
nous vous invitons à nous contacter par e-mail : <a href="mailto: info@centre-kalachakra.net">info@centre-kalachakra.net</a>
</h6>
<div>
<t t-raw="event.individual_booking_html_introduction"/>
</div>
<h6>Participations amounts : </h6>
<table class="table" style="width:50%">
<tr><td></td><td>Not member</td><td>Member</td><td>Super member</td></tr>


+ 1
- 1
views/event.xml View File

@ -178,7 +178,7 @@
<page string="Media records" name="Media records">
<group style="width:100%%">
<field name="teaching_html_content_records_published"/>
<field name="teaching_html_content_records"/>
<field name="teaching_html_content_records" type="html" options="{'collaborative': true}"/>
<field name="display_english_records"/>
<!-- <field name="only_audio_records"/>
<field name="only_video_records"/> -->


+ 11
- 0
views/event_templates_list.xml View File

@ -46,6 +46,7 @@
</template>
<template id="event_time" inherit_id="website_event.index_topbar">
<xpath expr="//a[@class='btn dropdown-toggle']" position="replace">
<a href="#" role="button" class="btn dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-calendar"/>
@ -98,10 +99,20 @@
</t>
</div>
</li>
</xpath>
</template>
<template id="indivividual_booking_link" inherit_id="website_event.index_topbar" active="True" customize_show="True" name="Filter by Tags">
<xpath expr="//div[@class='container']" position="inside">
<u><a style="color:green;" href="/booking/registration/individual_booking">Cliquez sur ce lien pour vous inscrire à une retraite individuelle</a></u>
</xpath>
</template>
<template id="kalachakra.searched_tags" inherit_id="website_event.searched_tags" active="True" customize_show="True" name="Searched tags">
<xpath expr="//t[@t-esc='tag.display_name']" position="replace">
<t t-esc="tag.name"/>


Loading…
Cancel
Save