summaryrefslogtreecommitdiff
path: root/httemplate/browse/msgcat.html
blob: b7fe17ad68f8303e33f4d5835a7848813f7dea3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<& elements/browse.html,
     title         => mt('Message catalog'),
     name_singular => 'string', #mt?
     menubar       => $menubar,
     query         => { 'table' => 'msgcat',
                      },
     count_query   => $count_query,
     header        => [ mt('Message code'), mt('Message string') ],
     fields        => [ 'msgcode', 'msg' ],
     links         => [ $link, $link ],
&>
<%init>

my $curuser = $FS::CurrentUser::CurrentUser;

die "access denied"
  unless $curuser->access_right('Configuration');

my $menubar = [ mt('Add a string') => $p.'edit/msgcat.html' ];

my $where = '';

my $count_query = 'SELECT COUNT(*) FROM msgcat';

my $link = [ "${p}edit/msgcat.html?", 'msgnum' ];

</%init>