X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fmsg_template.html;fp=httemplate%2Fbrowse%2Fmsg_template.html;h=331906ccffc8619e7cac93ef23e03dbe90848c2c;hb=9569b2f1e6147f97bfacb41bc94c6605eb59206f;hp=0000000000000000000000000000000000000000;hpb=184a1a9cfcd3beb1c4eabbdb2cfa5b5064684b9c;p=freeside.git diff --git a/httemplate/browse/msg_template.html b/httemplate/browse/msg_template.html new file mode 100644 index 000000000..331906ccf --- /dev/null +++ b/httemplate/browse/msg_template.html @@ -0,0 +1,27 @@ +<% 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'); + +my $link = [ "${p}edit/msg_template.html?", 'msgnum' ]; + +