configtemplate.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {% extends 'generic/object.html' %}
  2. {% load helpers %}
  3. {% load plugins %}
  4. {% load i18n %}
  5. {% block content %}
  6. <div class="row">
  7. <div class="col col-12 col-md-6">
  8. <div class="card">
  9. <h2 class="card-header">{% trans "Config Template" %}</h2>
  10. <table class="table table-hover attr-table">
  11. <tr>
  12. <th scope="row">{% trans "Name" %}</th>
  13. <td>{{ object.name }}</td>
  14. </tr>
  15. <tr>
  16. <th scope="row">{% trans "Description" %}</th>
  17. <td>{{ object.description|placeholder }}</td>
  18. </tr>
  19. <tr>
  20. <th scope="row">{% trans "MIME Type" %}</th>
  21. <td>{{ object.mime_type|placeholder }}</td>
  22. </tr>
  23. <tr>
  24. <th scope="row">{% trans "File Name" %}</th>
  25. <td>{{ object.file_name|placeholder }}</td>
  26. </tr>
  27. <tr>
  28. <th scope="row">{% trans "File Extension" %}</th>
  29. <td>{{ object.file_extension|placeholder }}</td>
  30. </tr>
  31. <tr>
  32. <th scope="row">{% trans "Attachment" %}</th>
  33. <td>{% checkmark object.as_attachment %}</td>
  34. </tr>
  35. <tr>
  36. <th scope="row">{% trans "Data Source" %}</th>
  37. <td>
  38. {% if object.data_source %}
  39. <a href="{{ object.data_source.get_absolute_url }}">{{ object.data_source }}</a>
  40. {% else %}
  41. {{ ''|placeholder }}
  42. {% endif %}
  43. </td>
  44. </tr>
  45. <tr>
  46. <th scope="row">{% trans "Data File" %}</th>
  47. <td>
  48. {% if object.data_file %}
  49. <a href="{{ object.data_file.get_absolute_url }}">{{ object.data_file }}</a>
  50. {% elif object.data_path %}
  51. <div class="float-end text-warning">
  52. <i class="mdi mdi-alert" title="{% trans "The data file associated with this object has been deleted" %}."></i>
  53. </div>
  54. {{ object.data_path }}
  55. {% else %}
  56. {{ ''|placeholder }}
  57. {% endif %}
  58. </td>
  59. </tr>
  60. <tr>
  61. <th scope="row">{% trans "Data Synced" %}</th>
  62. <td>{{ object.data_synced|placeholder }}</td>
  63. </tr>
  64. <tr>
  65. <th scope="row">{% trans "Auto Sync Enabled" %}</th>
  66. <td>{% checkmark object.auto_sync_enabled %}</td>
  67. </tr>
  68. </table>
  69. </div>
  70. {% include 'inc/panels/tags.html' %}
  71. {% plugin_left_page object %}
  72. </div>
  73. <div class="col col-12 col-md-6">
  74. <div class="card">
  75. <h2 class="card-header">{% trans "Environment Parameters" %}</h2>
  76. <div class="card-body">
  77. {% if object.environment_params %}
  78. <pre>{{ object.environment_params|json }}</pre>
  79. {% else %}
  80. <span class="text-muted">{% trans "None" %}</span>
  81. {% endif %}
  82. </div>
  83. </div>
  84. {% plugin_right_page object %}
  85. </div>
  86. </div>
  87. <div class="row">
  88. <div class="col col-md-12">
  89. <div class="card">
  90. <h2 class="card-header">{% trans "Template" %}</h2>
  91. <div class="card-body">
  92. {% include 'inc/sync_warning.html' %}
  93. <pre>{{ object.template_code }}</pre>
  94. </div>
  95. </div>
  96. {% plugin_full_width_page object %}
  97. </div>
  98. </div>
  99. {% endblock %}