Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git] / rt / etc / upgrade / 4.1.9 / content
1 use strict;
2 use warnings;
3
4 # New HTML templates
5
6 our @Templates = (
7     {  Queue       => '0',
8        Name        => 'Autoreply in HTML',                              # loc
9        Description => 'HTML Autoresponse template',                     # loc
10        Content     => q[Subject: AutoReply: {$Ticket->Subject}
11 Content-Type: text/html
12
13 <p>Greetings,</p>
14
15 <p>This message has been automatically generated in response to the
16 creation of a trouble ticket regarding <b>{$Ticket->Subject()}</b>,
17 a summary of which appears below.</p>
18
19 <p>There is no need to reply to this message right now.  Your ticket has been
20 assigned an ID of <b>{$Ticket->SubjectTag}</b>.</p>
21
22 <p>Please include the string <b>{$Ticket->SubjectTag}</b>
23 in the subject line of all future correspondence about this issue. To do so,
24 you may reply to this message.</p>
25
26 <p>Thank you,<br/>
27 {$Ticket->QueueObj->CorrespondAddress()}</p>
28
29 <hr/>
30 {$Transaction->Content(Type => 'text/html')}
31 ],
32     },
33     {  Queue       => '0',
34        Name        => 'Transaction in HTML',          # loc
35        Description => 'HTML transaction template',    # loc
36        Content     => 'RT-Attach-Message: yes
37 Content-Type: text/html
38
39 <b>{$Transaction->CreatedAsString}: Request <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{$Ticket->id}</a> was acted upon by {$Transaction->CreatorObj->Name}.</b>
40 <br>
41 <table border="0">
42 <tr><td align="right"><b>Transaction:</b></td><td>{$Transaction->Description}</td></tr>
43 <tr><td align="right"><b>Queue:</b></td><td>{$Ticket->QueueObj->Name}</td></tr>
44 <tr><td align="right"><b>Subject:</b></td><td>{$Transaction->Subject || $Ticket->Subject || "(No subject given)"} </td></tr>
45 <tr><td align="right"><b>Owner:</b></td><td>{$Ticket->OwnerObj->Name}</td></tr>
46 <tr><td align="right"><b>Requestors:</b></td><td>{$Ticket->RequestorAddresses}</td></tr>
47 <tr><td align="right"><b>Status:</b></td><td>{$Ticket->Status}</td></tr>
48 <tr><td align="right"><b>Ticket URL:</b></td><td><a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}</a></td></tr>
49 </table>
50 <br/>
51 <br/>
52 {$Transaction->Content( Type => "text/html")}
53 '
54     },
55     {  Queue       => '0',
56        Name        => 'Admin Correspondence in HTML',                     # loc
57        Description => 'HTML admin correspondence template',    # loc
58        Content     => 'RT-Attach-Message: yes
59 Content-Type: text/html
60
61 Ticket URL: <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}</a>
62 <br />
63 <br />
64 {$Transaction->Content(Type => "text/html");}
65 '
66     },
67     {  Queue       => '0',
68        Name        => 'Correspondence in HTML',                 # loc
69        Description => 'HTML correspondence template',           # loc
70        Content     => 'RT-Attach-Message: yes
71 Content-Type: text/html
72
73 {$Transaction->Content( Type => "text/html")}
74 '
75     },
76     {  Queue       => '0',
77        Name        => 'Admin Comment in HTML',                  # loc
78        Description => 'HTML admin comment template',            # loc
79        Content     => 
80 'Subject: [Comment] {my $s=($Transaction->Subject||$Ticket->Subject); $s =~ s/\\[Comment\\]\\s*//g; $s =~ s/^Re:\\s*//i; $s;}
81 RT-Attach-Message: yes
82 Content-Type: text/html
83
84 <p>This is a comment about <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">ticket {$Ticket->id}</a>. It is not sent to the Requestor(s):</p>
85
86 {$Transaction->Content(Type => "text/html")}
87 '
88     },
89     {  Queue       => '0',
90        Name        => 'Status Change in HTML',              # loc
91        Description => 'HTML Ticket status changed',              # loc
92        Content     => 'Subject: Status Changed to: {$Transaction->NewValue}
93 Content-Type: text/html
94
95 <a href="{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}">{RT->Config->Get("WebURL")}Ticket/Display.html?id={$Ticket->id}</a>
96 <br/>
97 <br/>
98 {$Transaction->Content(Type => "text/html")}
99 '
100     },
101     {  Queue       => '0',
102        Name        => 'Resolved in HTML',               # loc
103        Description => 'HTML Ticket Resolved',           # loc
104        Content     => 'Subject: Resolved: {$Ticket->Subject}
105 Content-Type: text/html
106
107 <p>According to our records, your request has been resolved.  If you have any further questions or concerns, please respond to this message.</p>
108 '
109     },
110     {  Queue       => '___Approvals',
111        Name        => "New Pending Approval in HTML",                                   # loc
112        Description => "Notify Owners and AdminCcs of new items pending their approval", # loc
113        Content     => 'Subject: New Pending Approval: {$Ticket->Subject}
114 Content-Type: text/html
115
116 <p>Greetings,</p>
117
118 <p>There is a new item pending your approval: <b>{$Ticket->Subject()}</b>,
119 a summary of which appears below.</p>
120
121 <p>Please <a href="{RT->Config->Get(\'WebURL\')}Approvals/Display.html?id={$Ticket->id}">approve
122 or reject this ticket</a>, or visit the <a href="{RT->Config->Get(\'WebURL\')}Approvals/">approvals
123 overview</a> to batch-process all your pending approvals.</p>
124
125 <hr />
126 {$Transaction->Content()}
127 '
128     },
129     {  Queue       => '___Approvals',
130        Name        => "Approval Passed in HTML",    # loc
131        Description =>
132          "Notify Requestor of their ticket has been approved by some approver", # loc
133        Content => 'Subject: Ticket Approved: {$Ticket->Subject}
134 Content-Type: text/html
135
136 <p>Greetings,</p>
137
138 <p>Your ticket has been approved by <b>{ eval { $Approver->Name } }</b>.
139 Other approvals may be pending.</p>
140
141 <p>Approver\'s notes:</p>
142 <blockquote>{ $Notes }</blockquote>
143 '
144     },
145     {  Queue       => '___Approvals',
146        Name        => "All Approvals Passed in HTML",    # loc
147        Description =>
148          "Notify Requestor of their ticket has been approved by all approvers", # loc
149        Content => 'Subject: Ticket Approved: {$Ticket->Subject}
150 Content-Type: text/html
151
152 <p>Greetings,</p>
153
154 <p>Your ticket has been approved by <b>{ eval { $Approver->Name } }</b>.
155 Its Owner may now start to act on it.</p>
156
157 <p>Approver\'s notes:</p>
158 <blockquote>{ $Notes }</blockquote>
159 '
160     },
161     {  Queue       => '___Approvals',
162        Name        => "Approval Rejected in HTML",    # loc
163        Description =>
164          "Notify Owner of their rejected ticket", # loc
165        Content => 'Subject: Ticket Rejected: {$Ticket->Subject}
166 Content-Type: text/html
167
168 <p>Greetings,</p>
169
170 <p>Your ticket has been rejected by <b>{ eval { $Approver->Name } }</b>.</p>
171
172 <p>Approver\'s notes:</p>
173 <blockquote>{ $Notes }</blockquote>
174 '
175     },
176     {  Queue       => '___Approvals',
177        Name        => "Approval Ready for Owner in HTML",    # loc
178        Description =>
179          "Notify Owner of their ticket has been approved and is ready to be acted on", # loc
180        Content => 'Subject: Ticket Approved: {$Ticket->Subject}
181 Content-Type: text/html
182
183 <p>Greetings,</p>
184
185 <p>The ticket has been approved, you may now start to act on it.</p>
186
187 '
188     },
189 );
190