X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fbrowse%2Fmsgcat.html;fp=httemplate%2Fbrowse%2Fmsgcat.html;h=b7fe17ad68f8303e33f4d5835a7848813f7dea3e;hb=645538bbc9e4d15f399181db04411f45805d37c8;hp=0000000000000000000000000000000000000000;hpb=49ea5f3f188b474557417dd58bb59b7334c5837b;p=freeside.git diff --git a/httemplate/browse/msgcat.html b/httemplate/browse/msgcat.html new file mode 100644 index 000000000..b7fe17ad6 --- /dev/null +++ b/httemplate/browse/msgcat.html @@ -0,0 +1,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' ]; + +