You are here

yamlform-submission-information.html.twig in YAML Form 8

Default theme implementation from form submission information.

Available variables: @todo Add variables.

File

templates/yamlform-submission-information.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation from form submission information.
  5. *
  6. * Available variables:
  7. * @todo Add variables.
  8. *
  9. * @see template_preprocess_yamlform_submission_information()
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. <details data-yamlform-element-id="{{ yamlform_id }}--submission_information"{% if open %} open="open"{% endif %}>
  15. <summary role="button"{% if open %} aria-expanded="true" aria-pressed="true"{% endif %}>{{ 'Submission information'|t }}</summary>
  16. <div class="details-wrapper">
  17. {% if submissions_view %}
  18. <div><b>{{ 'Submission Number'|t }}:</b> {{ serial }}</div>
  19. <div><b>{{ 'Submission ID'|t }}:</b> {{ sid }}</div>
  20. <div><b>{{ 'Submission UUID'|t }}:</b> {{ uuid }}</div>
  21. {% if uri %}
  22. <div><b>{{ 'Submission URI'|t }}:</b> {{ uri }}</div>
  23. {% endif %}
  24. {% if token_update %}
  25. <div><b>{{ 'Submission Update'|t }}:</b> {{ token_update }}</div>
  26. {% endif %}
  27. <br/>
  28. <div><b>{{ 'Created'|t }}:</b> {{ created }}</div>
  29. <div><b>{{ 'Completed'|t }}:</b> {{ completed }}</div>
  30. <div><b>{{ 'Changed'|t }}:</b> {{ changed }}</div>
  31. <br/>
  32. <div><b>{{ 'Remote IP address'|t }}:</b> {{ remote_addr }}</div>
  33. <div><b>{{ 'Submitted by'|t }}:</b> {{ submitted_by }}</div>
  34. <div><b>{{ 'Language'|t }}:</b> {{ language }}</div>
  35. <br/>
  36. <div><b>{{ 'Is draft'|t }}:</b> {{ is_draft }}</div>
  37. {% if current_page %}
  38. <div><b>{{ 'Current page'|t }}:</b> {{ current_page }}</div>
  39. {% endif %}
  40. <div><b>{{ 'Form'|t }}:</b> {{ form }}</div>
  41. {% if submitted_to %}
  42. <div><b>{{ 'Submitted to'|t }}:</b> {{ submitted_to }}</div>
  43. {% endif %}
  44. {% if sticky or notes %}
  45. <br/>
  46. {% if sticky %}
  47. <div><b>{{ 'Flagged'|t }}:</b> {{ sticky }}</div>
  48. {% endif %}
  49. {% if notes %}
  50. <div><b>{{ 'Notes'|t }}:</b> {{ notes }}</div>
  51. {% endif %}
  52. {% endif %}
  53. {% else %}
  54. <div><b>{{ 'Submission ID'|t }}:</b> {{ sid }}</div>
  55. <div><b>{{ 'Created'|t }}:</b> {{ created }}</div>
  56. {% endif %}
  57. </div>
  58. </details>