diff options
author | levinse <levinse> | 2011-04-11 23:03:33 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-04-11 23:03:33 +0000 |
commit | a75c66ffe670d078f27032f653ead9cfe6ceacd5 (patch) | |
tree | 4df40a929270889ad4c35dd7772570e2fbb66474 /httemplate/elements/did_order_item.html | |
parent | acc396cf5f6274b43567d49c9351a9c32bff9cfb (diff) |
improvements to bulk DID orders, RT11291
Diffstat (limited to 'httemplate/elements/did_order_item.html')
-rw-r--r-- | httemplate/elements/did_order_item.html | 46 |
1 files changed, 34 insertions, 12 deletions
diff --git a/httemplate/elements/did_order_item.html b/httemplate/elements/did_order_item.html index 263826ecc..0f5a76516 100644 --- a/httemplate/elements/did_order_item.html +++ b/httemplate/elements/did_order_item.html @@ -4,7 +4,7 @@ <TABLE> <TR> -% foreach my $field ( @fields ) { +% foreach my $field ( @textfields ) { % % my $value = ''; % $value = $item->get($field); @@ -17,10 +17,37 @@ VALUE = "<% scalar($cgi->param($name."_$field")) || $value |h %>" <% $onchange %> - ><BR> - <FONT SIZE="-1"><% $label{$field} %></FONT> + > + <BR><FONT SIZE="-1"><% $label{$field} %></FONT> </TD> % } +% my $value = ''; +% $value = $item->get('latanum'); + <TD><% include('/elements/select-table.html', + 'name_col' => 'description', + 'table' => 'lata', + 'disable_empty' => 0, + 'empty_label' => ' ', + 'label_showkey' => 1, + 'field' => "${name}_latanum", + 'curr_value' => scalar($cgi->param("${name}_latanum")) + || $value, + ) + %> + <BR><FONT SIZE="-1">LATA #</FONT> + </TD> +% $value = $item->get('state'); + <TD><% include('/elements/select-state.html', + 'disable_empty' => 0, + 'empty_label' => ' ', + 'country' => 'US', + 'prefix' => "${name}_", + 'state' => scalar($cgi->param("${name}_state")) + || $value, + ) + %> + <BR><FONT SIZE="-1">State</FONT> + </TD> </TR> </TABLE> @@ -51,19 +78,14 @@ if ( $curr_value ) { } my %size = ( 'npa' => 3, - 'latanum' => 3, - 'state' => 2, 'quantity' => 3,); tie my %label, 'Tie::IxHash', - 'msa' => 'MSA', - 'npa' => 'NPA', - 'latanum' => 'LATA #', - 'rate_center' => 'Rate Center', - 'state' => 'State', 'quantity' => 'Quantity', + 'npa' => 'NPA', + 'ratecenter' => 'Rate Center', + 'msa' => 'MSA', ; - -my @fields = keys %label; +my @textfields = keys %label; </%init> |