summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorRobot Odoo <xmo+roboto@odoo.com>2019-01-17 11:23:11 +0100
committerGitHub <noreply@github.com>2019-01-17 11:23:11 +0100
commit188ca66dbce8794d0130a975cd7f808d49e4fc8f (patch)
treedf416ad29ec5257b1ee811ef70815985670b05ce /addons/web/static/src/xml
parent1bb6d739496754647f18e8b224ec9ed4d1d6170a (diff)
parent958342bf165bb9b6982e2eaa49d0c8daec7bbb7a (diff)
[MERGE] project,hr_timesheet: simplify the user onboarding
This merge provides many little changes to improve the usability and the onboarding of users in project and timesheet applications. This mostly contains labels renaming, restruration of views, ... but some new mecanism appears like the "ghost kanban examples", and improvements of the kanban examples modal. Task-1893021 closes odoo/odoo#28461
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/kanban.xml35
1 files changed, 33 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/kanban.xml b/addons/web/static/src/xml/kanban.xml
index 220395fef02..06ba6b71eb6 100644
--- a/addons/web/static/src/xml/kanban.xml
+++ b/addons/web/static/src/xml/kanban.xml
@@ -56,10 +56,10 @@
<button class="btn btn-primary o_kanban_add" type="button">Add</button>
</span>
</div>
+ <span class="o_discard_msg text-muted float-right">Esc to discard</span>
<t t-if="widget.examples">
- <button type="button" class="btn btn-link o_kanban_examples">Examples</button>
+ <button type="button" class="btn btn-link o_kanban_examples">See examples</button>
</t>
- <span class="o_discard_msg text-muted float-right">Esc to discard</span>
</div>
<div class="o_kanban_muted_record"/>
<div class="o_kanban_muted_record"/>
@@ -158,10 +158,41 @@
<div class="o_kanban_examples_ghost">
<div class="o_ghost_content"/>
<div class="o_ghost_content o_ghost_tag"/>
+ <t t-if="example.bullets">
+ <t t-if="_.random(0,5) > 3">
+ <t t-raw="example.bullets[_.random(0, example.bullets.length-1)]"/>
+ </t>
+ </t>
<img class="float-right o_ghost_avatar" src="/base/static/img/avatar.png" alt="Avatar"/>
</div>
</t>
+<!-- Kanban Example Background -->
+<t t-name="KanbanView.ExamplesBackground">
+ <div class="o_kanban_example_background_container">
+ <div class="o_kanban_example_background">
+ <div class="o_kanban_examples">
+ <t t-foreach="_.range(1,5)" t-as="num">
+ <div class="o_kanban_examples_group">
+ <h6><b>Column <t t-esc="num"/></b></h6>
+ <t t-foreach="_.random(2,6)">
+ <t t-call="KanbanView.ExamplesBackground.RecordGhost"/>
+ </t>
+ </div>
+ </t>
+ </div>
+ </div>
+ </div>
+</t>
+<t t-name="KanbanView.ExamplesBackground.RecordGhost">
+ <div class="o_kanban_examples_ghost">
+ <div class="o_ghost_content"/>
+ <div class="o_ghost_content o_ghost_tag"/>
+ <img class="float-right o_ghost_avatar" src="/base/static/img/avatar.png" alt="Avatar"/>
+ </div>
+</t>
+
+
<!-- Mobile templates -->
<t t-name="KanbanView.MobileTabs">
<div class="o_kanban_mobile_tabs">