diff options
| author | Andrea Ulliana <aul@odoo.com> | 2019-01-03 08:40:45 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-01-09 16:16:01 +0000 |
| commit | 59cc261448b67c424051a623c5c8d76ddd20aa71 (patch) | |
| tree | bd09682296a5193ab9e41a1f6d4750d76adc0aa3 /addons/website/static/src/xml | |
| parent | 2ee21d9938c14a47e33b36446a03f284cfa67ffe (diff) | |
[IMP] website, *: allow creating anchor links
* portal, web_editor
Anchor Link:
- Some visual improvements of the link dialog.
- New 'Page Anchor' field.
- System by default: top and bottom.
- Shows existing anchors.
Creation of the anchor:
- New option 'Anchor Name' to be able to create an anchor.
task-1913458
closes odoo/odoo#29150
Diffstat (limited to 'addons/website/static/src/xml')
| -rw-r--r-- | addons/website/static/src/xml/website.editor.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml index 5018d28d1d9..a9ed7b66601 100644 --- a/addons/website/static/src/xml/website.editor.xml +++ b/addons/website/static/src/xml/website.editor.xml @@ -69,4 +69,28 @@ <span t-attf-class="o_color_preview bg-#{color}"/> </button> </t> + <t t-extend="web_editor.dialog.link"> + <t t-jquery="#o_link_dialog_url_input" t-operation="after"> + <small class="form-text">Hint: Type '/' to link to an existing page and '#' to an anchor.</small> + </t> + <t t-jquery="div.o_url_input" t-operation="after"> + <div class="form-group row o_link_dialog_page_anchor d-none"> + <label class="col-form-label col-md-3" for="o_link_dialog_anchor_input">Page Anchor</label> + <div class="col-md-9"> + <select name="link_anchor" class="form-control link-style"></select> + <small class="form-text font-weight-bold o_anchors_loading">Loading...</small> + </div> + </div> + </t> + </t> + <!-- Anchor Name option dialog --> + <div t-name="website.dialog.anchorName"> + <div class="form-group row"> + <label class="col-form-label col-md-3" for="anchorName">Choose an anchor name</label> + <div class="col-md-9"> + <input type="text" class="form-control o_input_anchor_name" id="anchorName" t-attf-value="#{currentAnchor}" placeholder="Anchor name"/> + <div class="invalid-feedback">The chosen name already exists</div> + </div> + </div> + </div> </templates> |
