% layout 'AdminLTE', title => "Sme server 2 - datetime";
% content_for 'module' => begin
% if (config->{debug} == 1) {
<%= dumper $c->current_route %>
<%= dumper $dat_data %>
% }
% if ($c->stash('first')) {
<%= $c->render_to_string(inline =>$c->l($c->stash('first'))) %>
% } elsif ($c->stash('success')) {
<%= $c->l($c->stash('success')); %>
% } elsif ($c->stash('error')) {
<%= $c->l($c->stash('error')); %>
% }
<%= $title %>
<%= $modul %>
% if ($dat_data->{ntpstatus} eq 'disabled') {
<%= l 'dat_NTP_ENABLE_DESC' %>
% } else {
% my $current_year = $dat_data->{year};
% my $year_options = [ map { [ $_, $_ ] } ($current_year..($current_year+30)) ];
% my $month_options = [ map { [ sprintf('%02d', $_), sprintf('%02d', $_) ] } (1..12) ];
% my $hour_options = [ map { [ sprintf('%02d', $_), sprintf('%02d', $_) ] } (0..23) ];
% my $minute_options = [ map { [ sprintf('%02d', $_), sprintf('%02d', $_) ] } (0..60) ];
% my $second_options = [ map { [ sprintf('%02d', $_), sprintf('%02d', $_) ] } (0..60) ];
% my $mode_options = [
% [ $c->l('dat_ntp_server'), 'dat_ntp_server' ],
% [ $c->l('dat_manually_set'), 'dat_manually_set' ]
% ];
<%= $c->l('Time Configuration') %>
% }
% end
1;