diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/edit/invoice_template.html | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/edit/invoice_template.html')
-rw-r--r-- | httemplate/edit/invoice_template.html | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/httemplate/edit/invoice_template.html b/httemplate/edit/invoice_template.html deleted file mode 100644 index 9cec62c86..000000000 --- a/httemplate/edit/invoice_template.html +++ /dev/null @@ -1,69 +0,0 @@ -<% include("/elements/header.html", "Edit $type2desc{$type} invoice template", - menubar( - 'View all invoice templates' => $p.'browse/invoice_template.html' - ) - ) -%> - -<FORM ACTION="process/invoice_template.html" METHOD="POST"> -<INPUT TYPE="hidden" NAME="confname" VALUE="<% $confname %>"> - -% if ( $type eq 'html' ) { - - <% include('/elements/htmlarea.html', - 'field' => 'value', - 'curr_value' => $value, - 'height' => 800, - ) - %> - -% } else { - - <TEXTAREA NAME="value" ROWS=30 COLS=80 WRAP="off"><%$value |h %></TEXTAREA> - -% } - -<BR><BR> -<INPUT TYPE="submit" VALUE="Change template"> - -</FORM> - -<% include("/elements/footer.html") %> - -<%once> - -my %type2desc = ( - 'html' => 'HTML', - 'latex' => 'Print/PDF (typeset)', - 'text' => 'Plaintext', -); - -my %type2base = ( - 'html' => 'invoice_html', - 'latex' => 'invoice_latex', - 'text' => 'invoice_template', -); - -</%once> -<%init> - -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); - -my $type = $cgi->param('type'); -my $name = $cgi->param('name'); -my $suffix = $cgi->param('suffix'); - -#XXX type handling, just testing this out for now - -my $conf = new FS::Conf; - -my $value = length($name) - ? join("\n", $conf->config_orbase($type2base{$type}.$suffix, $name) ) - : join("\n", $conf->config($type2base{$type}.$suffix) ); - -my $confname = length($name) - ? $type2base{$type}.$suffix. '_'. $name - : $type2base{$type}.$suffix; - -</%init> |