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

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

% } % if ( stash 'error' ) {
%= $c->render_to_string(inline => stash 'error')
%}

<%= $title %>


%= $modul <% my $btn = l('SAVE'); %> %= form_for '/datetime' => (method => 'POST') => begin

%= hidden_field 'Old_ntpstatus' => $dat_datas->{ntpstatus}; % param 'Ntpstatus' => $dat_datas->{ntpstatus} unless param 'Ntpstatus'; %= radio_button Ntpstatus => 'enabled' %=l 'dat_NTP_CONFIGURE_TITLE'
% if ($dat_datas->{ntpstatus} eq 'disabled') {

%=l 'dat_NTP_ENABLE_DESC'
% } else {
%=l 'dat_NTP_CONFIGURE_DESC'

%=l 'dat_CURRENT_SETTING' %= $dat_datas->{now_string}


%=l 'dat_NTP_SERVER' %= text_field 'Ntpserver' => $dat_datas->{ntpserver}, class => 'input'

% } %= radio_button Ntpstatus => 'disabled' %=l 'dat_NTP_DISABLE_TITLE' % if ($dat_datas->{ntpstatus} eq 'enabled') {

%=l 'dat_NTP_DISABLE_DESC'
% } else {

%=l 'dat_CURRENT_SETTING' %= $dat_datas->{now_string}
%=l 'dat_NEW_M/D/Y' % param 'Month' => $dat_datas->{month} unless param 'Month'; %= select_field 'Month' => $c->getMonth_list(), class => 'input' % param 'Day' => $dat_datas->{day} unless param 'Day'; %= text_field 'Day', size => '2', class => 'input' % param 'Year' => $dat_datas->{year} unless param 'Year'; %= text_field 'Year', size => '4', class => 'input'
%=l 'dat_NEW_H/M/S' % param 'Hour' => $dat_datas->{hour} unless param 'Hour'; %= text_field 'Hour', size => '2', class => 'input' % param 'Minute' => $dat_datas->{minute} unless param 'Minute'; %= text_field 'Minute', size => '2', class => 'input' % param 'Second' => $dat_datas->{second} unless param 'Second'; %= text_field 'Second', size => '2', class => 'input'
%=l 'dat_AM/PM_AND_TZ' % param 'Ampm' => $dat_datas->{ampm} unless param 'Ampm'; %= select_field 'Ampm' => ['AM', 'PM'], class => 'input' % param 'Timezone' => $c->getTimezone() unless param 'Timezone'; %= select_field 'Timezone' => $c->getZone_list(), class => 'input'

% }


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

% end
%end