diff options
| author | jem-odoo <jem@openerp.com> | 2018-10-24 13:03:30 +0000 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2019-01-16 08:28:09 +0000 |
| commit | 958342bf165bb9b6982e2eaa49d0c8daec7bbb7a (patch) | |
| tree | df416ad29ec5257b1ee811ef70815985670b05ce /addons/web/static/src/xml | |
| parent | 92b6ea64ab0847e932fff9eb657ae2b72dd9cdbf (diff) | |
[IMP] web: add example kanban background
The background example is a set of random fake column and card,
directly inspired from the kanban example modal.
We want to toggle this background depending on the kanban state;
the background will be displayed when there is no column yet,
and the quick create column is shown.
To do so, we need to update the state of the kanban when deleting
a column to (re)display the background in case of removal of the
last column. Now, on column deletion, the entire kanban is updated
and so entirely rerender (with aab's benediction).
Task-1893021
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/kanban.xml | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/kanban.xml b/addons/web/static/src/xml/kanban.xml index 8a37bef9277..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">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"/> @@ -167,6 +167,32 @@ </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"> |
