[IMP] website_crm: make CRM contact form editable by form builder
Add t-ignore to the DOM so it can be edited. Also, now that website_form already add a form to contactus page, we need to xpath that form. task-32212
This commit is contained in:
committed by
Romain Derie
parent
759350ce0b
commit
e834de3d10
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="contactus_form" name="Contact Form" inherit_id="website.contactus" customize_show="True">
|
||||
<xpath expr="//div[@name='mail_button']" position="replace">
|
||||
<div>
|
||||
<template id="contactus_form" name="Contact Form (Opportunity)" inherit_id="website_form.contactus_form" customize_show="True">
|
||||
<xpath expr="//form[@id='contactus_form']" position="replace">
|
||||
<div t-ignore="true">
|
||||
<form action="/website_form/" method="post" data-model_name="crm.lead" data-success_page="/contactus-thank-you" class="s_website_form container-fluid mt32" enctype="multipart/form-data" data-editable-form="false">
|
||||
<div class="form-group row form-field o_website_form_required_custom">
|
||||
<label class="col-lg-3 col-md-4 col-form-label" for="contact_name">Your Name</label>
|
||||
|
||||
Reference in New Issue
Block a user