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.

59 lines
2.7 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2018 MuK IT GmbH
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as
  6. published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <templates id="template" xml:space="preserve">
  16. <t t-name="muk_web_utils.FieldColor">
  17. <span t-if="widget.mode === 'readonly'" class="mk_field_color"/>
  18. <div t-if="widget.mode !== 'readonly'" class="mk_field_color">
  19. <input type="text" class="o_input mk_field_color_input"
  20. t-att-name="widget.name"
  21. t-att-tabindex="widget.attrs.tabindex"
  22. t-att-autocomplete="widget.attrs.autocomplete"
  23. t-att-placeholder="widget.attrs.placeholder"
  24. t-att-autofocus="widget.attrs.autofocus"/>
  25. <button class="btn btn-sm btn-outline-primary mk_field_color_button" type="button">
  26. <span class="fa fa-paint-brush"></span>
  27. </button>
  28. </div>
  29. </t>
  30. <t t-name="muk_web_utils.FieldColorIndex">
  31. <span t-if="widget.mode === 'readonly'" class="mk_field_color_index"/>
  32. <select t-if="widget.mode !== 'readonly'"
  33. class="o_input mk_field_color_index"
  34. t-att-name="widget.name"
  35. t-att-tabindex="widget.attrs.tabindex"
  36. t-att-autofocus="widget.attrs.autofocus"
  37. t-att-id="widget.idForLabel">
  38. <option class="mk_color_index_0" value="0">Color 0</option>
  39. <option class="mk_color_index_1" value="1">Color 1</option>
  40. <option class="mk_color_index_2" value="2">Color 2</option>
  41. <option class="mk_color_index_3" value="3">Color 3</option>
  42. <option class="mk_color_index_4" value="4">Color 4</option>
  43. <option class="mk_color_index_5" value="5">Color 5</option>
  44. <option class="mk_color_index_6" value="6">Color 6</option>
  45. <option class="mk_color_index_7" value="7">Color 7</option>
  46. <option class="mk_color_index_8" value="8">Color 8</option>
  47. <option class="mk_color_index_9" value="9">Color 9</option>
  48. <option class="mk_color_index_10" value="10">Color 10</option>
  49. <option class="mk_color_index_11" value="11">Color 11</option>
  50. </select>
  51. </t>
  52. </templates>