summaryrefslogtreecommitdiff
path: root/addons/iap/static/src/xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/iap/static/src/xml')
-rw-r--r--addons/iap/static/src/xml/iap_templates.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/addons/iap/static/src/xml/iap_templates.xml b/addons/iap/static/src/xml/iap_templates.xml
new file mode 100644
index 00000000..f35496d8
--- /dev/null
+++ b/addons/iap/static/src/xml/iap_templates.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<template id="template" xml:space="preserve">
+
+ <!-- LAYOUT TEMPLATES -->
+ <div t-name="iap.redirect_to_odoo_credit">
+ <t t-if="data.body">
+ <div t-raw="data.body"/>
+ </t>
+ <t t-if="!data.body">
+ <t t-if="data.message">
+ <span t-esc="data.message"/>
+ </t>
+ <t t-if="!data.message">
+ <span>Insufficient credit to perform this service.</span>
+ </t>
+ </t>
+ </div>
+
+ <t t-extend="DashboardMain">
+ <t t-jquery=".o_web_settings_apps" t-operation="after">
+ <div class="o_web_settings_iap"></div>
+ </t>
+ </t>
+
+ <div t-name="iap.buy_more_credits" class="mt-2 row">
+ <div class="col-sm">
+ <button class="btn btn-link buy_credits o-hidden-ios"><i class="fa fa-arrow-right"/> Buy credits</button>
+ </div>
+ </div>
+</template>