87 lines
4.3 KiB
XML
87 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<template id="header_footer_custom_payment" inherit_id="website.footer_default" customize_show="True" active="False" name="Payment Methods">
|
|
<xpath expr="//div[@id='info']" position="inside">
|
|
<h4 class="payment_method_title">Payment Method</h4>
|
|
<ul class="payment_method_list list-inline">
|
|
<t t-foreach="request.website.payment_acquirers()" t-as="acquirer">
|
|
<li><img class="img-rounded" t-att-src="'/payment_%s/static/src/img/%s_icon.png' % (acquirer.provider, acquirer.provider)"/></li>
|
|
</t>
|
|
</ul>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="assets_frontend" inherit_id="website.assets_frontend" name="Payment Frontend assets">
|
|
<xpath expr="." position="inside">
|
|
|
|
<link rel='stylesheet' href='/website_payment/static/src/css/website_payment.css'/>
|
|
<script type="text/javascript" src="/website_payment/static/src/js/payment_acquirer.js"></script>
|
|
<script type="text/javascript" src="/website_payment/static/lib/jquery.payment/jquery.payment.js"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="pay_methods" name="Payment Methods">
|
|
<t t-call="website.layout">
|
|
<t t-set="additional_title">Payment Methods</t>
|
|
<div id="wrap">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<ol class="breadcrumb mt8">
|
|
<li><a href="/my/home">My Account</a></li>
|
|
<li>Payment Methods</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
<h1>Payment Methods</h1>
|
|
<h4>Add a new payment method:</h4>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div t-if="error_message" class="alert alert-danger">
|
|
<t t-foreach="error_message" t-as="err"><t t-esc="err"/><br /></t>
|
|
</div>
|
|
<div t-if='len(acquirers)>1'>
|
|
<label class="control-label" for="pm_acquirer_id">Acquirer</label>
|
|
<select name="pm_acquirer_id" class="form-control">
|
|
<t t-foreach="acquirers" t-as="acquirer">
|
|
<option t-att-value="acquirer.id" t-esc="acquirer.name"/>
|
|
</t>
|
|
</select>
|
|
</div>
|
|
<t t-foreach="acquirers" t-as="acquirer">
|
|
<div t-raw="acquirer.form" t-att-data-acquirer-id="acquirer.id" t-attf-class="acquirer #{'hidden' if acquirer!=acquirers[0] else ''}"/>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<h4>Delete a payment method:</h4>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<form method="post" action="/website_payment/delete/">
|
|
<div class="form-group">
|
|
<select name="delete_pm_id" class="form-control" >
|
|
<t t-foreach="pms" t-as="pm">
|
|
<option t-att-value="pm.id" t-esc="pm.name"/>
|
|
</t>
|
|
</select>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<button class="btn btn-primary">Delete <span class="fa fa-long-arrow-right"></span></button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="pay_meth_link" inherit_id="website_portal.account">
|
|
<xpath expr="//div[@id='details']" position="inside">
|
|
<a href="/my/payment_method">Manage your payment methods</a>
|
|
</xpath>
|
|
</template>
|
|
|
|
</data>
|
|
</openerp>
|