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.

92 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 Preview
  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>
  18. <t t-name="muk_preview.PreviewDialog">
  19. <div class="modal fade">
  20. <div class="modal-dialog modal-lg mk_preview_dialog">
  21. <div class="modal-content">
  22. <div class="modal-header">
  23. <h4 class="modal-title">Preview</h4>
  24. <div class="mk_preview_buttons">
  25. <t t-call="muk_preview.PreviewActions"/>
  26. <button type="button" class="close" data-dismiss="modal" title="Close">
  27. <i class="fa fa-times" />
  28. </button>
  29. <button type="button" class="mk_preview_maximize_btn" title="Maximize">
  30. <i class="fa fa-window-maximize" />
  31. </button>
  32. <button type="button" class="mk_preview_minimize_btn" title="Minimize">
  33. <i class="fa fa-window-minimize" />
  34. </button>
  35. </div>
  36. </div>
  37. <div class="modal-body">
  38. <t t-call="muk_preview.PreviewWrapper"/>
  39. </div>
  40. <div class="modal-footer">
  41. <t t-call="muk_preview.PreviewPager"/>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </t>
  47. <!--
  48. <t t-name="DocumentViewer">
  49. <div class="modal o_modal_fullscreen" tabindex="-1" data-keyboard="false" role="dialog">
  50. <t t-call="DocumentViewer.Content"/>
  51. <t t-if="widget.attachment.length !== 1">
  52. <a class="arrow arrow-left move_previous" href="#">
  53. <span class="fa fa-chevron-left" role="img" aria-label="Previous" title="Previous"/>
  54. </a>
  55. <a class="arrow arrow-right move_next" href="#">
  56. <span class="fa fa-chevron-right" role="img" aria-label="Next" title="Next"/>
  57. </a>
  58. </t>
  59. </div>
  60. </t>
  61. <div t-name="PreviewDialog" class="modal fade" tabindex="-1" data-backdrop="static" role="dialog" aria-hidden="true" t-att-id="_.uniqueId('modal_')">
  62. <div class="modal-dialog modal-lg">
  63. <div class="modal-content">
  64. <div class="modal-header preview-header">
  65. <button type="button" class="preview-dialog-btn preview-close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
  66. <button type="button" class="preview-dialog-btn preview-maximize" aria-hidden="true"><i class="fa fa-desktop"></i></button>
  67. <button type="button" class="preview-dialog-btn preview-minimize" aria-hidden="true"><i class="fa fa-minus"></i></button>
  68. <a class="preview-dialog-btn preview-download" aria-hidden="true" t-att-href="url"><i class="fa fa-download"></i></a>
  69. <button type="button" class="preview-dialog-btn preview-print" aria-hidden="true"><i class="fa fa-print"></i></button>
  70. <h4 class="modal-title preview-title"><t t-raw="title"/></h4>
  71. </div>
  72. <div class="modal-body preview-body">
  73. </div>
  74. <div class="modal-footer preview-footer">
  75. <button type="button" class="btn btn-primary" data-dismiss="modal">Ok</button>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. -->
  81. </templates>