[IMP] website_form: make adding a field to the form clearer

This commit adds a label next to the + icon and uses a primary button to
make adding a field clearer.

Part of https://github.com/odoo/odoo/pull/72180
task-2566338
This commit is contained in:
Younn Olivier
2021-06-25 07:39:53 +00:00
committed by qsm-odoo
parent 3bcb88f410
commit fac52593fe
@@ -48,21 +48,21 @@
<!-- Add Field Form -->
<div data-js="AddFieldForm" data-selector=".s_website_form" data-target="form">
<we-button class="o_we_text_success"
<we-button class="o_we_bg_brand_primary"
title="Add a new field at the end"
data-add-field=""
data-no-preview="true">
<i class="fa fa-fw fa-plus"/>
+ Field
</we-button>
</div>
<!-- Add Field -->
<div data-js="AddField" data-selector=".s_website_form_field" data-exclude=".s_website_form_dnone">
<we-button class="o_we_text_success"
<we-button class="o_we_bg_brand_primary"
title="Add a new field after this one"
data-add-field=""
data-no-preview="true">
<i class="fa fa-fw fa-plus"/>
+ Field
</we-button>
</div>