[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:
@@ -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">
|
||||
<!--
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user