Log files - Bug reports - Config reports

This commit is contained in:
John Crisp 2025-05-20 13:56:26 +02:00
parent 12f8be6936
commit 6cc847b6b1
9 changed files with 352 additions and 242 deletions

View File

@ -5,94 +5,127 @@
<div class="card-body"> <div class="card-body">
% if (config->{debug} == 1) { % if (config->{debug} == 1) {
<p> <div>
(DBG)route: <%= $c->current_route %><br> (DBG)route: <%= $c->current_route %><br>
(DBG)trt: <%= $bugr_datas->{trt} %><br> (DBG)trt: <%= $bugr_datas->{trt} %><br>
</p> </div>
% } % }
<h1><%= $title %></h1> <h1><%= $title %></h1>
<!--br><%= $modul %><br--> <!--br><%= $modul %><br-->
<br>
<b> <h2><%= l ('bugr_DO_NOT_PANIC') %></h2>
%=l ('bugr_DO_NOT_PANIC') <br>
</b> <div>
<p> <%= l ('bugr_SME_EXPERIENCE') %>
%=l ('bugr_SME_EXPERIENCE') </div>
</p> <br>
<p> <div>
%=l ('bugr_USE_TEMPLATE') <%= l ('bugr_USE_TEMPLATE') %>
: <a href="https://wiki.koozali.org/Bugzilla_Help#Reporting_Bugs" : <a href="https://wiki.koozali.org/Bugzilla_Help#Reporting_Bugs"
target="_blank">https://wiki.koozali.org/Bugzilla_Help#Reporting_Bugs</a>. target="_blank">https://wiki.koozali.org/Bugzilla_Help#Reporting_Bugs</a>
</p> </div>
<p> <br>
%=l ('bugr_PLEASE_REPORT_HERE') <div>
: <a href="https://bugs.koozali.org" target="_blank">https://bugs.koozali.org</a>. <%= l ('bugr_PLEASE_REPORT_HERE') %>
</p> : <a href="https://bugs.koozali.org"
<p> target="_blank">https://bugs.koozali.org</a>
%=l ('bugr_FOLLOWING_REPORT_MIGHT_HELP') </div>
</p> <br>
<p> <div>
%=l ('bugr_REPORT_CONTENT') <%= l ('bugr_FOLLOWING_REPORT_MIGHT_HELP') %>
<br> </div>
<br>
<div>
<%= l ('bugr_REPORT_CONTENT') %>
<br><br>
<ul> <ul>
<li> <li>
%=l ('bugr_SME_VERSION') <%= l ('bugr_SME_VERSION') %>
</li> </li>
<li> <li>
%=l ('bugr_SERVER_MODE') <%= l ('bugr_SERVER_MODE') %>
</li> </li>
<li> <li>
%=l ('bugr_PREVIOUS_SERVER_MODE') <%= l ('bugr_PREVIOUS_SERVER_MODE') %>
</li> </li>
<li> <li>
%=l ('bugr_KERNEL_AND_ARCH') <%= l ('bugr_KERNEL_AND_ARCH') %>
</li> </li>
<li> <li>
%=l ('bugr_INSTALLED_RPMS') <%= l ('bugr_INSTALLED_RPMS') %>
</li> </li>
<li> <li>
%=l ('bugr_ALTERED_TEMPLATES') <%= l ('bugr_ALTERED_TEMPLATES') %>
</li> </li>
<li> <li>
%=l ('bugr_ALTERED_EVENTS') <%= l ('bugr_ALTERED_EVENTS') %>
</li> <li> </li> <li>
%=l ('bugr_YUM_REPOS') <%= l ('bugr_YUM_REPOS') %>
</li> </li>
<br>
</ul> </ul>
%=l ('bugr_PRIVACY') </div>
</p>
<% my $btn = l('bugr_CREATE_REPORT'); %>
%= form_for 'bugreport' => (method => 'POST') => begin
%= submit_button "$btn", class => ""
% end
<p><b>
%=l ('bugr_DONATING')
</b>
<br><br>
%=l ('bugr_AWARE_SME')
<br><br>
<b>
%=l ('bugr_YOUR_HELP')
</b>
<br><br>
%=l ('bugr_CONSIDER_DONATING')
<br><br>
</p>
%= link_to 'https://wiki.koozali.org/Donate' => begin
%= image '/images/btn_donateCC_LG.gif'
%= hidden_field 'trt' => $bugr_datas->{trt}
% end
<br> <br>
%=l ('bugr_THANK_YOU')
<div>
<%= l ('bugr_PRIVACY') %>
</div>
<br>
% my $btn = l('bugr_CREATE_REPORT');
<form action="/smanager/bugreport" method="POST">
<div class="row g-3 align-items-center">
<div class="col-md-2">
<button type="submit" class="btn btn-primary"><%= $btn %></button>
</div>
</div>
<%= hidden_field 'trt' => $bugr_datas->{trt} %>
</form>
<br>
<div>
<b>
<%= l ('bugr_DONATING') %>
</b>
<br><br>
<%= l ('bugr_AWARE_SME') %>
<br><br>
<b>
<%= l ('bugr_YOUR_HELP') %>
</b>
<br><br>
<%= l ('bugr_CONSIDER_DONATING') %>
<br><br>
</div>
<br>
<div>
<a href="https://wiki.koozali.org/Donate"
target="_blank">
<img src="/smanager/images/btn_donateCC_LG.gif" />
</a>
</div>
<br>
<div>
<a href="https://wiki.koozali.org/Donate"
target="_blank">Donate
</a>
</div>
<br>
<div>
<%= l ('bugr_THANK_YOU') %>
</div>
</div> </div>

View File

@ -5,10 +5,10 @@
<div class="card-body"> <div class="card-body">
% if (config->{debug} == 1) { % if (config->{debug} == 1) {
<p> <div>
(DBG)route: <%= $c->current_route %><br> (DBG)route: <%= $c->current_route %><br>
(DBG)trt: <%= $bugr_datas->{trt} %><br> (DBG)trt: <%= $bugr_datas->{trt} %><br>
</p> </div>
% } % }
<h1><%= $title %></h1> <h1><%= $title %></h1>
@ -17,17 +17,25 @@
<% my $btn = l('bugr_Download this report'); %> <% my $btn = l('bugr_Download this report'); %>
%= form_for 'bugreportD' => (method => 'POST') => begin <form action="/smanager/bugreportD" method="POST">
%= submit_button "$btn", class => "" <div class="row g-3 align-items-center">
%= hidden_field 'trt' => $bugr_datas->{trt} <div class="col-md-2">
% end <button type="submit" class="btn btn-primary"><%= $btn %></button>
</div>
</div>
<%= hidden_field 'trt' => $bugr_datas->{trt} %>
</form>
% my $out = "================== <br />"; % my $out = "================== <br />";
% $out .= "Boot anaysis image (right click and save image to download)<br />"; % $out .= "Boot anaysis image (right click and save image to download)<br />";
% $out .= "================== <br />"; % $out .= "================== <br />";
% $out .= "<img src='images/boot.svg' alt='boot timing image' width=95% >"; % $out .= "<img src='images/boot.svg' alt='boot timing image' width=95% >";
<br><%= $c->render_to_string(inline=>$out) %><br> <br>
<%= $c->render_to_string(inline=>$out) %>
<br><br>
</div> </div>

View File

@ -21,7 +21,7 @@
%= include 'common_js' %= include 'common_js'
%= include 'common_css' %= include 'common_css'
<!-- Custom overrides js/css? --> <!-- Custom overrides js/css? -->
<!-- This needs refining - do contribs add in their own stuff?? --> <!-- This needs refining - do contribs add in their own stuff?? -->
<!-- This needs refining --> <!-- This needs refining -->
@ -57,7 +57,7 @@
<!--begin::Header--> <!--begin::Header-->
<nav id="koozali_grad" class="app-header navbar navbar-expand bg-success-subtle" data-bs-theme="light"> <nav id="koozali_grad" class="app-header navbar navbar-expand bg-success-subtle" data-bs-theme="light">
<!--begin::Container--> <!--begin::Container-->
<div class="container-fluid"> <div class="container-fluid">
<!--begin::Start Navbar Links--> <!--begin::Start Navbar Links-->
@ -68,10 +68,10 @@
<i class="bi bi-list"></i> <i class="bi bi-list"></i>
</a> </a>
</li> </li>
<li class="nav-item d-none d-md-block"><a href="/smanager" class="nav-link">Home</a></li> <li class="nav-item d-none d-md-block"><a href="/smanager" class="nav-link">Home</a></li>
% if ( not defined $c->session->{username} ) { % if ( not defined $c->session->{username} ) {
<li class="nav-item d-none d-md-block"><a href="login" class="nav-link">Login</a></li> <li class="nav-item d-none d-md-block"><a href="login" class="nav-link">Login</a></li>
% } else { % } else {
<li class="nav-item d-none d-md-block"><a href="logout" class="nav-link">Logout</a></li> <li class="nav-item d-none d-md-block"><a href="logout" class="nav-link">Logout</a></li>
% } % }
@ -80,12 +80,12 @@
</li> </li>
</ul> </ul>
<!--end::Start Navbar Links--> <!--end::Start Navbar Links-->
<!-- this can do direct to header so always available--> <!-- this can do direct to header so always available-->
% if ($c->is_logged_in && scalar @{SrvMngr::theme_list( $c )} > 1) { % if ($c->is_logged_in && scalar @{SrvMngr::theme_list( $c )} > 1) {
%= include 'partials/_swt_theme' %= include 'partials/_swt_theme'
% } % }
</div> </div>
<!--end::Container--> <!--end::Container-->
</nav> </nav>
@ -112,23 +112,23 @@
<!--end::Brand Link--> <!--end::Brand Link-->
</div> </div>
<!--end::Sidebar Brand--> <!--end::Sidebar Brand-->
<!--begin::Sidebar Wrapper--> <!--begin::Sidebar Wrapper-->
<div class="sidebar-wrapper navbar-nav-scroll"> <div class="sidebar-wrapper navbar-nav-scroll">
<nav class="mt-2"> <nav class="mt-2">
<!--begin::Sidebar Menu--> <!--begin::Sidebar Menu-->
<ul class="nav sidebar-menu flex-column" data-lte-toggle="treeview" role="menu" data-accordion="false"> <ul class="nav sidebar-menu flex-column" data-lte-toggle="treeview" role="menu" data-accordion="false">
%= include 'partials/_sidebar_support_menu' %= include 'partials/_sidebar_support_menu'
% if ( $c->is_logged_in ) { % if ( $c->is_logged_in ) {
%= include 'partials/_sidebar_user_menu' %= include 'partials/_sidebar_user_menu'
% } % }
% if ( $c->is_admin ) { % if ( $c->is_admin ) {
%= include 'partials/_sidebar_main_menu' %= include 'partials/_sidebar_main_menu'
% } % }
</ul> </ul>
<!--end::Sidebar Menu--> <!--end::Sidebar Menu-->
</nav> </nav>
@ -142,10 +142,10 @@
<!--begin::App Main--> <!--begin::App Main-->
<main class="app-main"> <main class="app-main">
<!-- Can add a header row here? --> <!-- Can add a header row here? -->
<!-- %= include 'partials/_app_content_header' --> <!-- %= include 'partials/_app_content_header' -->
<!--begin::App Content--> <!--begin::App Content-->
<div class="app-content"> <div class="app-content">
<!--begin::Container--> <!--begin::Container-->
@ -153,16 +153,16 @@
<!--begin::Rows--> <!--begin::Rows-->
<!-- Add breadcrumb here --> <!-- Add breadcrumb here -->
%= include 'partials/_app_content_breadcrumb' %= include 'partials/_app_content_breadcrumb'
<!-- We can add extra rows in the main panel here --> <!-- We can add extra rows in the main panel here -->
<!-- %#= include 'partials/_app_content_first_row' --> <!-- %#= include 'partials/_app_content_first_row' -->
<!-- %#= include 'partials/_app_content_demo_row' --> <!-- %#= include 'partials/_app_content_demo_row' -->
<!--end::Rows--> <!--end::Rows-->
<!-- <br> --> <!-- <br> -->
<!-- This is the main page content depening on the calling module --> <!-- This is the main page content depening on the calling module -->
<!-- nameofpanel.html.ep --> <!-- nameofpanel.html.ep -->
<!-- That will also include it's own _partials --> <!-- That will also include it's own _partials -->
@ -171,17 +171,17 @@
%= include 'partials/_panel_card_top' %= include 'partials/_panel_card_top'
%= include 'partials/_panel_card_header' %= include 'partials/_panel_card_header'
% } % }
%= content 'module' %= content 'module'
% if ($c->current_route ne 'login') { % if ($c->current_route ne 'login') {
%= include 'partials/_panel_card_footer' %= include 'partials/_panel_card_footer'
%= include 'partials/_panel_card_bottom' %= include 'partials/_panel_card_bottom'
% } % }
</div> </div>
</div> </div>
<!--end::App Content--> <!--end::App Content-->
</main> </main>
<!--end::App Main--> <!--end::App Main-->

View File

@ -64,13 +64,13 @@
<b>tell me if you find this!</b> <b>tell me if you find this!</b>
<%=$c->l("ln_REMOVE_HOSTS_DESC") %> <%= $c->l("ln_REMOVE_HOSTS_DESC") %>
<br> <br>
<span class=""> <span class="">
<%= $c->l("ln_REMOVE_HOSTS_LABEL") %> <%= $c->l("ln_REMOVE_HOSTS_LABEL") %>
</span> </span>
<span class=""> <span class="">
<%=check_box deletehost=>1, checked=>1 %> <%= check_box deletehost=>1, checked=>1 %>
</span> </span>
<br><br> <br><br>
% } % }

View File

@ -2,8 +2,8 @@
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>
<th><%= l 'rvw_NETWORKING_PARAMS' %></th> <th class="col-md-2"><%= l 'rvw_NETWORKING_PARAMS' %></th>
<th>&nbsp</th> <th class="col-auto">&nbsp</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -11,19 +11,19 @@
<td><%= l 'rvw_SERVER_MODE' %></td> <td><%= l 'rvw_SERVER_MODE' %></td>
<td><%= $rvw_datas->{servermode} %></td> <td><%= $rvw_datas->{servermode} %></td>
</tr> </tr>
<tr> <tr>
<td><%= l 'rvw_LOCAL_IP_ADDRESS_SUBNET_MASK' %></td> <td><%= l 'rvw_LOCAL_IP_ADDRESS_SUBNET_MASK' %></td>
<td><%= $rvw_datas->{localip} %></td> <td><%= $rvw_datas->{localip} %></td>
</tr> </tr>
% if ( $rvw_datas->{publicip} ) { % if ( $rvw_datas->{publicip} ) {
<tr> <tr>
<td><%=l 'rvw_INTERNET_VISIBLE_ADDRESS' %></td> <td><%=l 'rvw_INTERNET_VISIBLE_ADDRESS' %></td>
<td><%= $rvw_datas->{publicip} %></td> <td><%= $rvw_datas->{publicip} %></td>
</tr> </tr>
% } % }
<tr> <tr>
<td><%= l 'rvw_GATEWAY'%></td> <td><%= l 'rvw_GATEWAY'%></td>
<td> <td>
@ -31,24 +31,24 @@
<%= $rvw_datas->{serveronly} %> <%= $rvw_datas->{serveronly} %>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Local Networks (not translated?)</td> <td>Local Networks (not translated?)</td>
<td><%= $c->render_to_string( inline => $rvw_datas->{addlocalnetworks} );%> </td> <td><%= $c->render_to_string( inline => $rvw_datas->{addlocalnetworks} );%> </td>
<tr> <tr>
<tr> <tr>
<td><%= l 'rvw_DHCP_SERVER' %></td> <td><%= l 'rvw_DHCP_SERVER' %></td>
<td><%= $rvw_datas->{dhcpserver} %></td> <td><%= $rvw_datas->{dhcpserver} %></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>
<th><%= l 'rvw_SERVER_NAMES' %></th> <th class="col-md-2"><%= l 'rvw_SERVER_NAMES' %></th>
<th>&nbsp</th> <th class="col-auto">&nbsp</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -56,34 +56,34 @@
<td><%= l 'rvw_DNS_SERVER' %></td> <td><%= l 'rvw_DNS_SERVER' %></td>
<td><%= $rvw_datas->{dnsserver} %></td> <td><%= $rvw_datas->{dnsserver} %></td>
</tr> </tr>
<tr> <tr>
<td><%= l 'rvw_WEB_SERVER' %></td> <td><%= l 'rvw_WEB_SERVER' %></td>
<td><%= $rvw_datas->{webserver} %></tr> <td><%= $rvw_datas->{webserver} %></tr>
</tr> </tr>
<tr> <tr>
<td><%= l 'rvw_PROXY_SERVER' %></td> <td><%= l 'rvw_PROXY_SERVER' %></td>
<td><%= $rvw_datas->{proxyserver} %></tr> <td><%= $rvw_datas->{proxyserver} %></tr>
</tr> </tr>
<tr> <tr>
<td><%= l 'rvw_FTP_SERVER' %></td> <td><%= l 'rvw_FTP_SERVER' %></td>
<td><%= $rvw_datas->{ftpserver} %></tr> <td><%= $rvw_datas->{ftpserver} %></tr>
</tr> </tr>
<tr> <tr>
<td><%= l 'rvw_SMTP_POP_AND_IMAP_MAIL_SERVERS' %></td> <td><%= l 'rvw_SMTP_POP_AND_IMAP_MAIL_SERVERS' %></td>
<td><%= $rvw_datas->{smtpserver} %></tr> <td><%= $rvw_datas->{smtpserver} %></tr>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table class="table table-bordered"> <table class="table table-bordered">
<thead> <thead>
<tr> <tr>
<th><%= l 'rvw_DOMAIN_INFORMATION' %></th> <th class="col-md-2"><%= l 'rvw_DOMAIN_INFORMATION' %></th>
<th>&nbsp</th> <th class="col-auto">&nbsp</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -91,7 +91,7 @@
<td><%= l 'rvw_PRIMARY_DOMAIN' %></td> <td><%= l 'rvw_PRIMARY_DOMAIN' %></td>
<td><%= $rvw_datas->{domainname} %></td> <td><%= $rvw_datas->{domainname} %></td>
</tr> </tr>
<tr> <tr>
<td><%= l 'rvw_VIRTUAL_DOMAINS' %></td> <td><%= l 'rvw_VIRTUAL_DOMAINS' %></td>
<td><%= $rvw_datas->{virtualdomains} %></td> <td><%= $rvw_datas->{virtualdomains} %></td>
@ -100,22 +100,22 @@
<td><%= l 'rvw_PRIMARY_WEB_SITE' %></td> <td><%= l 'rvw_PRIMARY_WEB_SITE' %></td>
<td><%= $rvw_datas->{primarywebsite} %></td> <td><%= $rvw_datas->{primarywebsite} %></td>
</tr> </tr>
<tr> <tr>
<td><%= l 'rvw_SERVER_MANAGER' %></td> <td><%= l 'rvw_SERVER_MANAGER' %></td>
<td><%= $rvw_datas->{servermanager} %></td> <td><%= $rvw_datas->{servermanager} %></td>
</tr> </tr>
<tr> <tr>
<td><%= l 'rvw_USER_PASSWORD_PANEL' %></td> <td><%= l 'rvw_USER_PASSWORD_PANEL' %></td>
<td><%= $rvw_datas->{usermanager} %></td> <td><%= $rvw_datas->{usermanager} %></td>
</tr> </tr>
<tr> <tr>
<td><%= l 'rvw_EMAIL_ADDRESSES' %></td> <td><%= l 'rvw_EMAIL_ADDRESSES' %></td>
<td><%= $rvw_datas->{emailaddresses} %></td> <td><%= $rvw_datas->{emailaddresses} %></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>

View File

@ -1,4 +1,5 @@
% layout 'AdminLTE', title => "Sme server 2 - qmailanalog"; % layout 'AdminLTE', title => "Sme server 2 - qmailanalog";
% content_for 'module' => begin % content_for 'module' => begin
<!-- should be moved --> <!-- should be moved -->
@ -7,46 +8,64 @@
<div class="card-body"> <div class="card-body">
%if (config->{debug} == 1) { % if (config->{debug} == 1) {
<p> <div>
(DBG)route: <%= $c->current_route %><br> (DBG)route: <%= $c->current_route %><br>
</p> </div>
%} % }
<h1><%= $title %></h1> <h1><%= $title %></h1>
<br> <br>
<%= $modul %> <%= $modul %>
<% my $btn = l('qma_GENERATE_REPORT'); %> <% my $btn = l('qma_GENERATE_REPORT'); %>
%= form_for 'qmailanalog' => (method => 'POST') => begin
<p>
<span class=""> <form action="/smanager/qmailanalog" method="POST">
%=l 'qma_REPORT_TYPE'
</span> <div class="row g-3 align-items-center">
<span class=""> <div class="col-md-1">
<!-- (to be sorted) --> <label for="analysis_type" class="col-form-label"><%=l 'qma_REPORT_TYPE' %></label>
%= select_field 'report_type' => $c->reportType_list(), id => "" </div>
</span> <div class="col-auto">
</p> <!-- (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.--> <!--And optional parameters, depending on the choice.-->
<div id=""> <div class="row g-3 align-items-center">
<span class=""> <div class="col-md-1">
%= label_for message_id => 'Message ID:' <label for="message_id_group" class="col-form-label">Message ID:</label>
</span> </div>
<span class=""> <div class="col-auto">
%= text_field 'message_id', placeholder => 'Enter Postfix Message ID', id => "" <input type="text" name="message_id" id="message_id_group" class="form-control" aria-describedby="message_id_group" placeholder="Enter Postfix Message ID">
</span> </div>
</div> </div>
<div id=""> <br>
<span class="">
%= label_for email_address => 'Email Address:' <div class="row g-3 align-items-center">
</span> <div class="col-md-1">
<span class=""> <label for="email_address_group" class="col-form-label">Email Address:</label>
%= email_field 'email_address', placeholder => 'Enter email address', id => "" </div>
</span> <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> </div>
%= submit_button "$btn", class => "" <br>
% end
<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> </div>
%end %end

View File

@ -5,70 +5,108 @@
<div class="card-body"> <div class="card-body">
%if (config->{debug} == 1) { %if (config->{debug} == 1) {
<p> <div>
(DBG)route: <%= $c->current_route %><br> (DBG)route: <%= $c->current_route %><br>
</p> </div>
%} % }
<h1><%= $title %></h1> <h1><%= $title %></h1>
<br> <br>
<%= $notif %> <%= $notif %>
<% my $btn = l('NEXT'); %>
%= form_for 'viewlogfiles' => (method => 'POST') => begin <% my $btn = l('NEXT'); %>
<p>
%=l 'log_FIRSTPAGE_DESC'
<br>
<span class="">
%=l 'log_LOG_FILE_SELECT_DESC'
</span>
<span class="">
% param 'Filename' => 'messages';
<!-- select_field 'Filename' => [['toto'], ['tata']], class => "" -->
%= select_field 'Filename' => $c->findlogFiles(), class => ""
</span>
</p>
<p>
%=l 'log_FILTER_PATTERN_DESC'
<br>
<span class="">
%=l 'log_FILTER_PATTERN_LABEL'
</span>
<span class="">
%= text_field 'Matchpattern', class => ""
</span>
</p>
<p> <form action="/smanager/viewlogfiles" method="POST">
%=l 'log_MATCH_PATTERN_DESC'
<br>
<span class="">
%=l 'log_MATCH_PATTERN_LABEL'
</span>
<span class="">
%= text_field 'Highlightpattern', class => ""
</span>
</p>
<p> <div>
%=l 'log_OP_DESC' <%=l 'log_FIRSTPAGE_DESC' %>
<br> </div>
<span class="">
%=l 'log_OP_LABEL'
</span>
<span class="">
%if ($log_datas->{'default_op'} eq 'download') {
% param 'Operation' => 'download';
%}
%= select_field 'Operation' => [[(l 'log_VIEW') => 'view'],[(l 'DOWNLOAD') => 'download']], class => ""
</span>
</p>
<p> <br>
%=l 'log_END_DESC'
</p> <div class="row g-3 align-items-center">
<div class="col-md-2">
<label for="LogFileSelect" class="col-form-label"><%=l 'log_LOG_FILE_SELECT_DESC' %></label>
</div>
<div class="col-auto">
% param 'Filename' => 'messages';
<!-- select_field 'Filename' => [['toto'], ['tata']], class => "" -->
%= select_field 'Filename' => $c->findlogFiles(), class => "form-select", id => "LogFileSelect"
</div>
</div>
<br>
<div>
<%= l 'log_FILTER_PATTERN_DESC' %>
</div>
<br>
<div class="row g-3 align-items-center">
<div class="col-md-2">
<label for="LogFilterPattern" class="col-form-label"><%= l 'log_FILTER_PATTERN_LABEL' %></label>
</div>
<div class="col-auto">
<input type="text" name="Matchpattern" id="LogFilterPattern" class="form-control" aria-describedby="LogFilterPattern">
</div>
</div>
<br>
<div>
<%= l 'log_MATCH_PATTERN_DESC' %>
</div>
<br>
<div class="row g-3 align-items-center">
<div class="col-md-2">
<label for="LogHighlightpattern" class="col-form-label"><%= l 'log_MATCH_PATTERN_LABEL' %></label>
</div>
<div class="col-auto">
<input type="text" name="Highlightpattern" id="LogHighlightpattern" class="form-control" aria-describedby="LogHighlightpattern">
</div>
</div>
<br>
<div>
<%= l 'log_OP_DESC' %>
</div>
<br>
<div class="row g-3 align-items-center">
<div class="col-md-2">
<label for="LogOperation" class="col-form-label"><%= l 'log_OP_LABEL' %></label>
</div>
<div class="col-auto">
%if ($log_datas->{'default_op'} eq 'download') {
% param 'Operation' => 'download';
% }
%= select_field 'Operation' => [[(l 'log_VIEW') => 'view'],[(l 'DOWNLOAD') => 'download']], class => "form-select", id => "LogOperation"
</div>
</div>
<br>
<div>
<%= l 'log_END_DESC' %>
</div>
<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>
%= submit_button "$btn", class => ""
% end
</div> </div>
%end %end

View File

@ -5,28 +5,37 @@
<div class="card-body"> <div class="card-body">
% if (config->{debug} == 1) { % if (config->{debug} == 1) {
<p> <div>
(DBG)route: <%= $c->current_route %><br> (DBG)route: <%= $c->current_route %><br>
(DBG)trt: <%= $log_datas->{trt} %><br> (DBG)trt: <%= $log_datas->{trt} %><br>
</p> </div>
% } % }
<h1><%= $title %></h1> <h1><%= $title %></h1>
<br><%= $modul %><br> <br>
<%= $modul %>
<br>
<p>
<% my $btn = l('log_REFRESH'); %> <% my $btn = l('log_REFRESH'); %>
%= form_for 'viewlogfilesr' => (method => 'POST') => begin <form action="/smanager/viewlogfilesr" method="POST">
%= submit_button "$btn", class => ""
%= hidden_field 'trt' => $log_datas->{trt} <div class="row g-3 align-items-center">
%= hidden_field 'Filename' => $log_datas->{filename} <div class="col-md-2">
%= hidden_field 'Matchpattern' => $log_datas->{matchpattern} <button type="submit" class="btn btn-primary"><%= $btn %></button>
%= hidden_field 'Highlightpattern' => $log_datas->{highlightpattern} </div>
%= hidden_field 'Operation' => $log_datas->{operation} </div>
% end
</p> %= hidden_field 'trt' => $log_datas->{trt}
%= hidden_field 'Filename' => $log_datas->{filename}
%= hidden_field 'Matchpattern' => $log_datas->{matchpattern}
%= hidden_field 'Highlightpattern' => $log_datas->{highlightpattern}
%= hidden_field 'Operation' => $log_datas->{operation}
</form>
</div> </div>
%end %end

View File

@ -1,6 +1,6 @@
%define name smeserver-manager-AdminLTE %define name smeserver-manager-AdminLTE
%define version 11.0.0 %define version 11.0.0
%define release 24 %define release 25
Summary: AdminLTE is an html framework for admin consoles - this rpm adds it to smeserver manager2 Summary: AdminLTE is an html framework for admin consoles - this rpm adds it to smeserver manager2
Name: %{name} Name: %{name}
Version: %{version} Version: %{version}
@ -26,6 +26,9 @@ AdminLTE is an html framework for admin consoles
wget https://github.com/ColorlibHQ/AdminLTE/archive/master.zip wget https://github.com/ColorlibHQ/AdminLTE/archive/master.zip
%changelog %changelog
* Tue May 20 2025 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-25.sme
- Log files - Bug reports - Config reports
* Mon May 19 2025 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-24.sme * Mon May 19 2025 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-24.sme
- Local Networks and a few odd tidies - Local Networks and a few odd tidies