Files
odoo_source/addons/payment_test/views/payment_test_templates.xml
T
Romeo Fragomeli 1fcd098af5 [REF] *: BS5: migration
Automated change made by a lot of RegEx to change all think that is
possible to automate.

https://getbootstrap.com/docs/5.1/migration

Task ID: 2766483

Part-of: odoo/odoo#95450
2022-07-07 13:30:24 +02:00

64 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="inline_form">
<div t-attf-id="test-container-{{acquirer_id}}">
<div class="row">
<div class="form-group">
<input name="acquirer_id" type="hidden" id="acquirer_id" t-att-value="id"/>
<input name="partner_id" type="hidden" t-att-value="partner_id"/>
</div>
<div class="form-group col mt-0 mb-0">
<label for="customer_input" class="mt-0">
<small><b>Payment Details (test data)</b></small>
</label>
<input type="text"
name="customer_input"
id="customer_input"
class="form-control"
placeholder="XXXX XXXX XXXX XXXX"/>
</div>
<div class="form-group col mb-0">
<label for="simulated_payment_state" class="mt-0">
<small><b>Payment Status</b></small>
</label>
<select id="simulated_payment_state" class="form-select">
<option value="done" title="Successful payment">
Successful
</option>
<option value="pending" title="Payment processing">
Pending
</option>
<option value="cancel" title="Payment canceled by customer">
Canceled
</option>
<option value="error" title="Processing error">
Error
</option>
</select>
</div>
</div>
</div>
</template>
<template id="token_inline_form">
<div t-attf-id="test-token-container-{{token.id}}">
<div class="alert alert-warning m-2">
<span t-if="token.test_simulated_state=='pending'">
Payments made with this payment method will remain <b>pending</b>.
</span>
<span t-elif="token.test_simulated_state=='done'">
Payments made with this payment method will be <b>successful</b>.
</span>
<span t-elif="token.test_simulated_state=='cancel'">
Payments made with this payment method will be automatically <b>canceled</b>.
</span>
<span t-else="">
Payments made with this payment method will simulate a processing <b>error</b>.
</span>
</div>
</div>
</template>
</odoo>