gestion des demandes d'évolution pour le centre kalachakra non géré dans les module booking et opendons
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

182 lines
8.5 KiB

<odoo>
<template id="assets_frontend" name="booking assets" inherit_id="web.assets_frontend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/kalachakra/static/js/kalachakra.js"></script>
</xpath>
</template>
<template id="kalachakra.participation_form" name="make donation form">
<t t-call="website.layout">
<div class="container-fluid">
<form id="form" action="payment_choice" method="post" class="form js_website_submit_form">
<h3 t-esc="title" class="o_page_header mt16 mb4"></h3>
<div id="div_email" class="form-group col-lg-4">
<label class="col-form-label font-weight-bold" for="email">Email
<span class="s_website_form_mark"> *</span>
</label>
<input id="email" type="email" name="email" t-att-readonly="registred" class="form-control " t-att-value="partner.email"/>
</div>
<t t-if="not registred">
<div class="w-100"></div>
<div class="form-group col-lg-2" id="div_title">
<label class="col-form-label font-weight-bold" for="title_id">Title<span class="s_website_form_mark"> *</span>
</label>
<select id="title_id" name="title_id" class="o_wpayment_fee_impact form-control ">
<t t-foreach="titles" t-as="title">
<option t-att-selected="'selected' if int(title.id)==int(partner.title) else None" t-att-value="title.id" t-esc="title.name"></option>
</t>
</select>
</div>
<div id="div_firstname" class="form-group col-lg-4">
<label class="col-form-label font-weight-bold" for="email">Firstname
<span class="s_website_form_mark"> *</span>
</label>
<input type="text" id="firstname_id" name="firstname" class="form-control " t-att-value="partner.name"/>
</div>
<div id="div_name" class="form-group col-lg-4">
<label class="col-form-label font-weight-bold" for="email">Name
<span class="s_website_form_mark"> *</span>
</label>
<input type="text" id="name_id" name="name" class="form-control " t-att-value="partner.firstname"/>
</div>
<div id="div_street" class="form-group col-lg-4">
<label class="col-form-label font-weight-bold" for="email">Street 1
<span class="s_website_form_mark"> *</span>
</label>
<input type="text" id="street_id" name="street" class="form-control " t-att-value="partner.street"/>
</div>
<div id="div_street1" class="form-group col-lg-4">
<label class="col-form-label font-weight-bold" for="email">Street 2
</label>
<input type="text" id="street1_id" name="street1" class="form-control " t-att-value="partner.street2"/>
</div>
<div id="div_zip" class="form-group col-lg-2">
<label class="col-form-label font-weight-bold" for="zip">Zip
</label>
<input type="text" id="zip_id" name="zip" class="form-control " t-att-value="partner.zip"/>
</div>
<div class="form-group col-lg-2" id="div_country">
<label class="col-form-label font-weight-bold" for="country_id">Country<span class="s_website_form_mark"> *</span>
</label>
<select id="country_id" name="country_id" class="o_wpayment_fee_impact form-control ">
<t t-foreach="countries" t-as="country">
<option t-att-selected="'selected' if int(country.id)==int(partner.country_id) else None" t-att-value="country.id" t-esc="country.name"></option>
</t>
</select>
</div>
<div id="div_phone" class="form-group col-lg-4">
<label class="col-form-label font-weight-bold" for="phone">Phone
</label>
<input type="text" id="phone_id" name="phone" class="form-control " t-att-value="phone"/>
</div>
</t>
<div id="div_amount" class="form-group col-lg-1">
<label class="col-form-label font-weight-bold" for="amount">Amount (€)
</label>
<t t-if="kalachakra_transaction=='donation'">
<input type="number" id="amount_id" name="amount" class="form-control " t-att-value="amount"/>
</t>
<t t-if="kalachakra_transaction=='membership'">
<input type="number" id="amount_id" name="amount" readonly="readonly" class="form-control " t-att-value="amount"/>
</t>
</div>
<div class="form-group col-lg-3" id="div_product">
<label class="col-form-label font-weight-bold" for="product_id">Affectation<span class="s_website_form_mark"> *</span>
</label>
<select id="product_id" name="product_id" class="o_wpayment_fee_impact form-control ">
<t t-foreach="products" t-as="product">
<option t-att-value="product.id" t-esc="product.name"></option>
</t>
</select>
</div>
<button id="btn_payment_choice" name="o_payment_submit_button" type="button" class="btn btn-primary btn-lg mb8 mt8" data-icon-class="fa-gift">
Payment choice
</button>
</form>
</div>
</t>
</template>
<template id="kalachakra.payment_choice_form" name="payment choice form">
<t t-call="website.layout">
<div class="container-fluid">
<div id="payment_method" class="mt-3 col-lg-6">
<h4 class="mb24">Pay with </h4>
<t t-call="payment.payment_tokens_list">
<t t-set="mode" t-value="'payment'"/>
<t t-set="submit_txt" t-value="submit_txt"/>
<t t-set="icon_right" t-value="1"/>
<t t-set="icon_class" t-value="'fa-chevron-right'"/>
<t t-set="submit_class" t-value="'btn btn-primary fa fa-gift'"/>
<t t-set="pms" t-value="tokens"/>
<t t-set="acquirers" t-value="acquirers"/>
<t t-set="order_id" t-value="order_id"/>
<t t-set="form_action" t-value="'/kalachakra/payment/token'"/>
<t t-set="prepare_tx_url" t-value="'/kalachakra/payment/transaction/'"/>
<t t-set="partner_id" t-value="partner"/>
<t t-set="back_button_icon_class" t-value="'fa-chevron-left'"/>
<t t-set="back_button_class" t-value="'btn btn-secondary'"/>
<t t-set="back_button_link" t-value="'/shop/cart'"/>
</t>
</div>
</div>
</t>
</template>
<template id="kalachakra.thankyou" name="make donation form">
<t t-call="website.layout">
<div class="container-fluid">
<h2>Thank you for your generosity !</h2>
<a href="/" class="ml-4 btn btn-secondary">back Home</a>
</div>
</t>
</template>
</odoo>