%#
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-12-01 15:22:43
%#
<div>

<!-- reetp This needs fixing -->
<!--
    <script>
        window.onload = function() {
        SelectInput();
    };
    </script>
-->
    % if (config->{debug} == 1) {
        <pre>
            <%= dumper $lets_data %>
        </pre>
    % }

    <form action="/smanager/letsencryptu" method="POST">

        % param 'trt' => $lets_data->{trt} unless param 'trt';
        %= hidden_field 'trt' => $lets_data->{trt}
        %# Inputs etc in here.

        <h2 class=""><%=l('lets_Manage_letsencrypt-config_settings:') %></h2>

        <br>

        <div>
            <%= l ('lets_CONFIG_LETSENCRYPT') %>
        </div>

        <div class="row g-3 align-items-center">
            <div class="col-md-1">
                <%= l ('lets_SERVICE_STATUS') %>
            </div>
            <div class="col-auto">
                    % my @status_options = selected_field([['Disabled' => 'disabled'], ['Enabled' => 'enabled'], ['TEST' => 'test']], $lets_data->{status});
                    %= select_field 'status' => @status_options, class => "form-select"
            </div>
        </div>

        <br>


        <div class="row g-3 align-items-center">
            <div class="col-md-1">
                <%= l ('lets_HOOKSCRIPT_STATUS') %>
            </div>
            <div class="col-auto">
                % my @hookScript_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled']];
                % param 'hookScript' => $lets_data->{hookScript} unless param 'hookScript';
                %= select_field 'hookScript' => @hookScript_options, class => "form-select"
            </div>
        </div>

        <br>


        <div class="row g-3 align-items-center">
            <div class="col-md-1">
                <%= l ('lets_HOSTOVERRIDE_STATUS') %>
            </div>
            <div class="col-auto">
                % my @hostOverride_options = [['Disabled' => 'disabled'], ['Yes' => 'yes']];
                % param 'hostOverride' => $lets_data->{hostOverride} unless param 'hostOverride';
                %= select_field 'hostOverride' => @hostOverride_options, class => "form-select"
            </div>
        </div>

        <br>


        <div class="row g-3 align-items-center">
            <div class="col-md-1">
                <%= l ('lets_ACCEPT_TERMS_STATUS') %>
            </div>
            <div class="col-auto">
                % my @ACCEPT_TERMS_options = [['Disabled' => 'disabled'], ['Yes' => 'yes']];
                % param 'ACCEPT_TERMS' => $lets_data->{ACCEPT_TERMS} unless param 'ACCEPT_TERMS';
                %= select_field 'ACCEPT_TERMS' => @ACCEPT_TERMS_options, class => "form-select"
            </div>
        </div>

        <br>


        <div class="row g-3 align-items-center">
            <div class="col-md-1">
                <%= l ('lets_API_STATUS') %>
            </div>
            <div class="col-auto">
                % my @API_options = [['2' => '2']];
                % param 'API' => $lets_data->{API} unless param 'API';
                %= select_field 'API' => @API_options, class => "form-select"
            </div>
        </div>

        <br>


        <div class="row g-3 align-items-center">
            <div class="col-md-1">
                <%= l ('lets_KEYSIZE_STATUS') %>
            </div>
            <div class="col-auto">
                % my @keysize_options = [['2048' => '2048'], ['3072' => '3072'], ['4096' => '4096']];
                % param 'keysize' => $lets_data->{keysize} unless param 'keysize';
                %= select_field 'keysize' => @keysize_options, class => "form-select"
            </div>
        </div>

        <br>


        <div class="row g-3 align-items-center">
            <div class="col-md-1">
                <%= l ('lets_CONFIGUREMODE_STATUS') %>
            </div>
            <div class="col-auto">
                % my @configure_options = [['ALL' => 'all'], ['Domains' => 'domains'], ['HOSTS' => 'hosts'], ['NONE' => 'none']];
                % param 'configure' => $lets_data->{configure} unless param 'configure';
                %= select_field 'configure' => @configure_options, class => "form-select"
            </div>
        </div>

        <br>


        <div class="row g-3 align-items-center">
            <div class="col-md-1">
                <label for="email_address" class="col-form-label"><%= l ('lets_EMAIL') %></label>
            </div>
            <div class="col-auto">
                % param 'email' => $lets_data->{email} unless param 'email';
                <input type="email" name="email" id="email_address" class="form-control" aria-describedby="Email Address" value="<%= $lets_data->{email} %>">
            </div>
        </div>

        <br>

        % my $btn = l('lets_APPLY');

        <div class="row g-3 align-items-center">
            <div class="col-md-1">
                <button type="submit" class="btn btn-primary btn-sm"><%= $btn %></button>
            </div>
        </div>

    </form>
</div>
