%# %# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-06-15 12:45:47 %#
%= dumper $dat_data% } % my $btn = l('dat_APPLY'); % $c->param(Selected => undef); #This may need deleting for a params panel - only needed for a table %= form_for "datetimeu" => (method => 'POST') => begin % param 'trt' => $dat_data->{trt} unless param 'trt'; %= hidden_field 'trt' => $dat_data->{trt} %# Inputs etc in here.
%=l('dat_Time_Setting_Mode:')
% my @time_mode_options = [['NTP server' => 'dat_ntp_server'], ['Set manually' => 'dat_manually_set']];
% param 'time_mode' => $dat_data->{time_mode} unless param 'time_mode';
%= select_field 'time_mode' => @time_mode_options, class => 'input', id => 'time_mode_select'
%=l('dat_The_server_is_periodically_synchronizing')
%=l('dat_Set_Date_and_Time:')
% param 'ntpserver' => $dat_data->{ntpserver} unless param 'ntpserver';
%= text_field 'ntpserver', size => '50', class => 'textinput ntpserver' , pattern=>'.*' , placeholder=>'ntpserver', title =>'Pattern regex mismatch', id => 'ntpserver_text'
%=l('dat_Choose_this_option_to_stop')
%=l('dat_Year:')
% my @year_options = [['2025' => '2025'], ['2026' => '2026'], ['2027' => '2027'], ['2028' => '2028'], ['2029' => '2029'], ['2030' => '2030'], ['2031' => '2031'], ['2032' => '2032'], ['2033' => '2033'], ['2034' => '2034'], ['2035' => '2035'], ['2036' => '2036'], ['2037' => '2037'], ['2038' => '2038'], ['2039' => '2039'], ['2040' => '2040'], ['2041' => '2041'], ['2042' => '2042'], ['2043' => '2043'], ['2044' => '2044'], ['2045' => '2045'], ['2046' => '2046'], ['2047' => '2047'], ['2048' => '2048'], ['2049' => '2049'], ['2050' => '2050'], ['2051' => '2051'], ['2052' => '2052'], ['2053' => '2053'], ['2054' => '2054'], ['2055' => '2055']];
% param 'year' => $dat_data->{year} unless param 'year';
%= select_field 'year' => @year_options, class => 'input', id => 'year_select'
%=l('dat_Month:')
% my @month_options = [['01' => '01'], ['02' => '02'], ['03' => '03'], ['04' => '04'], ['05' => '05'], ['06' => '06'], ['07' => '07'], ['08' => '08'], ['09' => '09'], ['10' => '10'], ['11' => '11'], ['12' => '12']];
% param 'month' => $dat_data->{month} unless param 'month';
%= select_field 'month' => @month_options, class => 'input', id => 'month_select'
%=l('dat_Hour:')
% param 'day' => $dat_data->{day} unless param 'day';
%= text_field 'day', size => '50', class => 'textinput day' , pattern=>'.*' , placeholder=>'day', title =>'Pattern regex mismatch', id => 'day_text'
%=l('dat_Hour:')
% my @hour_options = [['00' => '00'], ['01' => '01'], ['02' => '02'], ['03' => '03'], ['04' => '04'], ['05' => '05'], ['06' => '06'], ['07' => '07'], ['08' => '08'], ['09' => '09'], ['10' => '10'], ['11' => '11'], ['12' => '12'], ['13' => '13'], ['14' => '14'], ['15' => '15'], ['16' => '16'], ['17' => '17'], ['18' => '18'], ['19' => '19'], ['20' => '20'], ['21' => '21'], ['22' => '22'], ['23' => '23']];
% param 'hour' => $dat_data->{hour} unless param 'hour';
%= select_field 'hour' => @hour_options, class => 'input', id => 'hour_select'
%=l('dat_Second:')
% param 'minute' => $dat_data->{minute} unless param 'minute';
%= text_field 'minute', size => '50', class => 'textinput minute' , pattern=>'.*' , placeholder=>'minute', title =>'Pattern regex mismatch', id => 'minute_text'
%=l('dat_second')
% param 'second' => $dat_data->{second} unless param 'second';
%= text_field 'second', size => '50', class => 'textinput second' , pattern=>'.*' , placeholder=>'second', title =>'Pattern regex mismatch', id => 'second_text'