summaryrefslogtreecommitdiff
path: root/addons/account/static/src/xml/account_resequence.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/account/static/src/xml/account_resequence.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/account/static/src/xml/account_resequence.xml')
-rw-r--r--addons/account/static/src/xml/account_resequence.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/addons/account/static/src/xml/account_resequence.xml b/addons/account/static/src/xml/account_resequence.xml
new file mode 100644
index 00000000..172a0e94
--- /dev/null
+++ b/addons/account/static/src/xml/account_resequence.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<templates>
+
+ <div t-name="account.ResequenceRenderer" owl="1" class="d-block">
+ <table t-if="data.changeLines.length" class="table table-sm">
+ <thead><tr>
+ <th>Date</th>
+ <th>Before</th>
+ <th>After</th>
+ </tr></thead>
+ <tbody t-foreach="data.changeLines" t-as="changeLine" t-key="changeLine.id">
+ <ChangeLine changeLine="changeLine" ordering="data.ordering"/>
+ </tbody>
+ </table>
+ </div>
+
+ <t t-name="account.ResequenceChangeLine" owl="1">
+ <tr>
+ <td t-esc="props.changeLine.date"/>
+ <td t-esc="props.changeLine.current_name"/>
+ <td t-if="props.ordering == 'keep'" t-esc="props.changeLine.new_by_name" t-attf-class="{{ props.changeLine.new_by_name != props.changeLine.new_by_date ? 'animate' : ''}}"/>
+ <td t-else="" t-esc="props.changeLine.new_by_date" t-attf-class="{{ props.changeLine.new_by_name != props.changeLine.new_by_date ? 'animate' : ''}}"/>
+ </tr>
+ </t>
+</templates>