% layout 'AdminLTE', title => "Sme server 2 - qmailanalog";

% content_for 'module' => begin

<div class="card-body">

    % if (config->{debug} == 1) {
        <div>
            (DBG)route: <%= $c->current_route %><br>
        </div>
    % }

    <h1><%= $title %></h1>
    <br>

    <%= $modul %>
    <% my $btn = l('qma_GENERATE_REPORT'); %>


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

        <div class="row g-3 align-items-center">
            <div class="col-md-1">
                <label for="analysis_type" class="col-form-label"><%=l 'qma_REPORT_TYPE' %></label>
            </div>
            <div class="col-auto">
                <!-- (to be sorted) -->
                <%= select_field 'report_type' => $c->reportType_list(), class => "form-select", id => "analysis_type" %>
            </div>
        </div>

        <br>

        <!--And optional parameters, depending on the choice.-->
        <div class="row g-3 align-items-center">
            <div class="col-md-1">
                <label for="message_id_group" class="col-form-label">Message ID:</label>
            </div>
            <div class="col-auto">
                <input type="text" name="message_id" id="message_id_group" class="form-control" aria-describedby="message_id_group" placeholder="Enter Postfix Message ID">
            </div>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-1">
                <label for="email_address_group" class="col-form-label">Email Address:</label>
            </div>
            <div class="col-auto">
                <input type="email" name="email_address" id="email_address_group" class="form-control" aria-describedby="email_address_group" placeholder="Enter Email Address">
            </div>
        </div>

        <br>

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

    </form>

</div>

%end