diff options
| author | Mark Wells <mark@freeside.biz> | 2012-10-27 14:24:00 -0700 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2012-10-27 14:24:00 -0700 |
| commit | eccc8de2366e2e004a37761b8da2b447ec861ecb (patch) | |
| tree | bce8f9b106ae4fec53432600847352a48b0d14b5 /httemplate/edit/ftp_target.html | |
| parent | 2c2da653a3d39945d8d2c244d102ccbee862053b (diff) | |
ICS invoice spool format and email delivery, #17620
Diffstat (limited to 'httemplate/edit/ftp_target.html')
| -rwxr-xr-x | httemplate/edit/ftp_target.html | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/httemplate/edit/ftp_target.html b/httemplate/edit/ftp_target.html deleted file mode 100755 index aebf9aaed..000000000 --- a/httemplate/edit/ftp_target.html +++ /dev/null @@ -1,46 +0,0 @@ -<& elements/edit.html, - 'post_url' => popurl(1).'process/ftp_target.html', - 'name' => 'FTP target', - 'table' => 'ftp_target', - 'viewall_url' => "${p}browse/ftp_target.html", - 'labels' => { targetnum => 'Target', - hostname => 'Server', - username => 'Username', - password => 'Password', - path => 'Directory', - port => 'Port', - secure => 'Use SFTP', - handling => 'Special handling', - }, - 'fields' => [ - { field => 'hostname', size => 40 }, - { field => 'port', size => 8 }, - { field => 'secure', type => 'checkbox', value => 'Y' }, - 'username', - 'password', - { field => 'path', size => 40 }, - { field => 'handling', - type => 'select', - options => [ FS::ftp_target->handling_types ], - }, - ], - 'menubar' => \@menubar, - 'edit_callback' => $edit_callback, -&> -<%init> - -my $curuser = $FS::CurrentUser::CurrentUser; - -die "access denied" - unless $curuser->access_right('Configuration'); - -my @menubar = ('View all FTP targets' => $p.'browse/ftp_target.html'); -my $edit_callback = sub { - my ($cgi, $object) = @_; - if ( $object->targetnum ) { - push @menubar, 'Delete this target', - $p.'misc/delete-ftp_target.html?'.$object->targetnum; - } -}; - -</%init> |
