<odoo>
|
|
|
|
<template id="kalachakra.makedonation_form" name="make donation form">
|
|
|
|
<t t-call="website.layout">
|
|
|
|
<div class="container-fluid">
|
|
<form action="payment_choice" method="post" class="form js_website_submit_form">
|
|
<h3 class="o_page_header mt16 mb4">Make donation</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 type="email" name="email" readonly="0" class="form-control " t-att-value="partner.email"/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<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>
|
|
<div id="div_amount" class="form-group col-lg-4">
|
|
<label class="col-form-label font-weight-bold" for="amount">Amount (€)
|
|
|
|
</label>
|
|
<input type="text" id="amount_id" name="amount" class="form-control " value=""/>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-lg-5" id="div_donation_product">
|
|
<label class="col-form-label font-weight-bold" for="donation_product_id">Affectation<span class="s_website_form_mark"> *</span>
|
|
</label>
|
|
<select id="donation_product_id" name="donation_product_id" class="o_wpayment_fee_impact form-control ">
|
|
<t t-foreach="donation_products" t-as="donation_product">
|
|
|
|
<option t-att-value="donation_product.id" t-esc="donation_product.name"></option>
|
|
|
|
|
|
</t>
|
|
|
|
</select>
|
|
</div>
|
|
|
|
|
|
|
|
<button name="o_payment_submit_button" type="submit" 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">Donate now</t>
|
|
<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>
|
|
|
|
|
|
|
|
</odoo>
|