54 $title =
"Edit Email Template";
58 $title =
"Add an Email Template";
66 $form->annotate(
"recipients",
"(separate email addresses with a comma ',')");
67 $form->annotate(
"subject",
"Codes must be enclosed in brackets '[' and ']'.");
68 $form->annotate(
"message",
"Codes must be enclosed in brackets '[' and ']'.");
69 $form->unique(
"name",
"An email template already exists with that title. Please choose a different title.");
70 $form->required(
"name",
"recipients",
"subject",
"message");
71 $form->button(
"Cancel",
"/admin/email_template_list");
85 $warning =
" <b><i>Warning</i></b>: name changes to templates require code updates.";
87 $form->annotate(
"name",
"Please use a code-style name with lowercase letters and underscores between words (e.g., application_notification).$warning");
92 redirect(
"/admin/email_template_list");
96 echo
"<h3>This form allows you to create or edit an email template.</h3>\n";
101 <a
class=
"button" href=
"#" onclick=
"new EmailManager().showAdvancedFeatures(); return false">Advanced Features</a>
Email recipient list validator.
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
$method
Pull out a simple reference to the request method.