X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_export.cgi;h=beed70887e40bd5c6b1ce8876b3454d34e49e394;hp=79c57aefc846e96a1edae8fd448c129e35c11021;hb=1ad547a47f16b4230762e752fbe48d460ed997e1;hpb=2041a9143fac20b79ead4a1ae01224dedf5b27c2 diff --git a/httemplate/browse/part_export.cgi b/httemplate/browse/part_export.cgi index 79c57aefc..beed70887 100755 --- a/httemplate/browse/part_export.cgi +++ b/httemplate/browse/part_export.cgi @@ -1,7 +1,9 @@ - -<%= header("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

+ +Add a new export

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