[freeside-commits] freeside/httemplate/edit/cust_main select-state.html, 1.5, 1.6
Ivan,,,
ivan at wavetail.420.am
Sat Jun 28 16:03:12 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/edit/cust_main
In directory wavetail.420.am:/tmp/cvs-serv26113/httemplate/edit/cust_main
Modified Files:
select-state.html
Log Message:
get DIDs from globalpops
Index: select-state.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main/select-state.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- select-state.html 6 Apr 2007 19:38:09 -0000 1.5
+++ select-state.html 28 Jun 2008 23:03:10 -0000 1.6
@@ -1,24 +1,4 @@
-<SELECT NAME="<% $opt{'prefix'} %>state" onChange="<% $opt{'prefix'} %>state_changed(this); <% $opt{'onchange'} %>" <% $opt{'disabled'} %>>
-
-% if ($opt{empty}) {
- <OPTION VALUE=""<% $opt{state} eq '' ? ' SELECTED' : '' %>><% $opt{empty} %>
-% }
-
-% foreach my $state ( keys %states ) {
-
- <OPTION VALUE="<% $state %>"<% $state eq $opt{'state'} ? ' SELECTED' : '' %>><% $states{$state} || '(n/a)' %>
-
-% }
-
-
-</SELECT>
-
+<% include('/elements/select-state.html', @_) %>
<%init>
-my %opt = @_;
-foreach my $opt (qw( county state country prefix onchange disabled empty )) {
- $opt{$_} = '' unless exists($opt{$_}) && defined($opt{$_});
-}
-
-tie my %states, 'Tie::IxHash', states_hash( $opt{'country'} );
+warn "cust_main/select-state.html depreated; use /elements/select-state.html instead";
</%init>
-
More information about the freeside-commits
mailing list