1 % unless ( $opt{'js_only'} ) {
3 <INPUT TYPE="hidden" NAME="<%$name%>" ID="<%$id%>" VALUE="<% $curr_value %>">
6 NAME = "<%$name%>_latitude"
7 ID = "<%$id%>_latitude"
8 VALUE = "<% scalar($cgi->param($name.'_latitude'))
9 || $deploy_zone_vertex->latitude
17 NAME = "<%$name%>_longitude"
18 ID = "<%$id%>_longitude"
19 VALUE = "<% scalar($cgi->param($name.'_longitude'))
20 || $deploy_zone_vertex->longitude
30 my $name = $opt{'element_name'} || $opt{'field'} || 'vertexnum';
31 my $id = $opt{'id'} || 'vertexnum';
33 my $curr_value = $opt{'curr_value'} || $opt{'value'};
35 my $onchange = $opt{'onchange'};
37 $onchange =~ s/\(what\);/(this);/;
38 $onchange = 'onchange="'.$onchange.'"';
41 my $deploy_zone_vertex = $curr_value
42 ? FS::deploy_zone_vertex->by_key($curr_value)
43 : FS::deploy_zone_vertex->new;