2024-04-26 10:26:38 +02:00
|
|
|
%#
|
2024-04-28 13:03:06 +02:00
|
|
|
%# Generated by ${version}
|
2024-04-26 10:26:38 +02:00
|
|
|
%#
|
2024-09-16 15:01:17 +02:00
|
|
|
% layout 'default', title => "Sme server 2 - ${MenuDescription}", share_dir => './';
|
2024-09-19 11:00:50 +02:00
|
|
|
%# css specific to this panel:
|
2024-04-09 11:33:50 +02:00
|
|
|
% content_for 'module' => begin
|
2024-09-20 18:31:09 +02:00
|
|
|
%= stylesheet '/css/${lcPackageName}.css'
|
2024-04-09 11:33:50 +02:00
|
|
|
<div id="module" class="module ${PackageName}-panel">
|
|
|
|
|
|
|
|
% if ($config->{debug} == 1) {
|
2024-11-17 15:28:59 +01:00
|
|
|
<pre>
|
2024-04-09 11:33:50 +02:00
|
|
|
%= dumper $c->current_route
|
2024-11-17 15:28:59 +01:00
|
|
|
%= dumper $$${prefix}_data->{trt}
|
|
|
|
</pre>
|
2024-04-09 11:33:50 +02:00
|
|
|
% }
|
|
|
|
|
|
|
|
<h1><%=$title%></h1>
|
|
|
|
|
2024-11-22 16:09:21 +01:00
|
|
|
% if ( stash('modul')) {
|
2024-04-09 11:33:50 +02:00
|
|
|
%= $c->render_to_string(inline => stash('modul') );
|
|
|
|
% }
|
|
|
|
|
2024-11-22 16:09:21 +01:00
|
|
|
%if ($c->stash('first')) {
|
2024-04-09 11:33:50 +02:00
|
|
|
<br><p>
|
2024-11-22 16:09:21 +01:00
|
|
|
%=$c->render_to_string(inline =>$c->l($c->stash('first')))
|
2024-04-09 11:33:50 +02:00
|
|
|
</p>
|
|
|
|
|
2024-11-22 16:09:21 +01:00
|
|
|
%} elsif ($c->stash('success')) {
|
2024-11-29 16:19:48 +01:00
|
|
|
<div class='success '>
|
2024-11-22 16:09:21 +01:00
|
|
|
<h2><%=$c->l('Status Report') %></h2><p>
|
|
|
|
%= $c->l($c->stash('success'));
|
2024-04-09 11:33:50 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
2024-11-22 16:09:21 +01:00
|
|
|
%} elsif ($c->stash('error')) {
|
2024-04-09 11:33:50 +02:00
|
|
|
<div class='sme-error'>
|
2024-11-22 16:09:21 +01:00
|
|
|
<h2><%=$c->l('Error Status Report') %></h2><p>
|
|
|
|
%= $c->l($c->stash('error'));
|
2024-04-09 11:33:50 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
%}
|
|
|
|
|
|
|
|
%#Routing to partials according to trt parameter.
|
2024-06-20 10:52:29 +02:00
|
|
|
%#This ought to be cascading if/then/elsif, but is easier to just stack the if/then's rather like a case statement'
|
2024-04-09 11:33:50 +02:00
|
|
|
<tal:block tal:repeat="condition conditions">
|
|
|
|
% if ($$${prefix}_data->{trt} eq "${condition}") {
|
|
|
|
%= include 'partials/_${prefix}_${condition}'
|
|
|
|
%}
|
|
|
|
</tal:block>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
2024-11-04 18:08:38 +01:00
|
|
|
%end
|