summaryrefslogtreecommitdiff
path: root/addons/gamification
diff options
context:
space:
mode:
authorstefanorigano <sri@odoo.com>2017-09-01 15:16:54 +0200
committerqsm-odoo <qsm@odoo.com>2017-09-15 14:34:18 +0200
commitfafbc5ebe9ef7c492a691680988e0c9c7a906976 (patch)
treef3c2a4b81b295d5b2cdc7c346c210f29715ae58a /addons/gamification
parent3e1d46dcc90fb09f24de49783f0f1c1d50058186 (diff)
[REF] *: use new kanban record classes/layout
Diffstat (limited to 'addons/gamification')
-rw-r--r--addons/gamification/views/badge.xml22
-rw-r--r--addons/gamification/views/challenge.xml4
2 files changed, 14 insertions, 12 deletions
diff --git a/addons/gamification/views/badge.xml b/addons/gamification/views/badge.xml
index 20194764070..1269fdf99fd 100644
--- a/addons/gamification/views/badge.xml
+++ b/addons/gamification/views/badge.xml
@@ -115,7 +115,7 @@
<img t-att-src="kanban_image('gamification.badge', 'image', record.id.raw_value)" t-att-title="record.name.value"/>
</div>
<div class="oe_kanban_details">
- <strong><field name="name"/></strong>
+ <strong class="o_kanban_record_title"><field name="name"/></strong>
<span class="oe_grey">
<t t-if="record.remaining_sending.value != -1">
<t t-esc="record.stat_my_monthly_sending.value"/>/<t t-esc="record.rule_max_number.value"/>
@@ -165,16 +165,18 @@
<t t-name="kanban-box">
<div class="oe_kanban_card oe_kanban_global_click oe_kanban_badge oe_kanban_color_white o_kanban_gamification">
<div class="o_kanban_content">
- <div class="pull-left">
- <a type="open"><img t-att-src="kanban_image('gamification.badge', 'image', record.badge_id.raw_value)" t-att-title="record.badge_name.value" width="24" height="24" /></a>
+ <div class="o_kanban_image">
+ <a type="open"><img t-att-src="kanban_image('gamification.badge', 'image', record.badge_id.raw_value)" t-att-title="record.badge_name.value" /></a>
+ </div>
+ <div class="oe_kanban_details">
+ <h4 class="mt0 mb0">
+ <a class="o_kanban_record_title" type="open"><t t-esc="record.badge_name.raw_value" /></a>
+ </h4>
+ <t t-if="record.comment.raw_value">
+ <p class="o_kanban_record_subtitle"><em><field name="comment"/></em></p>
+ </t>
+ <p>Granted by <a type="open"><field name="create_uid" /></a> the <t t-esc="moment(record.create_date.raw_value).format('L')" /></p>
</div>
- <h4>
- <a type="open"><t t-esc="record.badge_name.raw_value" /></a>
- </h4>
- <t t-if="record.comment.raw_value">
- <p><em><field name="comment"/></em></p>
- </t>
- <p>Granted by <a type="open"><field name="create_uid" /></a> the <t t-esc="moment(record.create_date.raw_value).format('L')" /></p>
</div>
</div>
</t>
diff --git a/addons/gamification/views/challenge.xml b/addons/gamification/views/challenge.xml
index 84a68994ff4..36547f9bb2b 100644
--- a/addons/gamification/views/challenge.xml
+++ b/addons/gamification/views/challenge.xml
@@ -147,8 +147,8 @@
<div t-attf-class="oe_kanban_card o_kanban_gamification oe_kanban_global_click">
<div class="o_kanban_content">
<strong>
- <h4 class="text-center"><field name="name"/></h4>
- <div class="oe_kanban_project_list text-center">
+ <h4 class="o_kanban_record_title"><field name="name"/></h4>
+ <div class="oe_kanban_project_list o_kanban_record_subtitle">
<a type="action" name="%(goals_from_challenge_act)d" style="margin-right: 10px">
<span t-if="record.line_ids.raw_value.length gt 1"><t t-esc="record.line_ids.raw_value.length"/> Goals</span>
<span t-if="record.line_ids.raw_value.length lt 2"><t t-esc="record.line_ids.raw_value.length"/> Goal</span>