diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-09-11 13:54:18 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-09-14 23:48:54 +0200 |
| commit | f1370dfa0abac2b50315e47dccd0daf906336fc5 (patch) | |
| tree | 841d20cb1fe102a25785a86f9f8c8511d64e06db /addons/web/static/src/xml | |
| parent | 8496a314219f8013db025bd960632c9dfe27d24f (diff) | |
[REF] web: allow adding custom stuff in kanban header
Previous kanban header was a div with `flex-flow: row nowrap`. So if
someone tried to add some stuff in it, it will be forced to stay on
the same row as the title and config buttons. This commit wraps these
row elements in a new div to allow kanban header customization (this
prepares for the kanban progressbars).
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/kanban.xml | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/addons/web/static/src/xml/kanban.xml b/addons/web/static/src/xml/kanban.xml index 0da9033a976..c7e7c83e836 100644 --- a/addons/web/static/src/xml/kanban.xml +++ b/addons/web/static/src/xml/kanban.xml @@ -10,26 +10,26 @@ <t t-name="KanbanView.Group"> <div class="o_kanban_group" t-att-data-id="widget.id"> - <div class="o_kanban_header" t-att-title="widget.data_records.length + ' records'" data-delay="500"> - <span class="o_column_title"><t t-esc="widget.title"/></span> - <span class="o_column_unfold"><i class="fa fa-arrows-h"/></span> - <span class="o_kanban_config dropdown"> - <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-gear"/></a> - <ul class="dropdown-menu" role="menu"> - <li><a class="o_kanban_toggle_fold" href="#">Fold</a></li> - <t t-if="widget.grouped_by_m2o"> - <li t-if="widget.editable and widget.id"><a class="o_column_edit" href="#">Edit Stage</a></li> - <li t-if="widget.deletable and widget.id"><a class="o_column_delete" href="#">Delete</a></li> - </t> - <t t-if="widget.has_active_field"> - <li><a class="o_column_archive" href="#">Archive Records</a></li> - <li><a class="o_column_unarchive" href="#">Restore Records</a></li> - </t> - </ul> - </span> - <t t-if="widget.quick_create"> - <span class="o_kanban_quick_add"><i class="fa fa-plus"/></span> - </t> + <div class="o_kanban_header"> + <div class="o_kanban_header_title" t-att-title="widget.data_records.length + ' records'" data-delay="500"> + <span class="o_column_title"><t t-esc="widget.title"/></span> + <span class="o_column_unfold"><i class="fa fa-arrows-h"/></span> + <span class="o_kanban_config dropdown"> + <a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-gear"/></a> + <ul class="dropdown-menu" role="menu"> + <li><a class="o_kanban_toggle_fold" href="#">Fold</a></li> + <t t-if="widget.grouped_by_m2o"> + <li t-if="widget.editable and widget.id"><a class="o_column_edit" href="#">Edit Stage</a></li> + <li t-if="widget.deletable and widget.id"><a class="o_column_delete" href="#">Delete</a></li> + </t> + <t t-if="widget.has_active_field"> + <li><a class="o_column_archive" href="#">Archive Records</a></li> + <li><a class="o_column_unarchive" href="#">Restore Records</a></li> + </t> + </ul> + </span> + <span t-if="widget.quick_create" class="o_kanban_quick_add"><i class="fa fa-plus"/></span> + </div> </div> <div t-if="widget.remaining > 0" class="o_kanban_load_more"> <t t-call="KanbanView.LoadMore"/> |
