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>
|
|
|
|
|
|
|
|
% if ( stash('modul') ) {
|
|
|
|
%= $c->render_to_string(inline => stash('modul') );
|
|
|
|
% }
|
|
|
|
|
|
|
|
%if ($$${prefix}_data->{first}) {
|
|
|
|
<br><p>
|
|
|
|
%=$c->render_to_string(inline =>$c->l($$${prefix}_data->{first}))
|
|
|
|
</p>
|
|
|
|
|
|
|
|
%} elsif ($$${prefix}_data->{success}) {
|
|
|
|
<div class='sme-border'>
|
|
|
|
<h2> Operation Status Report</h2><p>
|
|
|
|
%= $c->l($$${prefix}_data->{success});
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
%} elsif ($$${prefix}_data->{error}) {
|
|
|
|
<div class='sme-error'>
|
|
|
|
<h2> Operation Status Report - error</h2><p>
|
|
|
|
%= $c->l($$${prefix}_data->{error});
|
|
|
|
</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
|