missing preliminary msgcat.html, RT#12515
[freeside.git] / httemplate / browse / msgcat.html
1 <& elements/browse.html,
2      title         => mt('Message catalog'),
3      name_singular => 'string', #mt?
4      menubar       => $menubar,
5      query         => { 'table' => 'msgcat',
6                       },
7      count_query   => $count_query,
8      header        => [ mt('Message code'), mt('Message string') ],
9      fields        => [ 'msgcode', 'msg' ],
10      links         => [ $link, $link ],
11 &>
12 <%init>
13
14 my $curuser = $FS::CurrentUser::CurrentUser;
15
16 die "access denied"
17   unless $curuser->access_right('Configuration');
18
19 my $menubar = [ mt('Add a string') => $p.'edit/msgcat.html' ];
20
21 my $where = '';
22
23 my $count_query = 'SELECT COUNT(*) FROM msgcat';
24
25 my $link = [ "${p}edit/msgcat.html?", 'msgnum' ];
26
27 </%init>