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.

42 lines
1.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.FieldBinaryPreview">
  19. <div class="mk_field_preview" aria-atomic="true">
  20. <div t-if="widget.mode !== 'readonly'" class="mk_field_preview_controls mb8" role="toolbar" aria-label="Controls">
  21. <span class="o_form_binary_progress">Uploading...</span>
  22. <button type="button" class="btn btn-primary o_select_file_button" title="Select">Upload your file</button>
  23. <button class="btn btn-secondary fa fa-pencil o_select_file_button" title="Select" aria-label="Select" type="button"></button>
  24. <button class="btn btn-secondary fa fa-trash-o o_clear_file_button" title="Clear" aria-label="Clear" type="button"></button>
  25. </div>
  26. <div class="mk_field_preview_container"/>
  27. <t t-call="HiddenInputPDFFile">
  28. <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
  29. <t t-set="fileupload_style" t-translation="off">overflow-x: hidden</t>
  30. </t>
  31. </div>
  32. </t>
  33. </templates>