summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2010-07-12 13:17:45 +0000
committerivan <ivan>2010-07-12 13:17:45 +0000
commit9569b2f1e6147f97bfacb41bc94c6605eb59206f (patch)
treef147e4cb6f0422b1345820d22ae4b78905364dae /httemplate/edit
parent184a1a9cfcd3beb1c4eabbdb2cfa5b5064684b9c (diff)
message templates, RT#8896
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/msg_template.html16
-rw-r--r--httemplate/edit/process/msg_template.html12
2 files changed, 28 insertions, 0 deletions
diff --git a/httemplate/edit/msg_template.html b/httemplate/edit/msg_template.html
new file mode 100644
index 000000000..6632d027a
--- /dev/null
+++ b/httemplate/edit/msg_template.html
@@ -0,0 +1,16 @@
+<% include( 'elements/edit.html',
+ 'name_singular' => 'template',
+ 'table' => 'msg_template',
+ 'viewall_dir' => 'browse',
+ 'fields' => [ 'msgname',
+ { field=>'body', type=>'htmlarea' },
+ ],
+ )
+%>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Edit templates')
+ || $FS::CurrentUser::CurrentUser->access_right('Edit global templates');
+
+</%init>
diff --git a/httemplate/edit/process/msg_template.html b/httemplate/edit/process/msg_template.html
new file mode 100644
index 000000000..5cf88bfad
--- /dev/null
+++ b/httemplate/edit/process/msg_template.html
@@ -0,0 +1,12 @@
+<% include( 'elements/process.html',
+ 'table' => 'msg_template',
+ 'viewall_dir' => 'browse',
+ )
+%>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Edit templates')
+ || $FS::CurrentUser::CurrentUser->access_right('Edit global templates');
+
+</%init>