From eb061f5119325e666f0dff40d4089e5c1df58e17 Mon Sep 17 00:00:00 2001 From: cvs2git Date: Sun, 16 Mar 2008 19:58:34 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'TRIXBOX_2_6'. --- httemplate/browse/invoice_template.html | 124 -------------------------------- 1 file changed, 124 deletions(-) delete mode 100644 httemplate/browse/invoice_template.html (limited to 'httemplate/browse/invoice_template.html') diff --git a/httemplate/browse/invoice_template.html b/httemplate/browse/invoice_template.html deleted file mode 100644 index 0bbfb2452..000000000 --- a/httemplate/browse/invoice_template.html +++ /dev/null @@ -1,124 +0,0 @@ -<% include("/elements/header.html", 'Invoice templates') %> - -<% include('/elements/table-grid.html') %> -% my $bgcolor1 = '#eeeeee'; -% my $bgcolor2 = '#ffffff'; -% my $bgcolor = ''; - - - Template - HTML - Print/PDF (typeset) - Plaintext - - -% foreach my $templatename ( '', @templatenames ) { -% my $tname = length($templatename) ? "_$templatename" : ''; -% -% if ( $bgcolor eq $bgcolor1 ) { -% $bgcolor = $bgcolor2; -% } else { -% $bgcolor = $bgcolor1; -% } -% -% my $display = length($templatename) ? $templatename : '(Default)'; - - - - - <% $display %> - - - - -% my( $logo_label, $logo_link_label)= length( $templatename ) -% ? labels("logo_$templatename.png") -% : ( '', 'edit' ); - <% $logo_label %> Logo - (<% $logo_link_label %>) -
- -% foreach my $suffix (qw( returnaddress notes footer), '' ) { -% my $file = "invoice_html$suffix$tname"; -% my($label, $link_label) = length($templatename) -% ? labels($file) -% : ( '', 'edit' ); - - <% $label %> <% $suffix2name{$suffix} %> - (<% $link_label %>) -
- -% } - - - - - -% my( $logo_label, $logo_link_label)= length( $templatename ) -% ? labels("logo_$templatename.eps") -% : ( '', 'edit' ); - <% $logo_label %> Logo - (<% $logo_link_label %>) -
- -% foreach my $suffix (qw( returnaddress notes footer smallfooter), '' ) { -% my $file = "invoice_latex$suffix$tname"; -% my($label, $link_label) = length($templatename) -% ? labels($file) -% : ( '', 'edit' ); - - <% $label %> <% $suffix2name{$suffix} %> - (<% $link_label %>) -
- -% } - - - - - -% my( $txt_label, $txtlink_label)= -% length( $templatename ) -% ? labels("invoice_template_$templatename.png") -% : ( 'Main template', 'edit' ); - <% $txt_label %> - (<% $txtlink_label %>) - - - - - -% } - -<% include("/elements/footer.html") %> - -<%once> - -my %suffix2name = ( - 'returnaddress' => 'Return address', - 'notes' => 'Notes', - 'footer' => 'Footer', - 'smallfooter' => 'Small footer', - '' => 'Main template', -); - -my $conf = new FS::Conf; - -sub labels { - my $filename = shift; - if ( $conf->exists($filename) ) { - ( 'Custom', 'edit' ); - } else { - ( 'Standard', 'customize' ); - } -} - - -<%init> - -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); - -my @templatenames = $conf->invoice_templatenames; - - -- cgit v1.2.1