% layout 'default', title => "Sme server 2 - remoteaccess"; % content_for 'module' => begin
% if ($config->{debug} == 1) {

%= dumper $c->current_route %= dumper $rma_datas

% }

<%= $title%>

% if ( $notif ) {
<%= $c->render_to_string(inline => $notif) %> %}
<% my $btn = l('SAVE'); %> %= form_for 'remoteaccess' => (method => 'POST') => begin % my $ipsec = $c->get_ipsecrw_status(); % if ( $ipsec ) {

%=l 'rma_TITLE_IPSECRW'


%=l 'rma_DESC_IPSECRW'
%=l 'rma_LABEL_IPSECRW_SESS' % param 'IpsecrwSess' => $c->get_ipsecrw_sessions unless param 'IpsecrwSess'; %= text_field 'IpsecrwSess', class => 'input'
%= $c->render_to_string(inline => $c->l('rma_DESC_IPSECRW_RESET'));
%=l 'rma_LABEL_IPSECRW_RESET' %= check_box 'IpsecrwReset',class => 'input'


%}

%= $c->l('rma_VALIDFROM_TITLE', $c->l('rma_REMOTE_MANAGEMENT'));


%=l 'rma_VALIDFROM_DESC'

% my @vals = $self->_get_valid_from(); % if (@vals) { % foreach my $val ( @vals ) % { % my ($net, $mask) = split '/', $val; % $mask = '255.255.255.255' unless ($mask); % my ($numhosts,$a,$b) = esmith::util::computeHostRange($net,$mask); %= t td => (class => 'sme-border') => $net %= t td => (class => 'sme-border') => $mask %= t td => (class => 'sme-border') => $numhosts % }
%=l 'NETWORK' %=l 'SUBNET_MASK' %=l 'NUM_OF_HOSTS' %=l 'REMOVE'
'>
% } else {
%= l('rma_NO_ENTRIES_YET'); %}

%=l 'rma_DESC_VALID_FROM_ENTRIES'

%=l 'NETWORK' %= text_field 'ValidFromNetwork', class => 'input'
%=l 'rma_SUBNET_MASK' %= text_field 'ValidFromMask', class => 'input'


%=l 'rma_TITLE_SSH'


%=l 'rma_DESC_SSH'

%=l 'rma_LABEL_SSH' % param 'SshAccess' => $c->get_ssh_access() unless param 'SshAccess'; %= select_field 'SshAccess' => $c->networkAccess_list(), class => 'input'
%=l 'rma_LABEL_SSH_ADMIN' % param 'SshPermitRootLogin' => $rma_datas->{sshPermitRootLogin} unless param 'SshPermitRootLogin'; %= select_field 'SshPermitRootLogin' => [[(l 'NO'), 'no'], [(l 'YES'), 'yes']], class => 'input'
%=l 'rma_LABEL_SSH_PASSWORD_ACCESS' % param 'SshPasswordAuthentication' => $c->get_ssh_password_auth() unless param 'SshPasswordAuthentication'; %= select_field 'SshPasswordAuthentication' => [[(l 'NO'), 'no'], [(l 'YES'), 'yes']], class => 'input'
%=l 'rma_LABEL_SSH_PORT' % param 'SshTCPPort' => $c->get_ssh_port() unless param 'SshTCPPort'; %= text_field 'SshTCPPort', class => 'input'


%=l 'rma_TITLE_FTP_ACCESS'


%= $c->render_to_string(inline => $c->l('rma_DESC_FTP_ACCESS'));
%=l 'rma_LABEL_FTP_ACCESS' % param 'FtpAccess' => $c->get_ftp_access() unless param 'FtpAccess'; %= select_field 'FtpAccess' => $c->networkAccess_list(), class => 'input'

%= $c->render_to_string(inline => $c->l('rma_DESC_FTP_LOGIN'));
%=l 'rma_LABEL_FTP_LOGIN' % param 'FtpPasswordAccess' => $c->get_ftp_password_login_access() unless param 'FtpPasswordAccess'; %= select_field 'FtpPasswordAccess' => $c->passwordLogin_list(), class => 'input'

% my $mode = $c->get_telnet_mode(); % if ( $mode ne 'off') {


%=l 'rma_TITLE_TELNET_ACCESS'


%=l 'rma_DESC_TELNET_ACCESS'

%=l 'rma_LABEL_TELNET_ACCESS' % param 'TelnetAccess' => $mode unless param 'TelnetAccess'; %= select_field 'TelnetAccess' => $c->networkAccess_list(), class => 'input'

%}
%= submit_button "$btn", class => 'action'
% end
% end