JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
hover admin links top/right
[wfpl-cms.git] / admin_email_templates.html
1 <!DOCTYPE html>
2
3 <html lang="en">
4 <head>
5         <meta charset="utf-8" />
6         <title><!--~$title show {~-->Email templates<!--~}~--></title>
7 </head>
8
9 <body>
10 <!--~$body show {~-->
11
12         <!--~form {~-->
13                 <h2>Edit email template "~title html~"</h2>
14
15                 <p>~description htmlbrtab~</p>
16
17                 <form action="admin_email_templates" method="post">
18                         <div class="caption">Notes</div>
19                         <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>
20                         <div class="field"><textarea rows="6" cols="22" name="notes">~notes html~</textarea></div>
21
22                         <div class="caption">"From:" email address (required)</div>
23                         <div class="field_notes">When this email template is used, the email generated will be sent <strong>from</strong> this address.</div>
24                         <div class="field_notes">To supply a name also, use this <em>exact</em> format: <code>John Smith &lt;john@example.com&gt;</code></div>
25                         <div class="field"><input type="text" name="from_addr" value="~from_addr attr~"></div>
26
27                         <!--~want_to_addr {~-->
28                                 <div class="caption">"To:" email address (required)</div>
29                                 <div class="field_notes">When this email template is used, the email generated will sent <strong>to</strong> this address.</div>
30                                 <div class="field_notes">To supply a name also, use this <em>exact</em> format: <code>John Smith &lt;john@example.com&gt;</code></div>
31                                 <div class="field"><input type="text" name="to_addr" value="~to_addr attr~"></div>
32                         <!--~}~-->
33
34                         <div class="caption">"Cc:" email address (optional)</div>
35                         <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>
36                         <div class="field_notes">To supply a name also, use this <em>exact</em> format: <code>John Smith &lt;john@example.com&gt;</code></div>
37                         <div class="field"><input type="text" name="cc_addr" value="~cc_addr attr~"></div>
38
39                         <div class="caption">"Bcc:" email address (optional)</div>
40                         <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>
41                         <div class="field_notes">To supply a name also, use this <em>exact</em> format: <code>John Smith &lt;john@example.com&gt;</code></div>
42                         <div class="field"><input type="text" name="bcc_addr" value="~bcc_addr attr~"></div>
43
44                         <div class="caption">Template Variables</div>
45                         <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:
46                                 <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd" style="margin-top: 5px">
47                                         <tr>
48                                                 <th>Variable</th>
49                                                 <th>Description</th>
50                                         </tr>
51                                         <tr>
52                                                 <td>~~~~</td>
53                                                 <td>Puts a single ~~ in the email. You <em>must</em> do this if you want a ~~ in your email.</td>
54                                         </tr>
55                                         <!--~variables {~-->
56                                                 <tr>
57                                                         <td>~~~0~~~</td>
58                                                         <td>~1~</td>
59                                                 </tr>
60                                         <!--~}~-->
61                                 </table>
62                         </div>
63
64                         <div class="caption">Subject</div>
65                         <div class="field_notes">This field uses template variables, see above.</div>
66                         <div class="field"><input type="text" name="subject" value="~subject attr~"></div>
67
68                         <div class="caption">Message Body</div>
69                         <div class="field_notes">This field uses template variables, see above.</div>
70                         <div class="field"><textarea rows="9" cols="22" name="content">~content html~</textarea></div>
71
72                         <div class="caption"></div>
73                         <div class="field">
74                                 <input type="hidden" name="slug" value="~slug attr~">
75                                 <input type="submit" name="save" value="Save">
76                         </div>
77
78                 </form>
79
80                 <div class="caption">&nbsp;</div>
81                 <div class="field"><a href="admin_email_templates~id {~?id=~id~~}~">Cancel</a></div>
82         <!--~}~-->
83
84         <!--~listings {~-->
85                 <h2>Email Templates</h2>
86
87                 <p>Click one to edit:</p>
88
89                 <!--~rows once_if {~-->
90                         <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
91                                 <tr>
92                                         <th><a href="?sort=~sorting-by-title~title">Template Title</a></th>
93                                         <th><a href="?sort=~sorting-by-subject~subject">Email Subject</a></th>
94                                 </tr><!--~rows {~-->
95                                 <tr>
96                                         <td class="listing"><a href="admin_email_templates?slug=~slug~">~title html~<!--~title empty {~--><em>(blank)</em><!--~}~--></a></td>
97                                         <td class="listing"><a href="admin_email_templates?slug=~slug~">~subject html~<!--~subject empty {~--><em>(blank)</em><!--~}~--></a></td>
98                                 </tr><!--~}~-->
99
100                         </table>
101                 <!--~}~-->
102         <!--~}~-->
103
104 <!--~}~-->
105 </body>
106 </html>