summaryrefslogtreecommitdiff
path: root/addons/website_form/views
diff options
context:
space:
mode:
authorfja-odoo <fja@odoo.com>2020-02-06 12:42:52 +0000
committerqsm-odoo <qsm@odoo.com>2020-02-07 18:34:34 +0000
commit67d9eafd2eede6895e5bc8af6314cdc521ef4f6d (patch)
tree92ba200a7c46db46423a4df07526385e8aab6c8a /addons/website_form/views
parentfaac525e620d262e6efb0f030678963852d8e0ce (diff)
[FIX] website_form, *: fix new website form
* = website_crm, website_hr_recruitment, website_sale Changing label position on existing field was replacing the label with the default one. Redirection message was not updating the overlay Going from show message to redirect without hidding the mesage made the form d-none When a select field's label's position was changed the select was not editable anymore. Some other miscellaneous fixes task-2191409 closes odoo/odoo#44911 X-original-commit: 3cf87cc1cb179598cecb736728378e330d3b2e22 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website_form/views')
-rw-r--r--addons/website_form/views/snippets/s_website_form.xml4
-rw-r--r--addons/website_form/views/website_form_templates.xml16
2 files changed, 10 insertions, 10 deletions
diff --git a/addons/website_form/views/snippets/s_website_form.xml b/addons/website_form/views/snippets/s_website_form.xml
index 9a4a28fe6db..5f0544f8e1a 100644
--- a/addons/website_form/views/snippets/s_website_form.xml
+++ b/addons/website_form/views/snippets/s_website_form.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
-<template id="s_website_form" name="Form">
+<template id="s_website_form" name="Form Builder">
<section class="s_website_form" data-vcss="001">
<div class="container">
<form action="/website_form/" method="post" enctype="multipart/form-data" class="o_mark_required" data-mark="*">
@@ -40,7 +40,7 @@
<we-button data-on-success="redirect" data-name="show_redirect_opt">Redirect</we-button>
<we-button data-on-success="message" data-name="show_message_opt">Show Message</we-button>
</we-select>
- <we-button class="fa fa-fw fa-edit align-self-end toggle-edit-message" title="Edit Message" data-name="message_opt" data-dependencies="show_message_opt"/>
+ <we-button class="fa fa-fw fa-eye align-self-end toggle-edit-message" title="Edit Message" data-name="message_opt" data-dependencies="show_message_opt"/>
</we-row>
<we-urlpicker string="URL" data-select-data-attribute="/contactus-thank-you" data-attribute-name="successPage" data-name="url_opt" data-dependencies="show_redirect_opt"/>
</div>
diff --git a/addons/website_form/views/website_form_templates.xml b/addons/website_form/views/website_form_templates.xml
index 256a9ad81f7..d991956ea29 100644
--- a/addons/website_form/views/website_form_templates.xml
+++ b/addons/website_form/views/website_form_templates.xml
@@ -4,12 +4,12 @@
<template id="contactus_form" name="Contact Form" inherit_id="website.contactus" customize_show="True">
<xpath expr="//div[@name='mail_button']" position="replace">
<span class="hidden" data-for="contactus_form" t-att-data-values="{'email_to': res_company.email}" />
- <div>
- <section id="contactus_section" class="s_website_form" data-vcss="001">
+ <div id="contactus_section">
+ <section class="s_website_form" data-vcss="001">
<div class="container">
<form id="contactus_form" action="/website_form/" method="post" enctype="multipart/form-data" class="o_mark_required" data-mark="*" data-model_name="mail.mail" data-success-mode="redirect" data-success-page="/contactus-thank-you">
<div class="s_website_form_rows row s_col_no_bgcolor">
- <div class="form-group col-12 s_website_form_field s_website_form_custom s_website_form_required" data-type="char">
+ <div class="form-group col-12 s_website_form_field s_website_form_custom s_website_form_required" data-type="char" data-name="Field">
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class="col-form-label col-sm-auto s_website_form_label" style="width: 200px" for="contact1">Your Name<span class="s_website_form_mark"> *</span></label>
<div class="col-sm">
@@ -17,7 +17,7 @@
</div>
</div>
</div>
- <div class="form-group col-12 s_website_form_field s_website_form_custom" data-type="char">
+ <div class="form-group col-12 s_website_form_field s_website_form_custom" data-type="char" data-name="Field">
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class="col-form-label col-sm-auto s_website_form_label" style="width: 200px" for="contact2">Phone Number</label>
<div class="col-sm">
@@ -25,7 +25,7 @@
</div>
</div>
</div>
- <div class="form-group col-12 s_website_form_field s_website_form_required" data-type="email">
+ <div class="form-group col-12 s_website_form_field s_website_form_required" data-type="email" data-name="Field">
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class="col-form-label col-sm-auto s_website_form_label" style="width: 200px" for="contact3">Email<span class="s_website_form_mark"> *</span></label>
<div class="col-sm">
@@ -33,7 +33,7 @@
</div>
</div>
</div>
- <div class="form-group col-12 s_website_form_field s_website_form_custom" data-type="char">
+ <div class="form-group col-12 s_website_form_field s_website_form_custom" data-type="char" data-name="Field">
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class="col-form-label col-sm-auto s_website_form_label" style="width: 200px" for="contact4">Your Company</label>
<div class="col-sm">
@@ -41,7 +41,7 @@
</div>
</div>
</div>
- <div class="form-group col-12 s_website_form_field s_website_form_required" data-type="char">
+ <div class="form-group col-12 s_website_form_field s_website_form_required" data-type="char" data-name="Field">
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class="col-form-label col-sm-auto s_website_form_label" style="width: 200px" for="contact5">Subject<span class="s_website_form_mark"> *</span></label>
<div class="col-sm">
@@ -49,7 +49,7 @@
</div>
</div>
</div>
- <div class="form-group col-12 s_website_form_field s_website_form_custom s_website_form_required" data-type="text">
+ <div class="form-group col-12 s_website_form_field s_website_form_custom s_website_form_required" data-type="text" data-name="Field">
<div class="row s_col_no_resize s_col_no_bgcolor">
<label class="col-form-label col-sm-auto s_website_form_label" style="width: 200px" for="contact6">Your Question</label>
<div class="col-sm">