summaryrefslogtreecommitdiff
path: root/httemplate/edit/msg_template.html
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-08-17 23:01:31 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-08-17 23:01:31 -0500
commit89525f062092c185344ec7318406b1c9086d1eda (patch)
tree120b247977073cbaf6e88bddbb557ed923b2a118 /httemplate/edit/msg_template.html
parentef2bc5dcb69e67077ce45a624c107894765e3907 (diff)
RT#18830: Upload file to message template
Diffstat (limited to 'httemplate/edit/msg_template.html')
-rw-r--r--httemplate/edit/msg_template.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/httemplate/edit/msg_template.html b/httemplate/edit/msg_template.html
index 7f3824127..df72c5b66 100644
--- a/httemplate/edit/msg_template.html
+++ b/httemplate/edit/msg_template.html
@@ -27,6 +27,7 @@
'no_submit' => $no_submit,
&>
<%init>
+use FS::template_image;
my $curuser = $FS::CurrentUser::CurrentUser;
@@ -345,10 +346,16 @@ function areyousure(url, message) {
<TD valign="top"><FORM name="dummy">
Substitutions: '
. $widget->html .
-'<BR>Click links to insert.
-<BR>Enclose substitutions and other Perl expressions in braces:
+'<P>Click above links to insert substitution code.</P>
+<P>
+Enclose substitutions and other Perl expressions in braces:
<BR>{ $name } = ExampleCo (Smith, John)
<BR>{ time2str("%D", time) } = '.time2str("%D", time).'
+</P>';
+$sidebar .= include('/elements/template_image-dialog.html',
+ 'callback' => 'insertHtml'
+ );
+$sidebar .= '<P><A HREF="javascript:insertImageDialog()">Insert Uploaded Image</A></P>
</FONT></TD>
';