SM2Gen/Targets/letsencrypt-config/__PARAMS.html.ep

130 lines
4.0 KiB
Plaintext
Raw Normal View History

2024-10-19 19:58:55 +02:00
%#
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-10-19 16:14:17
%#
<div id="letsencrypt-config-PARAMS" class="partial letsencrypt-config-PARAMS">
<script>
window.onload = function() {
SelectInput();
};
</script>
<h2>
%= l('_Hello_PARAMS');
</h2>
% my $btn = l('APPLY');
%= form_for "letsencrypt-configd" => (method => 'POST') => begin
% param 'trt' => $_data->{trt} unless param 'trt';
%= hidden_field 'trt' => $_data->{trt}
%# Inputs etc in here.
<h1 class='head'><%=l('FORM_TITLE')%></h1>
<h2 class='subh'><%=l('Manage_letsencrypt-config_settings:')%></h2>
<p class='paragraph para1'>
%=l('CONFIG_LE')
</p>
<p class='paragraph para2'>
%=l('SERVICE_STATUS')
</p>
<p><span class=label>
%=l('_')
</span><span class=data>
% my @status_options = [{'Value' => 'disabled', 'Text' => 'Disabled'}, {'Value' => 'enabled', 'Text' => 'Enabled'}, {'Value' => 'test', 'Text' => 'TEST'}];
% param 'status' => $_data->{status} unless param 'status';
%= select_field 'status' => @status_options, class => 'input'
<br></span> </p>
<p class='paragraph para3'>
%=l('HOOKSCRIPT_STATUS')
</p>
<p><span class=label>
%=l('_')
</span><span class=data>
% my @hookScript_options = [{'Value' => 'disabled', 'Text' => 'Disabled'}, {'Value' => 'enabled', 'Text' => 'Enabled'}];
% param 'hookScript' => $_data->{hookScript} unless param 'hookScript';
%= select_field 'hookScript' => @hookScript_options, class => 'input'
<br></span> </p>
<p class='paragraph para4'>
%=l('HOSTOVERRIDE_STATUS')
</p>
<p><span class=label>
%=l('_')
</span><span class=data>
% my @hostOverride_options = [{'Value' => 'disabled', 'Text' => 'Disabled'}, {'Value' => 'yes', 'Text' => 'Yes'}];
% param 'hostOverride' => $_data->{hostOverride} unless param 'hostOverride';
%= select_field 'hostOverride' => @hostOverride_options, class => 'input'
<br></span> </p>
<p class='paragraph para5'>
%=l('ACCEPT_TERMS_STATUS')
</p>
<p><span class=label>
%=l('_')
</span><span class=data>
% my @ACCEPT_TERMS_options = [{'Value' => 'disabled', 'Text' => 'Disabled'}, {'Value' => 'yes', 'Text' => 'Yes'}];
% param 'ACCEPT_TERMS' => $_data->{ACCEPT_TERMS} unless param 'ACCEPT_TERMS';
%= select_field 'ACCEPT_TERMS' => @ACCEPT_TERMS_options, class => 'input'
<br></span> </p>
<p class='paragraph para6'>
%=l('API_STATUS')
</p>
<p><span class=label>
%=l('_')
</span><span class=data>
% my @API_options = [{'Value' => '2', 'Text' => '2'}];
% param 'API' => $_data->{API} unless param 'API';
%= select_field 'API' => @API_options, class => 'input'
<br></span> </p>
<p class='paragraph para7'>
%=l('KEYSIZE_STATUS')
</p>
<p><span class=label>
%=l('_')
</span><span class=data>
% my @keysize_options = [{'Value' => '2048', 'Text' => '2048'}, {'Value' => '3072', 'Text' => '3072'}, {'Value' => '4096', 'Text' => '4096'}];
% param 'keysize' => $_data->{keysize} unless param 'keysize';
%= select_field 'keysize' => @keysize_options, class => 'input'
<br></span> </p>
<p class='paragraph para8'>
%=l('CONFIGUREMODE_STATUS')
</p>
<p><span class=label>
%=l('_')
</span><span class=data>
% my @configure_options = [{'Value' => 'all', 'Text' => 'ALL'}, {'Value' => 'domains', 'Text' => 'Domains'}, {'Value' => 'hosts', 'Text' => 'HOSTS'}, {'Value' => 'none', 'Text' => 'NONE'}];
% param 'configure' => $_data->{configure} unless param 'configure';
%= select_field 'configure' => @configure_options, class => 'input'
<br></span> </p>
<p class='paragraph para9'>
%=l('EMAIL')
</p>
<p><span class=label>
%=l('_')
</span><span class=data>
% param 'email' => $_data->{email} unless param 'email';
%= text_field 'email', size => '50', class => 'textinput email' , pattern=>'.*' , placeholder=>'email'
<br></span></p>
<span class='data'>
%= submit_button l('Save'), class => 'action subm9'
</span>
%# Probably finally by a submit.
%end
</div>