diff options
Diffstat (limited to 'httemplate/edit/process/did_order.html')
-rw-r--r-- | httemplate/edit/process/did_order.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/httemplate/edit/process/did_order.html b/httemplate/edit/process/did_order.html new file mode 100644 index 000000000..0c9a3f0e0 --- /dev/null +++ b/httemplate/edit/process/did_order.html @@ -0,0 +1,21 @@ +<% include( 'elements/process.html', + 'table' => 'did_order', + 'viewall_dir' => 'browse', + 'value_callback' => $value_callback, + ) +%> +<%init> + +unless($cgi->param('submitted')) { + $cgi->param('submitted',time); +} + +my $value_callback = sub { + my ($field, $value) = @_; + ($field =~ /ed$/ && $value !~ /^\d+$/) ? parse_datetime($value) : $value; +}; + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + +</%init> |