summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/xml
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2018-12-28 17:49:21 +0000
committerChristophe Matthieu <chm@odoo.com>2019-01-17 08:40:21 +0000
commitde444335b7da30a2ab3a4c5b92c9731a023f3f07 (patch)
tree40ceda25aa7157ae0923cf567a448d685798e911 /addons/web_editor/static/src/xml
parent17c6d00531c55d0c392ddb6916bf1957bc490c1c (diff)
[REF] web_editor,*: Move and rename files to prepare refactoring
The refactoring of the wysiwyg editor and 'html' field allows us to move some of the code that was in web_editor but only used in website or in mass_mailing. Some parts are still in web_editor but will be moved at a later time.
Diffstat (limited to 'addons/web_editor/static/src/xml')
-rw-r--r--addons/web_editor/static/src/xml/translator.xml15
-rw-r--r--addons/web_editor/static/src/xml/wysiwyg_colorpicker.xml62
2 files changed, 62 insertions, 15 deletions
diff --git a/addons/web_editor/static/src/xml/translator.xml b/addons/web_editor/static/src/xml/translator.xml
deleted file mode 100644
index dbd6c8287f6..00000000000
--- a/addons/web_editor/static/src/xml/translator.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<templates id="template" xml:space="preserve">
-<div t-name="web_editor.TranslatorInfoDialog">
- <p>You are about to enter the translation mode.</p>
- <p>Here are the visuals used to help you translate efficiently:</p>
- <ul class="oe_translate_examples">
- <li data-oe-translation-state="to_translate">Content to translate</li>
- <li data-oe-translation-state="translated">Translated content</li>
- </ul>
- <p>
- In this mode, you can only translate texts. To change the structure of the page, you must edit the master page.
- Each modification on the master page is automatically applied to all translated versions.
- </p>
-</div>
-</templates>
diff --git a/addons/web_editor/static/src/xml/wysiwyg_colorpicker.xml b/addons/web_editor/static/src/xml/wysiwyg_colorpicker.xml
new file mode 100644
index 00000000000..4d85f3172a1
--- /dev/null
+++ b/addons/web_editor/static/src/xml/wysiwyg_colorpicker.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates>
+ <t t-name="web.colorpicker">
+ <div class="o_colorpicker_widget">
+ <div class="row">
+ <div class="col-auto">
+ <div class="o_color_pick_area d-inline-block border">
+ <div class="o_picker_pointer rounded-circle"/>
+ </div>
+ <div class="o_color_slider d-inline-block ml-2 border">
+ <div class="o_slider_pointer"/>
+ </div>
+ <div class="o_opacity_slider d-inline-block ml-2 border">
+ <div class="o_opacity_pointer"/>
+ </div>
+ </div>
+ <form class="col o_color_picker_inputs">
+ <div class="input-group">
+ <div class="input-group-prepend o_color_preview_parent">
+ <span class="input-group-text rounded-0 o_color_preview"/>
+ </div>
+ <input type="text" class="form-control o_hex_input" data-color-method="hex"/>
+ </div>
+ <div class="form-row mt-2">
+ <div class="col">
+ <div class="form-group">
+ <label for="red">Red</label>
+ <input type="text" class="form-control o_red_input" data-color-method="rgb" id="red"/>
+ </div>
+ <div class="form-group">
+ <label for="green">Green</label>
+ <input type="text" class="form-control o_green_input" data-color-method="rgb" id="green"/>
+ </div>
+ <div class="form-group">
+ <label for="blue">Blue</label>
+ <input type="text" class="form-control o_blue_input" data-color-method="rgb" id="blue"/>
+ </div>
+ </div>
+ <div class="col">
+ <div class="form-group">
+ <label for="hue">Hue</label>
+ <input type="text" class="form-control o_hue_input" data-color-method="hsl" id="hue"/>
+ </div>
+ <div class="form-group">
+ <label for="saturation">Saturation %</label>
+ <input type="text" class="form-control o_saturation_input" data-color-method="hsl" id="saturation"/>
+ </div>
+ <div class="form-group">
+ <label for="lightness">Lightness %</label>
+ <input type="text" class="form-control o_lightness_input" data-color-method="hsl" id="lightness"/>
+ </div>
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="opacity">Opacity %</label>
+ <input type="text" class="form-control o_opacity_input" data-color-method="opacity" id="opacity"/>
+ </div>
+ </form>
+ </div>
+ </div>
+ </t>
+</templates>