2024-10-18 20:01:59 +02:00
|
|
|
%#
|
2024-12-01 12:05:35 +01:00
|
|
|
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-12-01 10:58:16
|
2024-10-18 20:01:59 +02:00
|
|
|
%#
|
|
|
|
<div id="Letsencrypt-PARAMS" class="partial Letsencrypt-PARAMS">
|
2024-11-22 15:00:54 +01:00
|
|
|
<script>
|
|
|
|
window.onload = function() {
|
|
|
|
SelectInput();
|
|
|
|
};
|
|
|
|
</script>
|
2024-11-06 11:54:10 +01:00
|
|
|
% if ($config->{debug} == 1) {
|
|
|
|
<pre>
|
|
|
|
%= dumper $lets_data
|
|
|
|
</pre>
|
|
|
|
% }
|
2024-11-22 15:00:54 +01:00
|
|
|
% my $btn = l('lets_APPLY');
|
|
|
|
%= form_for "letsencryptu" => (method => 'POST') => begin
|
|
|
|
% param 'trt' => $lets_data->{trt} unless param 'trt';
|
2024-10-18 20:01:59 +02:00
|
|
|
%= hidden_field 'trt' => $lets_data->{trt}
|
|
|
|
%# Inputs etc in here.
|
|
|
|
|
|
|
|
<h2 class='subh'><%=l('lets_Manage_letsencrypt-config_settings:')%></h2>
|
|
|
|
|
|
|
|
<p class='paragraph para1'>
|
|
|
|
%=l('lets_CONFIG_LETSENCRYPT')
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l('lets_SERVICE_STATUS')
|
|
|
|
</span><span class=data>
|
2024-11-04 18:08:38 +01:00
|
|
|
% my @status_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']];
|
2024-10-18 20:01:59 +02:00
|
|
|
% param 'status' => $lets_data->{status} unless param 'status';
|
|
|
|
%= select_field 'status' => @status_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l('lets_HOOKSCRIPT_STATUS')
|
|
|
|
</span><span class=data>
|
2024-11-04 18:08:38 +01:00
|
|
|
% my @hookScript_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled']];
|
2024-10-18 20:01:59 +02:00
|
|
|
% param 'hookScript' => $lets_data->{hookScript} unless param 'hookScript';
|
|
|
|
%= select_field 'hookScript' => @hookScript_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l('lets_HOSTOVERRIDE_STATUS')
|
|
|
|
</span><span class=data>
|
2024-11-04 18:08:38 +01:00
|
|
|
% my @hostOverride_options = [['Disabled' => 'disabled'], ['Yes' => 'yes']];
|
2024-10-18 20:01:59 +02:00
|
|
|
% param 'hostOverride' => $lets_data->{hostOverride} unless param 'hostOverride';
|
|
|
|
%= select_field 'hostOverride' => @hostOverride_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l('lets_ACCEPT_TERMS_STATUS')
|
|
|
|
</span><span class=data>
|
2024-11-04 18:08:38 +01:00
|
|
|
% my @ACCEPT_TERMS_options = [['Disabled' => 'disabled'], ['Yes' => 'yes']];
|
2024-10-18 20:01:59 +02:00
|
|
|
% param 'ACCEPT_TERMS' => $lets_data->{ACCEPT_TERMS} unless param 'ACCEPT_TERMS';
|
|
|
|
%= select_field 'ACCEPT_TERMS' => @ACCEPT_TERMS_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l('lets_API_STATUS')
|
|
|
|
</span><span class=data>
|
2024-11-04 18:08:38 +01:00
|
|
|
% my @API_options = [['2' => '2']];
|
2024-10-18 20:01:59 +02:00
|
|
|
% param 'API' => $lets_data->{API} unless param 'API';
|
|
|
|
%= select_field 'API' => @API_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l('lets_KEYSIZE_STATUS')
|
|
|
|
</span><span class=data>
|
2024-11-04 18:08:38 +01:00
|
|
|
% my @keysize_options = [['2048' => '2048'], ['3072' => '3072'], ['4096' => '4096']];
|
2024-10-18 20:01:59 +02:00
|
|
|
% param 'keysize' => $lets_data->{keysize} unless param 'keysize';
|
|
|
|
%= select_field 'keysize' => @keysize_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
|
|
|
%=l('lets_CONFIGUREMODE_STATUS')
|
|
|
|
</span><span class=data>
|
2024-11-04 18:08:38 +01:00
|
|
|
% my @configure_options = [['ALL' => 'all'], ['Domains' => 'domains'], ['HOSTS' => 'hosts'], ['NONE' => 'none']];
|
2024-10-18 20:01:59 +02:00
|
|
|
% param 'configure' => $lets_data->{configure} unless param 'configure';
|
|
|
|
%= select_field 'configure' => @configure_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
2024-11-22 15:00:54 +01:00
|
|
|
<p><span class=label>
|
|
|
|
%=l('lets_EMAIL')
|
|
|
|
</span><span class=data>
|
|
|
|
% param 'Email' => $lets_data->{Email} unless param 'Email';
|
|
|
|
%=email_field 'Email', class => 'emai8'
|
2024-11-27 17:18:56 +01:00
|
|
|
</span></p>
|
2024-11-22 15:00:54 +01:00
|
|
|
|
|
|
|
|
2024-10-18 20:01:59 +02:00
|
|
|
<span class='data'>
|
|
|
|
%= submit_button l('lets_Save'), class => 'action subm9'
|
|
|
|
</span>
|
|
|
|
|
2024-11-06 11:54:10 +01:00
|
|
|
<span class='data'>
|
2024-11-06 16:16:27 +01:00
|
|
|
%= submit_button l('lets_Back'), class => 'action back', onclick =>'history.back()'
|
2024-11-06 11:54:10 +01:00
|
|
|
</span>
|
2024-11-22 15:00:54 +01:00
|
|
|
|
|
|
|
|
2024-10-18 20:01:59 +02:00
|
|
|
%# Probably finally by a submit.
|
|
|
|
%end
|
2024-10-19 19:58:55 +02:00
|
|
|
</div>
|