You are here

webform-submission-information.html.twig in Webform 8.5

Same filename and directory in other branches
  1. 6.x templates/webform-submission-information.html.twig

Default theme implementation for webform submission information.

Available variables:

  • serial: The serial number of the submission entity.
  • sid: The ID of the submission entity.
  • uuid: The UUID of the submission entity.
  • token: A secure token used to look up a submission.
  • uri: The URI the user submitted the webform.
  • created: The time that the submission was first saved.
  • completed: The time that the submission was completed.
  • changed: The time that the submission was saved.
  • in_draft: Is this a draft of the submission?
  • current_page: The current wizard page.
  • remote_addr: The IP address of the user that submitted the webform.
  • submitted_by: The user that submitted the webform.
  • submitted_to: Link to the submission's URI.
  • langcode: The submission language code.
  • locked: A flag that indicates a locked submission.
  • sticky: A flag that indicate the status of the submission.
  • notes: Administrative notes about the submission.
  • webform: The associated webform.
  • token_update: The tokenize URL used to update the submission.
  • delete: Link to delete the submission.

File

templates/webform-submission-information.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for webform submission information.
  5. *
  6. * Available variables:
  7. * - serial: The serial number of the submission entity.
  8. * - sid: The ID of the submission entity.
  9. * - uuid: The UUID of the submission entity.
  10. * - token: A secure token used to look up a submission.
  11. * - uri: The URI the user submitted the webform.
  12. * - created: The time that the submission was first saved.
  13. * - completed: The time that the submission was completed.
  14. * - changed: The time that the submission was saved.
  15. * - in_draft: Is this a draft of the submission?
  16. * - current_page: The current wizard page.
  17. * - remote_addr: The IP address of the user that submitted the webform.
  18. * - submitted_by: The user that submitted the webform.
  19. * - submitted_to: Link to the submission's URI.
  20. * - langcode: The submission language code.
  21. * - locked: A flag that indicates a locked submission.
  22. * - sticky: A flag that indicate the status of the submission.
  23. * - notes: Administrative notes about the submission.
  24. * - webform: The associated webform.
  25. * - token_update: The tokenize URL used to update the submission.
  26. * - delete: Link to delete the submission.
  27. *
  28. * @see template_preprocess_webform_submission_information()
  29. *
  30. * @ingroup themeable
  31. */
  32. #}
  33. {% if submissions_view %}
  34. <div><b>{{ 'Submission Number'|t }}:</b> {{ serial }}</div>
  35. <div><b>{{ 'Submission ID'|t }}:</b> {{ sid }}</div>
  36. <div><b>{{ 'Submission UUID'|t }}:</b> {{ uuid }}</div>
  37. {% if uri %}
  38. <div><b>{{ 'Submission URI'|t }}:</b> {{ uri }}</div>
  39. {% endif %}
  40. {% if token_view %}
  41. <div><b>{{ 'Submission View'|t }}:</b> {{ token_view }}</div>
  42. {% endif %}
  43. {% if token_update %}
  44. <div><b>{{ 'Submission Update'|t }}:</b> {{ token_update }}</div>
  45. {% endif %}
  46. {% if token_delete %}
  47. <div><b>{{ 'Submission Delete'|t }}:</b> {{ token_delete }}</div>
  48. {% endif %}
  49. <br />
  50. <div><b>{{ 'Created'|t }}:</b> {{ created }}</div>
  51. <div><b>{{ 'Completed'|t }}:</b> {{ completed }}</div>
  52. <div><b>{{ 'Changed'|t }}:</b> {{ changed }}</div>
  53. <br />
  54. <div><b>{{ 'Remote IP address'|t }}:</b> {{ remote_addr }}</div>
  55. <div><b>{{ 'Submitted by'|t }}:</b> {{ submitted_by }}</div>
  56. <div><b>{{ 'Language'|t }}:</b> {{ language }}</div>
  57. <br />
  58. <div><b>{{ 'Is draft'|t }}:</b> {{ is_draft }}</div>
  59. {% if current_page %}
  60. <div><b>{{ 'Current page'|t }}:</b> {{ current_page }}</div>
  61. {% endif %}
  62. <div><b>{{ 'Webform'|t }}:</b> {{ webform }}</div>
  63. {% if submitted_to %}
  64. <div><b>{{ 'Submitted to'|t }}:</b> {{ submitted_to }}</div>
  65. {% endif %}
  66. {% if sticky or locked or notes %}
  67. <br />
  68. {% if sticky %}
  69. <div><b>{{ 'Flagged'|t }}:</b> {{ sticky }}</div>
  70. {% endif %}
  71. {% if locked %}
  72. <div><b>{{ 'Locked'|t }}:</b> {{ locked }}</div>
  73. {% endif %}
  74. {% if notes %}
  75. <div><b>{{ 'Notes'|t }}:</b><br/>
  76. <pre>{{ notes }}</pre>
  77. </div>
  78. {% endif %}
  79. {% endif %}
  80. {% else %}
  81. <div><b>{{ 'Submission Number'|t }}:</b> {{ serial }}</div>
  82. <div><b>{{ 'Created'|t }}:</b> {{ created }}</div>
  83. {% endif %}
  84. {% if delete %}
  85. <br/>
  86. <div>{{ delete }}</div>
  87. {% endif %}