1 <& elements/browse.html,
2 'title' => 'FTP targets',
3 'menubar' => [ 'Add a target' => $p.'edit/ftp_target.html', ],
4 'name' => 'FTP targets',
5 'query' => { 'table' => 'ftp_target',
8 'count_query' => $count_query,
17 'fields' => [ 'targetnum',
23 my $ftp_target = shift;
25 if ($ftp_target->secure) {
27 $label .= ' (port '.$ftp_target->port.')'
28 if $ftp_target->port != 22;
32 $label .= ' (port '.$ftp_target->port.')'
33 if $ftp_target->port != 21;
39 'links' => [ $link, $link ],
43 <% include('/elements/footer.html') %>
47 my $count_query = 'SELECT COUNT(*) FROM ftp_target';
53 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
55 my $link = [ $p.'edit/ftp_target.html?', 'targetnum' ];