[IMP] website_form: add new 'email' type of field in custom fields

This commit adds possibility to add 'email' type of custom field using
form builder.

Part of https://github.com/odoo/odoo/pull/30595
task-1874350
This commit is contained in:
Dharmraj Jhala
2019-11-06 15:39:11 +00:00
committed by qsm-odoo
parent 655bd95f6d
commit 03425f1306
2 changed files with 13 additions and 0 deletions
@@ -39,6 +39,18 @@
</t>
</t>
<!-- Email Field -->
<t t-name="website_form.field_email">
<t t-call="website_form.field">
<input
type="email"
class="form-control o_website_form_input"
t-att-name="field.name"
t-att-required="field.required"
/>
</t>
</t>
<!-- HTML Field -->
<t t-name="website_form.field_html">
<!--
+1
View File
@@ -37,6 +37,7 @@
<we-collapse data-no-preview="true">
<we-button data-website_form_custom_field="char">Text</we-button>
<we-button data-website_form_custom_field="text">Long Text</we-button>
<we-button data-website_form_custom_field="email">Email</we-button>
<we-button data-website_form_custom_field="integer">Number</we-button>
<we-button data-website_form_custom_field="float">Decimal Number</we-button>
<we-button data-website_form_custom_field="boolean">Checkbox</we-button>