--- /dev/null
+<!DOCTYPE html>
+
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <title><!--~$title show {~-->Email templates<!--~}~--></title>
+</head>
+
+<body>
+<!--~$body show {~-->
+
+ <!--~form {~-->
+ <h2>Edit email template "~title html~"</h2>
+
+ <p>~description htmlbrtab~</p>
+
+ <form action="admin_email_templates" method="post">
+ <div class="caption">Notes</div>
+ <div class="field_notes">This is here just for admins to save any kind of notes (for example clarifications on when/how this email template is used, or notes on what the template was like previously.)</div>
+ <div class="field"><textarea rows="6" cols="22" name="notes">~notes html~</textarea></div>
+
+ <div class="caption">"From:" email address (required)</div>
+ <div class="field_notes">When this email template is used, the email generated will be sent <strong>from</strong> this address.</div>
+ <div class="field_notes">To supply a name also, use this <em>exact</em> format: <code>John Smith <john@example.com></code></div>
+ <div class="field"><input type="text" name="from_addr" value="~from_addr attr~"></div>
+
+ <!--~want_to_addr {~-->
+ <div class="caption">"To:" email address (required)</div>
+ <div class="field_notes">When this email template is used, the email generated will sent <strong>to</strong> this address.</div>
+ <div class="field_notes">To supply a name also, use this <em>exact</em> format: <code>John Smith <john@example.com></code></div>
+ <div class="field"><input type="text" name="to_addr" value="~to_addr attr~"></div>
+ <!--~}~-->
+
+ <div class="caption">"Cc:" email address (optional)</div>
+ <div class="field_notes">If you enter an email address here, it will be added to the "Cc:" header, that is, it will get a copy of every email that uses this template. Note that the "Cc:" header is visible to all recipients, so this feature should probably only be used for testing.</div>
+ <div class="field_notes">To supply a name also, use this <em>exact</em> format: <code>John Smith <john@example.com></code></div>
+ <div class="field"><input type="text" name="cc_addr" value="~cc_addr attr~"></div>
+
+ <div class="caption">"Bcc:" email address (optional)</div>
+ <div class="field_notes">If you enter an email address here, it will be added to the "Bcc:" header, that is, it will get a copy of every email that uses this template. This email address will <em>not</em> be visible to recipients, and will not be included in replies.</div>
+ <div class="field_notes">To supply a name also, use this <em>exact</em> format: <code>John Smith <john@example.com></code></div>
+ <div class="field"><input type="text" name="bcc_addr" value="~bcc_addr attr~"></div>
+
+ <div class="caption">Template Variables</div>
+ <div class="field">You can place variables into the Subject and Message Body fields. This can be used, for example, to insert the recipients username into the message. Below is a table showing the variables that are available for this particular email template:
+ <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd" style="margin-top: 5px">
+ <tr>
+ <th>Variable</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td>~~~~</td>
+ <td>Puts a single ~~ in the email. You <em>must</em> do this if you want a ~~ in your email.</td>
+ </tr>
+ <!--~variables {~-->
+ <tr>
+ <td>~~~0~~~</td>
+ <td>~1~</td>
+ </tr>
+ <!--~}~-->
+ </table>
+ </div>
+
+ <div class="caption">Subject</div>
+ <div class="field_notes">This field uses template variables, see above.</div>
+ <div class="field"><input type="text" name="subject" value="~subject attr~"></div>
+
+ <div class="caption">Message Body</div>
+ <div class="field_notes">This field uses template variables, see above.</div>
+ <div class="field"><textarea rows="9" cols="22" name="content">~content html~</textarea></div>
+
+ <div class="caption"></div>
+ <div class="field">
+ <input type="hidden" name="slug" value="~slug attr~">
+ <input type="submit" name="save" value="Save">
+ </div>
+
+ </form>
+
+ <div class="caption"> </div>
+ <div class="field"><a href="admin_email_templates~id {~?id=~id~~}~">Cancel</a></div>
+ <!--~}~-->
+
+ <!--~listings {~-->
+ <h2>Email Templates</h2>
+
+ <p>Click one to edit:</p>
+
+ <!--~rows once_if {~-->
+ <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
+ <tr>
+ <th><a href="?sort=~sorting-by-title~title">Template Title</a></th>
+ <th><a href="?sort=~sorting-by-subject~subject">Email Subject</a></th>
+ </tr><!--~rows {~-->
+ <tr>
+ <td class="listing"><a href="admin_email_templates?slug=~slug~">~title html~<!--~title empty {~--><em>(blank)</em><!--~}~--></a></td>
+ <td class="listing"><a href="admin_email_templates?slug=~slug~">~subject html~<!--~subject empty {~--><em>(blank)</em><!--~}~--></a></td>
+ </tr><!--~}~-->
+
+ </table>
+ <!--~}~-->
+ <!--~}~-->
+
+<!--~}~-->
+</body>
+</html>