2025-05-20 13:56:26 +02:00

71 lines
2.1 KiB
Plaintext

% layout 'AdminLTE', title => "Sme server 2 - qmailanalog";
% content_for 'module' => begin
<!-- should be moved -->
%= javascript '/js/qmailanalog.js'
<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 %></button>
</div>
</div>
</form>
</div>
%end