projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
854285c
)
RT# 77200 - Changed fixed active date to a user input date
author
Christopher Burger
<burgerc@freeside.biz>
Mon, 28 Aug 2017 15:50:25 +0000
(11:50 -0400)
committer
Christopher Burger
<burgerc@freeside.biz>
Tue, 29 Aug 2017 12:52:58 +0000
(08:52 -0400)
httemplate/edit/deploy_zone-fixed.html
patch
|
blob
|
history
httemplate/edit/deploy_zone-mobile.html
patch
|
blob
|
history
httemplate/edit/process/deploy_zone-fixed.html
patch
|
blob
|
history
httemplate/edit/process/deploy_zone-mobile.html
patch
|
blob
|
history
diff --git
a/httemplate/edit/deploy_zone-fixed.html
b/httemplate/edit/deploy_zone-fixed.html
index
b8d9f8b
..
24e03b0
100644
(file)
--- 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',
},
'file' => 'Import blocks from text file',
'censusyear' => 'as census year',
},
+
'fields' => [
{ field => 'zonetype',
type => 'hidden',
'fields' => [
{ field => 'zonetype',
type => 'hidden',
@@
-30,8
+31,11
@@
},
'description',
{ field => 'active_date',
},
'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',
},
{ field => 'agentnum',
type => 'select-agent',
diff --git
a/httemplate/edit/deploy_zone-mobile.html
b/httemplate/edit/deploy_zone-mobile.html
index
8cec298
..
e7f534c
100644
(file)
--- a/
httemplate/edit/deploy_zone-mobile.html
+++ b/
httemplate/edit/deploy_zone-mobile.html
@@
-23,8
+23,11
@@
},
'description',
{ field => 'active_date',
},
'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',
},
{ field => 'agentnum',
type => 'select-agent',
diff --git
a/httemplate/edit/process/deploy_zone-fixed.html
b/httemplate/edit/process/deploy_zone-fixed.html
index
0033bbe
..
b22e630
100644
(file)
--- a/
httemplate/edit/process/deploy_zone-fixed.html
+++ b/
httemplate/edit/process/deploy_zone-fixed.html
@@
-28,6
+28,10
@@
my $precheck_callback = sub {
$i++;
}
}
$i++;
}
}
+ if ( length $cgi->param('active_date') ) {
+ my $date = parse_datetime( $cgi->param('active_date') );
+ $cgi->param('active_date', $date);
+ }
'';
};
</%init>
'';
};
</%init>
diff --git
a/httemplate/edit/process/deploy_zone-mobile.html
b/httemplate/edit/process/deploy_zone-mobile.html
index
d36d5d4
..
9b205ab
100644
(file)
--- a/
httemplate/edit/process/deploy_zone-mobile.html
+++ b/
httemplate/edit/process/deploy_zone-mobile.html
@@
-21,6
+21,10
@@
my $precheck_callback = sub {
$i++;
}
}
$i++;
}
}
+ if ( length $cgi->param('active_date') ) {
+ my $date = parse_datetime( $cgi->param('active_date') );
+ $cgi->param('active_date', $date);
+ }
'';
};
</%init>
'';
};
</%init>