[IMP] web : added shortcuts to jump between views

This commit is contained in:
Yannick Tivisse
2015-07-16 17:16:58 +02:00
parent 3943e8ab39
commit 63567e2b5a
+12 -1
View File
@@ -486,7 +486,18 @@
</div>
<t t-name="ViewManager.switch-buttons">
<t t-foreach="views" t-as="view">
<button type="button" t-attf-class="btn btn-default fa oe-cp-switch-#{view.type}" t-att-data-view-type="view.type" t-att-title="view.label"/>
<t t-if="view.type === 'kanban'">
<button type="button" t-attf-class="btn btn-default fa oe-cp-switch-kanban" t-att-data-view-type="view.type" accesskey="K" t-att-title="view.label"/>
</t>
<t t-if="view.type === 'form'">
<button type="button" t-attf-class="btn btn-default fa oe-cp-switch-form" t-att-data-view-type="view.type" accesskey="F" t-att-title="view.label"/>
</t>
<t t-if="view.type === 'list'">
<button type="button" t-attf-class="btn btn-default fa oe-cp-switch-list" t-att-data-view-type="view.type" accesskey="L" t-att-title="view.label"/>
</t>
<t t-if="view.type !== 'kanban' and view.type !== 'form' and view.type !== 'list'">
<button type="button" t-attf-class="btn btn-default fa oe-cp-switch-#{view.type}" t-att-data-view-type="view.type" t-att-title="view.label"/>
</t>
</t>
</t>