{% extends "sprout-base-email/_layouts/base" %} {% import "_includes/forms" as forms %} {% set title = "Edit Notification"|t('sprout-base') %} {% set currentPluginHandle = craft.app.request.getSegment(1) %} {% set crumbs = [ { label: "Notifications", url: url(currentPluginHandle ~ '/notifications') }, ] %} {% set fullPageForm = true %} {% set saveShortcutRedirect = url(currentPluginHandle ~ '/settings/notifications/edit/{id}') %} {% if notificationEmail['id'] %} {% set notificationEmailId = notificationEmail['id'] %} {% else %} {% set notificationEmailId = '{id}' %} {% endif %} {% block actionButton %}
{% if notificationEmail['id'] is defined %} {% set dataSaveEditRedirect = cpUrl(currentPluginHandle ~ '/notifications/edit/' ~ notificationEmailId) %} {% endif %}
{% endblock %} {% set content %} {{ redirectInput(currentPluginHandle ~ '/notifications/edit/' ~ notificationEmailId) }} {% include "_includes/fieldlayoutdesigner" with { fieldLayout: notificationEmail.getFieldLayout() } only %} {% endset %}