X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpayment_gateway.html;h=7a8a668d70df1b441240a4d8d07442825ec234b1;hb=c22d84e565ab16db142395dce2e8621624eff140;hp=bb7f315144eb682724dd07e884085dfe04cc58db;hpb=673b9a458d9138523026963df6fa3b4683e09bae;p=freeside.git
diff --git a/httemplate/browse/payment_gateway.html b/httemplate/browse/payment_gateway.html
index bb7f31514..7a8a668d7 100644
--- a/httemplate/browse/payment_gateway.html
+++ b/httemplate/browse/payment_gateway.html
@@ -1,70 +1,98 @@
-<%
+<% 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,
+ ],
+ )
+%>
+
+
+
+<% include('/elements/footer.html') %>
+<%once>
+
+my $html_init = qq!
+ Add a new payment gateway
+
+
+
- my %search;
- if ( $cgi->param('showdisabled') ) {
- %search = ();
- } else {
- %search = ( 'disabled' => '' );
+!;
+
+my $gateway_sub = sub {
+ my($payment_gateway) = @_;
+
+ my $gatewaynum = $payment_gateway->gatewaynum;
+
+ my $html = $payment_gateway->gateway_module. ' '. qq!
+
+ (edit)
+ !;
+
+ unless ( $payment_gateway->disabled ) {
+ $html .= qq!
+ (disable)
+ !;
}
-%>
-<%= header('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 )'; }
-%>
+ $html .= '';
-<%= table() %>
-
<%= $option %>: | -<%= $options{$option} %> | -
---|