summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/translation_dialog.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/web/static/src/xml/translation_dialog.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/web/static/src/xml/translation_dialog.xml')
-rw-r--r--addons/web/static/src/xml/translation_dialog.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/translation_dialog.xml b/addons/web/static/src/xml/translation_dialog.xml
new file mode 100644
index 00000000..7ee3e2f4
--- /dev/null
+++ b/addons/web/static/src/xml/translation_dialog.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates id="template" xml:space="preserve">
+ <div t-name="TranslationDialog" class="o_translation_dialog">
+ <div class="row" t-foreach="widget.data" t-as="term">
+ <div t-attf-class="col-12 #{widget.showSrc ? 'col-lg-2' : 'col-lg-3'} #{widget.currentInterfaceLanguage == term.lang ? 'o_language_current' : ''}">
+ <t t-esc="term.langName"></t>
+ </div>
+ <div t-if="widget.showSrc" class="col-12 col-lg-3 source">
+ <t t-esc="term.source"></t>
+ </div>
+ <div t-attf-class="col-12 #{widget.showSrc ? 'col-lg-7' : 'col-lg-9'} translation">
+ <input t-if="!widget.isText" type="text"
+ class="o_field_char o_input"
+ t-att-value="term.value"
+ t-att-data-id="term.id"/>
+
+ <textarea t-if="widget.isText"
+ t-esc="term.value"
+ t-att-data-id="term.id"
+ t-att-rows="widget.showSrc ? 2 : 5"
+ class="o_field_text o_field_translate o_field_widget o_input">
+ </textarea>
+ </div>
+ </div>
+ </div>
+</templates>