RT# 82949 - changes section name from fees to pricing, better opiton
[freeside.git] / httemplate / elements / deploy_zone_vertex.html
1 % unless ( $opt{'js_only'} ) {
2
3   <INPUT TYPE="hidden" NAME="<%$name%>" ID="<%$id%>" VALUE="<% $curr_value %>">
4   Latitude&nbsp;
5   <INPUT TYPE  = "text"
6          NAME  = "<%$name%>_latitude"
7          ID    = "<%$id%>_latitude"
8          VALUE = "<% scalar($cgi->param($name.'_latitude'))
9                       || $deploy_zone_vertex->latitude
10                  %>"
11          SIZE  = 18
12          <% $onchange %>
13   >
14   &nbsp;
15   Longitude&nbsp;
16   <INPUT TYPE  = "text"
17          NAME  = "<%$name%>_longitude"
18          ID    = "<%$id%>_longitude"
19          VALUE = "<% scalar($cgi->param($name.'_longitude'))
20                       || $deploy_zone_vertex->longitude
21                  %>"
22          SIZE  = 18
23          <% $onchange %>
24   >
25 % }
26 <%init>
27
28 my( %opt ) = @_;
29
30 my $name = $opt{'element_name'} || $opt{'field'} || 'vertexnum';
31 my $id = $opt{'id'} || 'vertexnum';
32
33 my $curr_value = $opt{'curr_value'} || $opt{'value'};
34
35 my $onchange = $opt{'onchange'};
36 if ( $onchange ) {
37   $onchange =~ s/\(what\);/(this);/;
38   $onchange = 'onchange="'.$onchange.'"';
39 }
40
41 my $deploy_zone_vertex = $curr_value
42   ? FS::deploy_zone_vertex->by_key($curr_value)
43   : FS::deploy_zone_vertex->new;
44
45 </%init>