This commit was generated by cvs2svn to compensate for changes in r11022,
[freeside.git] / httemplate / browse / msg_template.html
1 <% include( 'elements/browse.html',
2               'title'         => 'Message templates',
3               'name_singular' => 'template',
4               'menubar'     => [ 'Add a new template' =>
5                                    $p.'edit/msg_template.html',
6                                ],
7               'query'       => { 'table' => 'msg_template', },
8               'count_query' => 'SELECT COUNT(*) FROM msg_template',
9               'disableable' => 1,
10               'disabled_statuspos' => 2,
11               'agent_virt'         => 1,
12               'agent_null_right'   => ['Edit global templates','Configuration'],
13               'agent_pos'          => 3,
14               'header' => [ 'Name' ],
15               'fields' => [ 'msgname' ],
16               'links'  => [ $link ],
17           )
18 %>
19 <%init>
20
21 die "access denied"
22   unless $FS::CurrentUser::CurrentUser->access_right('Edit templates')
23   ||     $FS::CurrentUser::CurrentUser->access_right('Edit global templates')
24   ||     $FS::CurrentUser::CurrentUser->access_right('Configuration');
25
26 my $link = [ "${p}edit/msg_template.html?", 'msgnum' ];
27
28 </%init>