You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
3.8 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (c) 2017-2019 MuK IT GmbH.
  4. This file is part of MuK Backend Theme
  5. (see https://mukit.at).
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU Lesser General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU Lesser General Public License for more details.
  14. You should have received a copy of the GNU Lesser General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17. <templates id="template" xml:space="preserve">
  18. <t t-name="muk_web_theme.MenuStatusbarButtons">
  19. <div class="dropdown">
  20. <button class="o_statusbar_buttons_dropdown btn btn-secondary dropdown-toggle" type="button"
  21. data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  22. Actions
  23. </button>
  24. </div>
  25. </t>
  26. <t t-name="muk_web_theme.IconButton">
  27. <i t-attf-class="d-inline d-sm-none fa fa-#{icon}" t-att-title="label"/>
  28. <span class="d-none d-sm-inline" t-esc="label"/>
  29. </t>
  30. <t t-extend="FormView.buttons">
  31. <t t-jquery=".o_form_button_edit" t-operation="inner">
  32. <t t-call="muk_web_theme.IconButton">
  33. <t t-set="icon" t-value="'pencil'"/>
  34. <t t-set="label">Edit</t>
  35. </t>
  36. </t>
  37. <t t-jquery=".o_form_button_create" t-operation="inner">
  38. <t t-call="muk_web_theme.IconButton">
  39. <t t-set="icon" t-value="'plus'"/>
  40. <t t-set="label">Create</t>
  41. </t>
  42. </t>
  43. <t t-jquery=".o_form_button_save" t-operation="inner">
  44. <t t-call="muk_web_theme.IconButton">
  45. <t t-set="icon" t-value="'floppy-o'"/>
  46. <t t-set="label">Save</t>
  47. </t>
  48. </t>
  49. <t t-jquery=".o_form_button_cancel" t-operation="inner">
  50. <t t-call="muk_web_theme.IconButton">
  51. <t t-set="icon" t-value="'times'"/>
  52. <t t-set="label">Discard</t>
  53. </t>
  54. </t>
  55. </t>
  56. <t t-extend="ListView.buttons">
  57. <t t-jquery=".o_list_button_add" t-operation="inner">
  58. <t t-call="muk_web_theme.IconButton">
  59. <t t-set="icon" t-value="'plus'"/>
  60. <t t-set="label">Create</t>
  61. </t>
  62. </t>
  63. <t t-jquery=".o_list_button_save" t-operation="inner">
  64. <t t-call="muk_web_theme.IconButton">
  65. <t t-set="icon" t-value="'floppy-o'"/>
  66. <t t-set="label">Save</t>
  67. </t>
  68. </t>
  69. <t t-jquery=".o_list_button_discard" t-operation="inner">
  70. <t t-call="muk_web_theme.IconButton">
  71. <t t-set="icon" t-value="'times'"/>
  72. <t t-set="label">Discard</t>
  73. </t>
  74. </t>
  75. </t>
  76. <t t-extend="KanbanView.buttons">
  77. <t t-jquery="button" t-operation="inner">
  78. <t t-call="muk_web_theme.IconButton">
  79. <t t-set="icon" t-value="'plus'"/>
  80. <t t-set="label" t-value="create_text || _t('Create')"/>
  81. </t>
  82. </t>
  83. </t>
  84. <t t-extend="SearchView.FavoriteMenu">
  85. <t t-jquery="button[data-toggle='dropdown']" t-operation="inner">
  86. <span class="fa fa-star"/>
  87. <span class="mk_dropdown_text">Favorites</span>
  88. <span t-if="widget.isMobile" class="fa fa-chevron-right float-right mt4"/>
  89. </t>
  90. </t>
  91. </templates>