summaryrefslogtreecommitdiff
path: root/httemplate/edit/deploy_zone-fixed.html
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-08-28 11:50:25 -0400
committerChristopher Burger <burgerc@freeside.biz>2017-08-28 11:50:25 -0400
commit5ead832579f92d08a6ed31b967925a980f99c249 (patch)
treed3c8f53c93413590cedfe659f41600f35c75a9b2 /httemplate/edit/deploy_zone-fixed.html
parent23c80f76dae49785318a5dac440558977a05c17c (diff)
RT# 77200 - Changed fixed active date to a user input date
Diffstat (limited to 'httemplate/edit/deploy_zone-fixed.html')
-rw-r--r--httemplate/edit/deploy_zone-fixed.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/httemplate/edit/deploy_zone-fixed.html b/httemplate/edit/deploy_zone-fixed.html
index b8d9f8bbc..24e03b01a 100644
--- a/httemplate/edit/deploy_zone-fixed.html
+++ b/httemplate/edit/deploy_zone-fixed.html
@@ -19,6 +19,7 @@
'file' => 'Import blocks from text file',
'censusyear' => 'as census year',
},
+
'fields' => [
{ field => 'zonetype',
type => 'hidden',
@@ -30,8 +31,11 @@
},
'description',
{ field => 'active_date',
- type => 'fixed-date',
- value => time,
+ type => 'input-date-field',
+ curr_value_callback => sub {
+ my ($cgi, $object) = @_;
+ $cgi->param('active_date') || $object->active_date || time;
+ },
},
{ field => 'agentnum',
type => 'select-agent',