From 20bddf47a41b6d064b3cfa4c41e55c157cf0c3de Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 9 Jan 2009 04:06:26 +0000 Subject: pick/enter a location when ordering a package, RT#4499 --- httemplate/elements/select-county.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'httemplate/elements/select-county.html') diff --git a/httemplate/elements/select-county.html b/httemplate/elements/select-county.html index 8ef34dbe6..59f235a23 100644 --- a/httemplate/elements/select-county.html +++ b/httemplate/elements/select-county.html @@ -14,6 +14,7 @@ Example: disabled => 0, #bool disable_empty => 1, #defaults to 1, disable the empty option empty_label => 'all', #label for empty option + style => [ 'attribute:value', 'another:value' ], ); @@ -79,6 +80,7 @@ Example: ID = "<% $pre %>county" onChange= "<% $opt{'onchange'} %>" <% $opt{'disabled'} %> + <% $style %> > % unless ( $opt{'disable_empty'} ) { @@ -123,6 +125,12 @@ $opt{'disable_empty'} = 1 unless exists($opt{'disable_empty'}); my $pre = $opt{'prefix'}; +$opt{'style'} ||= []; +my $style = + scalar(@{$opt{style}}) + ? 'STYLE="'. join(';', @{$opt{style}}). '"' + : ''; + my @counties = (); if ( $countyflag ) { -- cgit v1.2.1