X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpayment_gateway.html;h=a06e5cf7cc456dae9481c181079a30e02162db0b;hb=5fdd19665fb7c0ad425a99d3dbf9ad7e27fbf44a;hp=6c14a100602e48b4f94f2188c2ada87a0bfcb09c;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0;p=freeside.git
diff --git a/httemplate/browse/payment_gateway.html b/httemplate/browse/payment_gateway.html
index 6c14a1006..a06e5cf7c 100644
--- a/httemplate/browse/payment_gateway.html
+++ b/httemplate/browse/payment_gateway.html
@@ -1,78 +1,98 @@
-%
-%
-% my %search;
-% if ( $cgi->param('showdisabled') ) {
-% %search = ();
-% } else {
-% %search = ( 'disabled' => '' );
-% }
-%
-%
-
-<% include("/elements/header.html",'Payment gateways', menubar(
- 'Main Menu' => $p,
- 'Agents' => $p. 'browse/agent.cgi',
-)) %>
-
-Add a new payment gateway
-
-<% $cgi->param('showdisabled')
- ? do { $cgi->param('showdisabled', 0);
- '( hide disabled gateways )'; }
- : do { $cgi->param('showdisabled', 1);
- '( show disabled gateways )'; }
+<% include( 'elements/browse.html',
+ 'title' => 'Payment gateways',
+ 'menubar' => [ 'Agents' => $p.'browse/agent.cgi', ],
+ 'html_init' => $html_init,
+ 'name' => 'payment gateways',
+ 'disableable' => 1,
+ 'disabled_statuspos' => 1,
+ 'query' => { 'table' => 'payment_gateway',
+ 'hashref' => {},
+ },
+ 'count_query' => $count_query,
+ 'header' => [ '#',
+ 'Type',
+ 'Gateway',
+ 'Username',
+ 'Password',
+ 'Action',
+ 'URL',
+ 'Options',
+ ],
+ 'fields' => [ 'gatewaynum',
+ 'namespace_description',
+ $gateway_sub,
+ 'gateway_username',
+ sub { ' - '; },
+ 'gateway_action',
+ 'gateway_callback_url',
+ $options_sub,
+ ],
+ )
%>
-<% table() %>
-
<% $option %>: | -<% $options{$option} %> | -
---|