metadata-modal.html.twig 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <div class="remodal" data-remodal-id="modal-admin-addon-media-metadata" data-remodal-options="hashTracking: false">
  2. <form method="post" onsubmit='return false;'>
  3. <div class="block block-section">
  4. <h1>
  5. <span class="header">{{ "PLUGIN_ADMIN_ADDON_MEDIA_METADATA.FORM_HEADER"|t }}</span><br>
  6. <span class="filename"></span>
  7. </h1>
  8. </div>
  9. {% for field in fields %}
  10. {% if field.type %}
  11. {% set value = data.value(field.name) %}
  12. <div class="block block-{{field.type}}">
  13. {% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
  14. </div>
  15. {% endif %}
  16. {% endfor %}
  17. <div class="button-bar">
  18. <div class="loading">
  19. {{ "PLUGIN_ADMIN_ADDON_MEDIA_METADATA.WRITING_DATA"|t }} … <i class="fa fa-spinner fa-spin"></i>
  20. </div>
  21. <button class="button primary">{{ "PLUGIN_ADMIN.SAVE"|tu }}</button>
  22. </div>
  23. </form>
  24. </div>
  25. <div class="remodal" data-remodal-id="modal-admin-addon-media-metadata-alert" data-remodal-options="hashTracking: false">
  26. <form method="post" onsubmit='return false;'>
  27. <h1>{{ "PLUGIN_ADMIN_ADDON_MEDIA_METADATA.WRITING_FAILED"|t }}</h1>
  28. <p class="bigger"></p>
  29. <div class="button-bar">
  30. <button data-remodal-action="confirm" class="button primary">{{ "PLUGIN_ADMIN.CONTINUE"|tu }}</button>
  31. </div>
  32. </form>
  33. </div>