diff options
author | ivan <ivan> | 2006-04-22 00:58:40 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-04-22 00:58:40 +0000 |
commit | 1a033848671cad2cbe7687b37fc718b3b2a68b83 (patch) | |
tree | 01fc1ca352726cdc5786e0ccaf78515e9326ba84 /httemplate/edit/part_pkg.cgi | |
parent | 303cb4ce4b6ce634e108e3b7a0b43086a5e4f184 (diff) |
start of package class web UI (add/edit package classes, package class selection in package def edit)
Diffstat (limited to 'httemplate/edit/part_pkg.cgi')
-rwxr-xr-x | httemplate/edit/part_pkg.cgi | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 158c6e2ff..462d5161f 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -84,6 +84,7 @@ Package information <INPUT TYPE="text" NAME="comment" SIZE=32 VALUE="<%=$part_pkg->comment%>"> </TD> </TR> + <%= include( '/elements/tr-select-pkg_class.html', $part_pkg->classnum ) %> <TR> <TD ALIGN="right">Promotional code</TD> <TD> @@ -146,8 +147,8 @@ $thead .= '<TH BGCOLOR="#dcdcdc">Service</TH></TR>'; %> -<%= itable('', 4, 1) %><TR><TD VALIGN="top"> <BR><BR>Services included +<%= itable('', 4, 1) %><TR><TD VALIGN="top"> <%= $thead %> <% @@ -194,14 +195,14 @@ foreach my $part_svc ( @part_svc ) { </TD> </TR> - <% $count++; - foreach ( 1 .. $columns-1 ) { + <% foreach ( 1 .. $columns-1 ) { if ( $count == int( $_ * scalar(@part_svc) / $columns ) ) { %> </TABLE></TD><TD VALIGN="top"><%= $thead %> <% } } + $count++; %> <% } %> @@ -224,7 +225,7 @@ my %plandata = map { /^(\w+)=(.*)$/; ( $1 => $2 ); } tie my %options, 'Tie::IxHash', map { $_=>$plans{$_}->{'name'} } keys %plans; -my @form_select = (); +my @form_select = ('classnum'); if ( $conf->exists('enable_taxclasses') ) { push @form_select, 'taxclass'; } else { |