summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-06-03 17:47:39 +0000
committerivan <ivan>2011-06-03 17:47:39 +0000
commit645538bbc9e4d15f399181db04411f45805d37c8 (patch)
treee60f73059043b47b2e317370e09dc4166e66c943
parent49ea5f3f188b474557417dd58bb59b7334c5837b (diff)
missing preliminary msgcat.html, RT#12515
-rw-r--r--httemplate/browse/msgcat.html27
-rw-r--r--httemplate/edit/msgcat.html4
-rw-r--r--httemplate/edit/process/msgcat.html1
3 files changed, 32 insertions, 0 deletions
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' ];
+
+</%init>
diff --git a/httemplate/edit/msgcat.html b/httemplate/edit/msgcat.html
new file mode 100644
index 000000000..7ac577b7c
--- /dev/null
+++ b/httemplate/edit/msgcat.html
@@ -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
index 000000000..b8c8eff2f
--- /dev/null
+++ b/httemplate/edit/process/msgcat.html
@@ -0,0 +1 @@
+<& elements/process.html, table => 'msgcat' &>