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.

64 lines
2.7 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 Web Utils
  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_utils.FieldColor">
  19. <span t-if="widget.mode === 'readonly'" class="mk_field_color"/>
  20. <div t-if="widget.mode !== 'readonly'" class="mk_field_color">
  21. <input type="text" class="o_input mk_field_color_input"
  22. t-att-name="widget.name"
  23. t-att-tabindex="widget.attrs.tabindex"
  24. t-att-autocomplete="widget.attrs.autocomplete"
  25. t-att-placeholder="widget.attrs.placeholder"
  26. t-att-autofocus="widget.attrs.autofocus"/>
  27. <button class="btn btn-sm btn-outline-primary mk_field_color_button" type="button">
  28. <span class="fa fa-paint-brush"></span>
  29. </button>
  30. </div>
  31. </t>
  32. <t t-name="muk_web_utils.FieldColorIndex">
  33. <span t-if="widget.mode === 'readonly'" class="mk_field_color_index"/>
  34. <select t-if="widget.mode !== 'readonly'"
  35. class="o_input mk_field_color_index"
  36. t-att-name="widget.name"
  37. t-att-tabindex="widget.attrs.tabindex"
  38. t-att-autofocus="widget.attrs.autofocus"
  39. t-att-id="widget.idForLabel">
  40. <option class="mk_color_index_0" value="0">Color 0</option>
  41. <option class="mk_color_index_1" value="1">Color 1</option>
  42. <option class="mk_color_index_2" value="2">Color 2</option>
  43. <option class="mk_color_index_3" value="3">Color 3</option>
  44. <option class="mk_color_index_4" value="4">Color 4</option>
  45. <option class="mk_color_index_5" value="5">Color 5</option>
  46. <option class="mk_color_index_6" value="6">Color 6</option>
  47. <option class="mk_color_index_7" value="7">Color 7</option>
  48. <option class="mk_color_index_8" value="8">Color 8</option>
  49. <option class="mk_color_index_9" value="9">Color 9</option>
  50. <option class="mk_color_index_10" value="10">Color 10</option>
  51. <option class="mk_color_index_11" value="11">Color 11</option>
  52. </select>
  53. </t>
  54. </templates>