2
0

exporttemplate.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {% extends 'generic/object.html' %}
  2. {% load helpers %}
  3. {% load plugins %}
  4. {% block breadcrumbs %}
  5. {{ block.super }}
  6. <li class="breadcrumb-item"><a href="{% url 'extras:exporttemplate_list' %}?content_type={{ object.content_type.pk }}">{{ object.content_type }}</a></li>
  7. {% endblock %}
  8. {% block content %}
  9. <div class="row mb-3">
  10. <div class="col col-md-5">
  11. <div class="card">
  12. <h5 class="card-header">
  13. Export Template
  14. </h5>
  15. <div class="card-body">
  16. <table class="table table-hover attr-table">
  17. <tr>
  18. <th scope="row">Content Type</th>
  19. <td>{{ object.content_type }}</td>
  20. </tr>
  21. <tr>
  22. <th scope="row">Name</th>
  23. <td>{{ object.name }}</td>
  24. </tr>
  25. <tr>
  26. <th scope="row">Description</th>
  27. <td>{{ object.description|placeholder }}</td>
  28. </tr>
  29. <tr>
  30. <th scope="row">MIME Type</th>
  31. <td>{{ object.mime_type|placeholder }}</td>
  32. </tr>
  33. <tr>
  34. <th scope="row">File Extension</th>
  35. <td>{{ object.file_extension|placeholder }}</td>
  36. </tr>
  37. <tr>
  38. <th scope="row">Attachment</th>
  39. <td>
  40. {% if object.as_attachment %}
  41. <i class="mdi mdi-check-bold text-success" title="Yes"></i>
  42. {% else %}
  43. <i class="mdi mdi-close-thick text-danger" title="No"></i>
  44. {% endif %}
  45. </td>
  46. </tr>
  47. </table>
  48. </div>
  49. </div>
  50. {% plugin_left_page object %}
  51. </div>
  52. <div class="col col-md-7">
  53. <div class="card">
  54. <h5 class="card-header">
  55. Template
  56. </h5>
  57. <div class="card-body">
  58. <pre>{{ object.template_code }}</pre>
  59. </div>
  60. </div>
  61. {% plugin_right_page object %}
  62. </div>
  63. </div>
  64. <div class="row">
  65. <div class="col col-md-12">
  66. {% plugin_full_width_page object %}
  67. </div>
  68. </div>
  69. {% endblock %}