diff options
| author | Xavier Morel <xmo@openerp.com> | 2013-12-04 11:52:12 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2013-12-04 11:52:12 +0100 |
| commit | b79e56d1af9a2d9e10631df79c4325ea7d0854e1 (patch) | |
| tree | 4988c5293862be432856319db62a1bd01f3c38f0 /addons/website/static/src/xml | |
| parent | 31381c1469e4970dae7c0f00b49c7556cc6c3cf7 (diff) | |
[IMP] clarity of links edition
According to user tests, users have a hard time finding out how to
edit links. Thus, add same system as image edition (a small button
appearing when hovering the element).
Extract and unify these two to avoid redundancies between handlings as
they are broadly similar (only details such as label, positioning and
size of button relative to the element being hovered really change,
the lifecycle itself is the same).
The main setup still isn't very clean, there might be a better way to
do it.
bzr revid: xmo@openerp.com-20131204105212-u0a49nbvwilgtfst
Diffstat (limited to 'addons/website/static/src/xml')
| -rw-r--r-- | addons/website/static/src/xml/website.editor.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml index 8c1adf1ee27..be80e71afc0 100644 --- a/addons/website/static/src/xml/website.editor.xml +++ b/addons/website/static/src/xml/website.editor.xml @@ -194,4 +194,11 @@ </div> </t> + <t t-name="website.editor.hoverbutton"> + <button type="button" contenteditable="false" + t-attf-class="btn btn-primary hover-edition-button #{classes or ''}"> + <t t-esc="label"/> + </button> + </t> + </templates> |
