summaryrefslogtreecommitdiff
path: root/httemplate/browse/msg_template.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/browse/msg_template.html')
-rw-r--r--httemplate/browse/msg_template.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/httemplate/browse/msg_template.html b/httemplate/browse/msg_template.html
new file mode 100644
index 0000000..0cd33c7
--- /dev/null
+++ b/httemplate/browse/msg_template.html
@@ -0,0 +1,28 @@
+<% include( 'elements/browse.html',
+ 'title' => 'Message templates',
+ 'name_singular' => 'template',
+ 'menubar' => [ 'Add a new template' =>
+ $p.'edit/msg_template.html',
+ ],
+ 'query' => { 'table' => 'msg_template', },
+ 'count_query' => 'SELECT COUNT(*) FROM msg_template',
+ 'disableable' => 1,
+ 'disabled_statuspos' => 2,
+ 'agent_virt' => 1,
+ 'agent_null_right' => 'Edit global templates',
+ 'agent_pos' => 3,
+ 'header' => [ 'Name' ],
+ 'fields' => [ 'msgname' ],
+ 'links' => [ $link ],
+ )
+%>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Edit templates')
+ || $FS::CurrentUser::CurrentUser->access_right('Edit global templates')
+ || $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my $link = [ "${p}edit/msg_template.html?", 'msgnum' ];
+
+</%init>