summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml5
-rw-r--r--addons/web/static/src/xml/colorpicker.xml2
2 files changed, 4 insertions, 3 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index c52c7e0ac60..949c6926ebf 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -631,12 +631,13 @@
</t>
<t t-name="web.ViewSwitcherButton" owl="1">
+ <t t-set="buttonLabel">View %s</t>
<button type="button"
t-att-accesskey="view.accessKey"
t-attf-class="btn btn-secondary fa fa-lg o_switch_view o_{{ view.type }} {{ view.icon }}"
t-att-class="{ active: env.view.type === view.type }"
- t-attf-aria-label="View {{ view.type }}"
- t-attf-title="View {{ view.type }}"
+ t-att-aria-label="sprintf(buttonLabel.toString(), view.type)"
+ t-att-title="sprintf(buttonLabel.toString(), view.type)"
data-toggle="tooltip"
tabindex="-1"
t-on-click="trigger('switch-view', { view_type: view.type })"
diff --git a/addons/web/static/src/xml/colorpicker.xml b/addons/web/static/src/xml/colorpicker.xml
index 09d39f30f58..1aaf6718249 100644
--- a/addons/web/static/src/xml/colorpicker.xml
+++ b/addons/web/static/src/xml/colorpicker.xml
@@ -16,7 +16,7 @@
</div>
<div t-if="widget.options.colorPreview" class="o_color_preview mb-1 w-100 p-2"/>
<div class="o_color_picker_inputs d-flex justify-content-between mb-2">
- <t t-set="input_classes">p-0 text-center text-monospace bg-transparent text-white</t>
+ <t t-set="input_classes" t-value="'p-0 text-center text-monospace bg-transparent text-white'" />
<div class="o_hex_div bg-black-50 px-1 d-flex align-items-baseline">
<input type="text" t-attf-class="o_hex_input {{input_classes}}" data-color-method="hex" size="1"/>