102 lines
4.6 KiB
Plaintext
102 lines
4.6 KiB
Plaintext
|
%#
|
||
|
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-06-15 12:45:47
|
||
|
%#
|
||
|
<div id="Datetime-PARAMS" class="partial Datetime-PARAMS">
|
||
|
%# <script>
|
||
|
%# window.onload = function() {
|
||
|
%# SelectInput();
|
||
|
%# };
|
||
|
%# </script>
|
||
|
% if (config->{debug} == 1) {
|
||
|
<pre>
|
||
|
%= dumper $dat_data
|
||
|
</pre>
|
||
|
% }
|
||
|
% 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.
|
||
|
|
||
|
<h1 class='head'><%=l('Date_and_time_configuration')%></h1>
|
||
|
|
||
|
<h2 class='subh'><%=l('dat_Time_Configuration')%></h2>
|
||
|
|
||
|
<p><span class=label>
|
||
|
%=l('dat_Time_Setting_Mode:')
|
||
|
</span><span class=data>
|
||
|
% 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'
|
||
|
<br></span> </p>
|
||
|
|
||
|
<p class='paragraph para1'>
|
||
|
%=l('dat_The_server_is_periodically_synchronizing')
|
||
|
</p>
|
||
|
|
||
|
<p><span class=label>
|
||
|
%=l('dat_Set_Date_and_Time:')
|
||
|
</span><span class=data>
|
||
|
% 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'
|
||
|
<br></span></p>
|
||
|
|
||
|
<p class='paragraph para2'>
|
||
|
%=l('dat_Choose_this_option_to_stop')
|
||
|
</p>
|
||
|
|
||
|
<p><span class=label>
|
||
|
%=l('dat_Year:')
|
||
|
</span><span class=data>
|
||
|
% 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'
|
||
|
<br></span> </p>
|
||
|
|
||
|
<p><span class=label>
|
||
|
%=l('dat_Month:')
|
||
|
</span><span class=data>
|
||
|
% 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'
|
||
|
<br></span> </p>
|
||
|
|
||
|
<p><span class=label>
|
||
|
%=l('dat_Hour:')
|
||
|
</span><span class=data>
|
||
|
% 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'
|
||
|
<br></span></p>
|
||
|
|
||
|
<p><span class=label>
|
||
|
%=l('dat_Hour:')
|
||
|
</span><span class=data>
|
||
|
% 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'
|
||
|
<br></span> </p>
|
||
|
|
||
|
<p><span class=label>
|
||
|
%=l('dat_Second:')
|
||
|
</span><span class=data>
|
||
|
% 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'
|
||
|
<br></span></p>
|
||
|
|
||
|
<p><span class=label>
|
||
|
%=l('dat_second')
|
||
|
</span><span class=data>
|
||
|
% 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'
|
||
|
<br></span></p>
|
||
|
|
||
|
<span class='data'>
|
||
|
%= submit_button l('dat_Save'), class => 'action subm9'
|
||
|
</span>
|
||
|
|
||
|
%# Probably finally by a submit.
|
||
|
%end
|
||
|
</div>
|