X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fdeploy_zone-mobile.html;h=8cec298bf22aa79db993fa6948a74b253894463c;hb=ecf1c9cc0a20be6e489657e005ea771977b9f69c;hp=8e985b1c9b0a0dfea29c440ba9993319b2b0c950;hpb=1ebcca94aba75c5901c6eefaf373f39e94b03cf0;p=freeside.git diff --git a/httemplate/edit/deploy_zone-mobile.html b/httemplate/edit/deploy_zone-mobile.html index 8e985b1c9..8cec298bf 100644 --- a/httemplate/edit/deploy_zone-mobile.html +++ b/httemplate/edit/deploy_zone-mobile.html @@ -2,6 +2,7 @@ 'name_singular' => 'deployment zone', 'table' => 'deploy_zone', 'post_url' => popurl(1).'process/deploy_zone-mobile.html', + 'viewall_dir' => 'browse', 'labels' => { 'description' => 'Description', 'agentnum' => 'Agent', @@ -48,14 +49,21 @@ 'adv_speed_down', 'adv_speed_up', { type => 'tablebreak-tr-title', value => 'Footprint'}, - { field => 'vertexnum', - type => 'deploy_zone_vertex', - o2m_table => 'deploy_zone_vertex', - m2_label => ' ', - m2_error_callback => $m2_error_callback, - }, - ], + { field => 'vertices', + type => 'polygon', + curr_value_callback => sub { + my ($cgi, $object) = @_; + $cgi->param('vertices') || $object->vertices_json; + }, + } +# { field => 'vertexnum', +# type => 'deploy_zone_vertex', +# o2m_table => 'deploy_zone_vertex', +# m2_label => ' ', +# m2_error_callback => $m2_error_callback, +# }, + ], &> <%init> my $curuser = $FS::CurrentUser::CurrentUser;