Edit template for controller - Refine params copy and bring DB opens up to spec with UTF8
This commit is contained in:
112
output/Viewlogfiles/AdminLTE/viewlogfiles.html.new.ep
Normal file
112
output/Viewlogfiles/AdminLTE/viewlogfiles.html.new.ep
Normal file
@@ -0,0 +1,112 @@
|
||||
% layout "AdminLTE", title => "Sme server 2 - viewlogfiles";
|
||||
|
||||
% content_for "module" => begin
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
%if (config->{debug} == 1) {
|
||||
<div>
|
||||
(DBG)route: <%= $c->current_route %><br>
|
||||
</div>
|
||||
% }
|
||||
|
||||
<h1><%= $title %></h1>
|
||||
|
||||
<br>
|
||||
|
||||
<%= $notif %>
|
||||
|
||||
<% my $btn = l("NEXT"); %>
|
||||
|
||||
|
||||
<form action="/smanager/viewlogfiles" method="POST">
|
||||
|
||||
<div>
|
||||
<%=l "log_FIRSTPAGE_DESC" %>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<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 "Operation" %></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-sm"><%= $btn %></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
%end
|
68
output/Viewlogfiles/default/viewlogfiles.html.new.ep
Normal file
68
output/Viewlogfiles/default/viewlogfiles.html.new.ep
Normal file
@@ -0,0 +1,68 @@
|
||||
% layout "default", title => "Sme server 2 - viewlogfiles";
|
||||
|
||||
% content_for "module" => begin
|
||||
<div id="module" class="module viewlogfiles-panel">
|
||||
%if (config->{debug} == 1) {
|
||||
<p>
|
||||
(DBG)route: <%= $c->current_route %><br>
|
||||
</p>
|
||||
%}
|
||||
<h1><%= $title %></h1>
|
||||
<br>
|
||||
<%= $notif %>
|
||||
<% my $btn = l("NEXT"); %>
|
||||
|
||||
%= form_for "viewlogfiles" => (method => "POST") => begin
|
||||
<p>
|
||||
%=l "log_FIRSTPAGE_DESC"
|
||||
<br>
|
||||
<span class=label>
|
||||
%=l "log_LOG_FILE_SELECT_DESC"
|
||||
</span><span class=data>
|
||||
% param "Filename" => "messages";
|
||||
<!-- select_field "Filename" => [["toto"], ["tata"]], class => "input" -->
|
||||
%= select_field "Filename" => $c->findlogFiles(), class => "input"
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
%=l "log_FILTER_PATTERN_DESC"
|
||||
<br>
|
||||
<span class=label>
|
||||
%=l "log_FILTER_PATTERN_LABEL"
|
||||
</span><span class=data>
|
||||
%= text_field "Matchpattern", class => "input"
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
%=l "log_MATCH_PATTERN_DESC"
|
||||
<br>
|
||||
<span class=label>
|
||||
%=l "log_MATCH_PATTERN_LABEL"
|
||||
</span><span class=data>
|
||||
%= text_field "Highlightpattern", class => "input"
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
%=l "log_OP_DESC"
|
||||
<br>
|
||||
<span class=label>
|
||||
%=l "Operation"
|
||||
</span><span class=data>
|
||||
%if ($log_datas->{"default_op"} eq "download") {
|
||||
% param "Operation" => "download";
|
||||
%}
|
||||
%= select_field "Operation" => [[(l "log_VIEW") => "view"],[(l "DOWNLOAD") => "download"]], class => "input"
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
%=l "log_END_DESC"
|
||||
</p>
|
||||
|
||||
%= submit_button "$btn", class => "action"
|
||||
% end
|
||||
</div>
|
||||
%end
|
6
output/Viewlogfiles/viewlogfiles_en.lex.diff
Normal file
6
output/Viewlogfiles/viewlogfiles_en.lex.diff
Normal file
@@ -0,0 +1,6 @@
|
||||
'log_DOWNLOAD_FILE' => 'Preparing to download the logfile [_1].',
|
||||
'log_DOWNLOAD_PAGE_DESC' => 'Your logfile download is now prepared. It will proceed as soon
|
||||
as you click on the "Next" button below, and instruct
|
||||
your browser to accept the download via the pop-up window that
|
||||
will appear.',
|
||||
'log_REFRESH' => 'Refresh this logfile',
|
40
output/Viewlogfiles/viewlogfiles_en.lex.new1
Normal file
40
output/Viewlogfiles/viewlogfiles_en.lex.new1
Normal file
@@ -0,0 +1,40 @@
|
||||
#
|
||||
# Lex file for Viewlogfiles generated on 2025-07-17 09:52:29
|
||||
#
|
||||
'log_DOWNLOAD_FILE' => 'Preparing to download the logfile [_1].',
|
||||
'log_DOWNLOAD_PAGE_DESC' => 'Your logfile download is now prepared. It will proceed as soon
|
||||
as you click on the "Next" button below, and instruct
|
||||
your browser to accept the download via the pop-up window that
|
||||
will appear.',
|
||||
'log_END_DESC' => 'Please note that it may take quite some time to generate these
|
||||
reports.',
|
||||
'log_FILENAME_ERROR' => '<p>Error while specifying log file name.</p>
|
||||
<p>Invalid report type "[_1]".</p>',
|
||||
'log_FILTER_PATTERN_DESC' => 'You may optionally specify a filter pattern to display only the
|
||||
lines from the log file which match this pattern. If you leave
|
||||
this field blank, all available lines of the log file will be
|
||||
displayed. Note that this option is not used if you download the
|
||||
logfile.',
|
||||
'log_FILTER_PATTERN_LABEL' => 'Filter Pattern (optional)',
|
||||
'log_FIRSTPAGE_DESC' => 'This panel allows you to view or download the log files generated
|
||||
by the services running on your server.',
|
||||
'log_FORM_TITLE' => 'View log files',
|
||||
'log_HIGHLIGHT_HEADER' => 'Highlighting lines matching: "[_1]".',
|
||||
'log_LOG_FILE_EMPTY' => 'Log file "[_1]" is empty!',
|
||||
'log_LOG_FILE_SELECT_DESC' => 'Choose a log file to view',
|
||||
'log_MATCH_HEADER' => 'Displaying lines matching: "[_1]".',
|
||||
'log_MATCH_PATTERN_DESC' => 'You may also optionally specify a highlight pattern to mark in bold
|
||||
any lines from the log file which match the highlight pattern. The
|
||||
highlight pattern is applied to any lines which have already
|
||||
matched the filter pattern. Note that this option is not used if
|
||||
you download the logfile.',
|
||||
'log_MATCH_PATTERN_LABEL' => 'Highlight Pattern (optional)',
|
||||
'log_NO_MATCHING_LINES' => 'No matching lines displayed.',
|
||||
'log_OP_DESC' => 'You must choose between viewing the logfile in your browser, or
|
||||
downloading the logfile to your computer. If the logfile is
|
||||
particularly large, you may wish to download it instead of
|
||||
attempting to open it in your browser, as this is a problem for
|
||||
some web browsers.',
|
||||
'log_REFRESH' => 'Refresh this logfile',
|
||||
'log_VIEW' => 'View log file',
|
||||
'log_VIEWING_TIME' => 'Viewed at [_1].',
|
Reference in New Issue
Block a user