From b1395325af90391cb212ef3decd8a8977b880aa4 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 15 Aug 2007 03:26:12 +0000 Subject: [PATCH] little more low-hanging fruit: table-grid the export listing --- httemplate/browse/part_export.cgi | 61 ++++++++++++++++++++++++++------------- 1 file changed, 41 insertions(+), 20 deletions(-) diff --git a/httemplate/browse/part_export.cgi b/httemplate/browse/part_export.cgi index 7b8ac8c20..1cd201360 100755 --- a/httemplate/browse/part_export.cgi +++ b/httemplate/browse/part_export.cgi @@ -1,6 +1,9 @@ -<% include("/elements/header.html","Export Listing", menubar( 'Main Menu' => "$p#sysadmin" )) %> +<% include("/elements/header.html", "Export Listing") %> + Provisioning services to external machines, databases and APIs.

+ Add a new export

+ -<% table() %> +<% include('/elements/table-grid.html') %> +% my $bgcolor1 = '#eeeeee'; +% my $bgcolor2 = '#ffffff'; +% my $bgcolor = ''; + - Export - Options + Export + Options + % foreach my $part_export ( sort { % $a->getfield('exportnum') <=> $b->getfield('exportnum') -% } qsearch('part_export',{}) ) { -% +% } qsearch('part_export',{}) +% ) { +% if ( $bgcolor eq $bgcolor1 ) { +% $bgcolor = $bgcolor2; +% } else { +% $bgcolor = $bgcolor1; +% } - - <% $part_export->exportnum %> - <% $part_export->exporttype %> to <% $part_export->machine %> (edit | delete) - - <% itable() %> -% my %opt = $part_export->options; + + + <% $part_export->exportnum %> + + <% $part_export->exporttype %> to <% $part_export->machine %> (edit | delete) + + + <% itable() %> +% my %opt = $part_export->options; % foreach my $opt ( keys %opt ) { + + + <% $opt %>:  + <% encode_entities($opt{$opt}) %> + +% } + + + - <% $opt %><% encode_entities($opt{$opt}) %> -% } + - - - % } - - - + +<% include('/elements/footer.html') %> + <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); -- 2.11.0