%doc> -- Device tasks -- %doc> % <%attr> title => 'Device Tasks' %attr> % % %####################################################################### %# %# Args section %# %####################################################################### <%args> $device_search => undef $zone_id => undef $ip_search => undef $mac_search => undef $user => $ui->get_current_user($r); $submit => undef $show_tasks => undef $showheader => 1 %args> % % % %####################################################################### %# %# INIT section %# %####################################################################### % <%init> my $DEBUG = 0; print '%ARGS is
', Dumper(%ARGS), '
% if ( $view eq 'search' ){ % }elsif ( $view eq 'new' ){ % unless ( $manager && $manager->can($user, 'access_admin_section', 'device_tasks.html:new') ){ % $m->comp('/generic/error.mhtml', error=>'You do not have permission to add new devices'); % } |