[freeside-commits] freeside/httemplate/elements select-cust_main-status.html, NONE, 1.1.2.2

Ivan,,, ivan at wavetail.420.am
Tue Jun 17 22:27:17 PDT 2008


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv14420

Added Files:
      Tag: FREESIDE_1_7_BRANCH
	select-cust_main-status.html 
Log Message:
and lastly, add select-cust_main-status.html to _1_7_BRANCH

--- NEW FILE: select-cust_main-status.html ---
<SELECT NAME="<% $opt{'field'} || 'status' %>"
        <% $opt{'multiple'} ? 'MULTIPLE' : '' %>
        <% $onchange %>
>

  <OPTION VALUE="">all

% foreach my $option ( @{ $opt{'statuses'} } ) { 

    <OPTION VALUE="<% $option %>"
            <% $option eq $curr_value ? 'SELECTED' : '' %>
    ><% $option %>

% } 

</SELECT>

<%init>

my %opt = @_;

$opt{'statuses'} ||= [ FS::cust_main->statuses() ]; # { disabled=>'' } )

my $onchange = $opt{'onchange'}
                 ? 'onChange="'. $opt{'onchange'}. '(this)"'
                 : '';

my $curr_value = $opt{'curr_value'} || $opt{'value'};

</%init>



More information about the freeside-commits mailing list