{% extends '_layouts/cp' %} {% import '_includes/forms' as forms %} {% import 'verbb-base/_macros' as macros %} {% do view.registerAssetBundle('verbb\\formie\\web\\assets\\cp\\CpAsset') -%} {% set crumbs = [ { label: craft.formie.getPluginName() | t('formie'), url: url('formie') }, { label: 'Sent Notifications' | t('formie'), url: url('formie/sent-notifications') }, ] %} {% set form = sentNotification.getForm() %} {% if sentNotification.canDelete(currentUser) %} {% set fullPageForm = true %} {% endif %} {% set bodyClass = 'fui-body' %} {% set selectedSubnavItem = 'sentNotifications' %} {% hook 'formie.cp.sentNotifications.edit' %} {% block actionButton %} {% if sentNotification.canDelete(currentUser) %} {{ 'Delete' | t('app') }} {% endif %} {% endblock %} {% block content %} {% include 'formie/sent-notifications/_includes/preview' %} {% hook 'formie.cp.sentNotifications.edit.content' %} {% endblock %} {% block details %}
{% if sentNotification.status == 'success' %} {{ 'Success' | t('formie') }} {% else %} {{ 'Failed' | t('formie') }} {{ sentNotification.message }} {% endif %}
{% if sentNotification.canResend(currentUser) %}
{% endif %}
{% if sentNotification.form %} {{ sentNotification.form }} {% else %} {{ 'Deleted' | t('formie') }} {% endif %}
{% if sentNotification.submission %} {{ sentNotification.submission }} {% else %} {{ 'Deleted' | t('formie') }} {% endif %}
{% if sentNotification.notification %} {{ sentNotification.notification }} {% else %} {{ 'Deleted' | t('formie') }} {% endif %}
{% block meta %}
{{ 'Date Sent' | t('formie') }}
{{ sentNotification.dateCreated | datetime('short') }}
{% for key, item in sentNotification.info %}
{{ key | camel2words }}
{{ item }}
{% endfor %} {% endblock %}
{% hook 'formie.cp.sentNotifications.edit.details' %} {% endblock %}