Files
odoo_source/addons/web_editor/static/src/xml/commands.xml
T
David Beguin 6ee1d0a1f4 [IMP] web_editor: add /banner commands
Purpose
=======
Make it possible to attract attention to a small section of a text document
(e.g. task spec, knowledge article, etc.) via a new "bloc" called "Banner".

Specifications
==============

Add 4 commands in web_editor.
Each command will add a banner of the following types and will come with their
associated icons:
- Banner Info: alert-info - info-circle
- Banner Success: alert-success - check-circle
- Banner Warning: alert-warning - exclamation-triangle
- Banner Danger: alert-danger - exclamation

Task-2782426

Part-of: odoo/odoo#120690
2023-07-18 19:27:53 +02:00

12 lines
515 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<templates>
<t t-name="web_editor.banner">
<div t-attf-class="o_editor_banner o_not_editable lh-1 d-flex align-items-center alert alert-#{alertClass} pb-0 pt-3" role="status" data-oe-protected="true">
<i t-attf-class="fs-4 fa #{iconClass} mb-3" t-att-aria-label="label"/>
<div class="o_editable o_editable_no_shadow w-100 ms-3" data-oe-protected="false">
<p><br/></p>
</div>
</div>
</t>
</templates>