summaryrefslogtreecommitdiff
path: root/addons/website_form/static/src/xml
diff options
context:
space:
mode:
authorDavid Monjoie <dmo@odoo.com>2015-08-25 21:50:31 +0200
committerDavid Monjoie <dmo@odoo.com>2015-08-26 16:01:19 +0200
commita77f5cf42faa75a2dd3931d83ad8ea86648248c0 (patch)
tree29590b9351bf73ac573928be7f0dbaa5ea8505a8 /addons/website_form/static/src/xml
parent57c4787d09eacc548140d7a552a76264eae21a55 (diff)
[ADD] website_form: generic form controller
Contains a new ajax post function that comes from mdo's original code and that I was not able to get rid of.
Diffstat (limited to 'addons/website_form/static/src/xml')
-rw-r--r--addons/website_form/static/src/xml/website_form.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/addons/website_form/static/src/xml/website_form.xml b/addons/website_form/static/src/xml/website_form.xml
new file mode 100644
index 00000000000..3a1102bb5e1
--- /dev/null
+++ b/addons/website_form/static/src/xml/website_form.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates xml:space="preserve">
+
+ <!-- Success status -->
+ <t t-name="website_form.status_success">
+ <span id="o_website_form_result" class="text-success ml8">
+ <i class="fa fa-check mr4"/>The form has been sent successfully.
+ </span>
+ </t>
+
+ <!-- Missing field status -->
+ <t t-name="website_form.status_invalid">
+ <span id="o_website_form_result" class="text-danger ml8">
+ <i class="fa fa-close mr4"/>Please fill in the form correctly.
+ </span>
+ </t>
+
+ <!-- Error status -->
+ <t t-name="website_form.status_error">
+ <span id="o_website_form_result" class="text-danger ml8">
+ <i class="fa fa-close mr4"/>An error has occured, the form has not been sent.
+ </span>
+ </t>
+
+</templates>