{% extends "sprout-base-email/_layouts/base" %} {% import "_includes/forms" as forms %} {% import "sprout-base-fields/_includes/forms" as sproutFields %} {% if notificationEmail.id is null %} {% set notificationId = 'new' %} {% else %} {% set notificationId = notificationEmail.id %} {% endif %} {% set currentPluginHandle = craft.app.request.getSegment(1) %} {% set crumbs = [ { label: "Notifications"|t('sprout-base'), url: url(currentPluginHandle ~ '/notifications') }, { label: "Settings"|t('sprout-base'), url: url(currentPluginHandle ~ '/settings/notifications/edit/' ~ notificationId) }, ] %} {% set title = notificationEmail is defined ? notificationEmail.title : 'Create a new Notification Email'|t('sprout-base') %} {% set fullPageForm = true %} {% set saveShortcutRedirect = url(currentPluginHandle ~ '/notifications/edit/' ~ notificationId) %} {% set mailer = notificationEmail.getMailer() %} {% block header %} {{ block('pageTitle') }} {{ block('contextMenu') }}
{% if showPreviewBtn or shareUrl is not null %} {% if showPreviewBtn %}