Files
smeserver-manager/root/usr/share/smanager/themes/default/templates/viewlogfiles.html.ep
Brian Read 74c9beb587 * Mon Aug 11 2025 Brian Read <brianr@koozali.org> 11.0.0-113.sme
- Re-factor all template files to make them nicely formatted  [SME: 13103]
2025-08-12 06:20:31 +01:00

69 lines
1.7 KiB
Plaintext

% 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 'log_OP_LABEL'
</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