missing preliminary msgcat.html, RT#12515
authorivan <ivan>
Fri, 3 Jun 2011 17:47:39 +0000 (17:47 +0000)
committerivan <ivan>
Fri, 3 Jun 2011 17:47:39 +0000 (17:47 +0000)
httemplate/browse/msgcat.html [new file with mode: 0644]
httemplate/edit/msgcat.html [new file with mode: 0644]
httemplate/edit/process/msgcat.html [new file with mode: 0644]

diff --git a/httemplate/browse/msgcat.html b/httemplate/browse/msgcat.html
new file mode 100644 (file)
index 0000000..b7fe17a
--- /dev/null
@@ -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' ];
+
+</%init>
diff --git a/httemplate/edit/msgcat.html b/httemplate/edit/msgcat.html
new file mode 100644 (file)
index 0000000..7ac577b
--- /dev/null
@@ -0,0 +1,4 @@
+<& elements/edit.html,
+     name_singular => 'string', #mt?
+     table         => 'msgcat',
+&>
diff --git a/httemplate/edit/process/msgcat.html b/httemplate/edit/process/msgcat.html
new file mode 100644 (file)
index 0000000..b8c8eff
--- /dev/null
@@ -0,0 +1 @@
+<& elements/process.html, table => 'msgcat' &>