'~setting~'
' %}
{{ "This is being overridden by the {setting} config setting in your {file} config file."|t('contact-form-extensions', {
diff --git a/src/templates/submissions/_show.twig b/src/templates/submissions/_show.twig
index d88590e..5f21491 100644
--- a/src/templates/submissions/_show.twig
+++ b/src/templates/submissions/_show.twig
@@ -2,54 +2,73 @@
{% import "_includes/forms" as forms %}
{% set fullPageForm = true %}
-{% set title = submission.dateCreated|date('d/m/Y H:i') %}
+{% set title = submission ? submission.dateCreated|date('d/m/Y H:i') : "" %}
+
+{# {% hook "cp.contactFormSubmission.show" %} #}
+
+{% if crumbs is not defined %}
+ {% if submission %}
+ {% set crumbs = [
+ { label: craft.contactFormExtensions.name, url: url('contact-form-extensions') },
+ { label: submission.subject, url: '' }
+ ] %}
+
+ {% else %}
+ {% set crumbs = [
+ { label: craft.contactFormExtensions.name, url: url('contact-form-extensions') }
+ ] %}
+ {% endif %}
+{% endif %}
-{% hook "cp.contactFormSubmission.show" %}
{% block header %}
{{ block('pageTitle') }}
- {{ block('contextMenu') }}
-
- {{ block('actionButton') }}
+ {# {{ block('contextMenu') }} #}
+ {# #}
+ {# {{ block('actionButton') }} #}
{% endblock %}
-{% block contextMenu %}
+{# {% block contextMenu %}
{% endblock %}
{% block actionButton %}
-
-{% endblock %}
-
+{% endblock %} #}
{% block content %}
{{ submission.subject }}
-{{ submission.fromName }}
-{{ submission.fromEmail }}
- {% for key, value in messageObject %} -{{ item|nl2br }}
- {% endfor %} - {% else %} -{{ value|nl2br }}
- {% endif %} - {% endfor %} + {% if submission %} +{{ submission.subject }}
+{{ submission.fromName }}
+{{ submission.fromEmail }}
+ {% for key, value in messageObject %} + {% if key != "formName" and key != "toEmail" and key != "confirmationSubject" and key != "confirmationTemplate" and key != "notificationTemplate" and key != "disableRecaptcha" and key != "disableConfirmation" %} +{{ item|nl2br }}
+ {% endfor %} + {% else %} +{{ value|nl2br }}
+ {% endif %} + {% endif %} + {% endfor %} + {% else %} +