diff options
| author | ivan <ivan> | 2009-10-29 18:38:09 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2009-10-29 18:38:09 +0000 | 
| commit | fcc3ddbd03b97b88bf04f6984d7fd3c443fb14b5 (patch) | |
| tree | 3982ce563d7b0fa726ae033aadf92748350b2123 /httemplate/elements/tr-select-cust_class.html | |
| parent | 9d77a21db3642ca66d9a0e545b804b7e6b4090ee (diff) | |
customer classification, RT#6376
Diffstat (limited to 'httemplate/elements/tr-select-cust_class.html')
| -rw-r--r-- | httemplate/elements/tr-select-cust_class.html | 27 | 
1 files changed, 27 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-cust_class.html b/httemplate/elements/tr-select-cust_class.html new file mode 100644 index 000000000..54a11d79e --- /dev/null +++ b/httemplate/elements/tr-select-cust_class.html @@ -0,0 +1,27 @@ +% if ( scalar(@{ $opt{'cust_class'} }) == 0 ) {  + +  <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'classnum' %>" VALUE=""> + +% } else {  + +  <TR> +    <TD ALIGN="right"><% $opt{'label'} || 'Customer class' %></TD> +    <TD> +      <% include( '/elements/select-cust_class.html', +                    'curr_value' => $classnum, +                    %opt +                ) +      %> +    </TD> +  </TR> + +% }  + +<%init> + +my %opt = @_; +my $classnum = $opt{'curr_value'} || $opt{'value'}; + +$opt{'cust_class'} ||= [ qsearch( 'cust_class', { disabled=>'' } ) ]; + +</%init>  | 
