summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.editor.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-12-21 17:08:17 +0000
committerqsm-odoo <qsm@odoo.com>2019-02-08 14:38:31 +0000
commit905d18e0445798d4fdac68f5b6f8c144e69d002f (patch)
tree05ce7cb2ed010d1eaedec4e9eda0585b442f2690 /addons/website/static/src/xml/website.editor.xml
parent9f21427cdf41063065ecb60371717599afdfa067 (diff)
[IMP] website, *: add new logo sizing option
* portal, web This commit introduces the first of many-to-come non-color website user values: the logo height. Now, the user can choose it in the customize dialog. PR https://github.com/odoo/odoo/pull/29624 task-1904244
Diffstat (limited to 'addons/website/static/src/xml/website.editor.xml')
-rw-r--r--addons/website/static/src/xml/website.editor.xml20
1 files changed, 19 insertions, 1 deletions
diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml
index d02d82eb5aa..2f8473d90c3 100644
--- a/addons/website/static/src/xml/website.editor.xml
+++ b/addons/website/static/src/xml/website.editor.xml
@@ -49,10 +49,28 @@
</div>
</t>
<t t-name="website.theme_customize_widget_color">
- <div t-attf-class="bg-#{color} o_theme_customize_color o_theme_customize_color_#{color}"
+ <div t-attf-class="o_theme_customize_color o_theme_customize_color_#{color}"
t-att-data-color="color"
t-att-data-color-type="colorType"/>
</t>
+ <t t-name="website.theme_customize_widget_input">
+ <div t-attf-class="o_theme_customize_input o_theme_customize_input_#{value}"
+ t-att-data-value="value"
+ t-att-data-unit="unit">
+ <i class="fa fa-edit"/>
+ <span/>
+ </div>
+ </t>
+ <t t-name="website.theme_customize_active_input">
+ <div class="input-group input-group-sm align-items-center o_theme_customize_active_input">
+ <input type="text" class="form-control" t-att-value="widget.value"/>
+ <div class="input-group-append">
+ <div t-if="widget.unit" class="input-group-text"><t t-esc="widget.unit"/></div>
+ <button type="button" class="btn btn-primary fa fa-check" title="Save"/>
+ <button type="button" class="btn btn-secondary fa fa-undo" title="Reset"/>
+ </div>
+ </div>
+ </t>
<t t-extend="wysiwyg.widgets.link">
<t t-jquery="#o_link_dialog_url_input" t-operation="after">