%#
%# Generated by ${version}
%#
% layout 'default', title => "Sme server 2 - ${MenuDescription}", share_dir => './';
%# css specific to this panel:
% content_for 'module' => begin
%= stylesheet '/css/${lcPackageName}.css'
% if ($config->{debug} == 1) {
%= dumper $c->current_route
%= dumper $$${prefix}_data->{trt}
% }
<%=$title%>
% if ( stash('modul')) {
%= $c->render_to_string(inline => stash('modul') );
% }
%if ($c->stash('first')) {
%=$c->render_to_string(inline =>$c->l($c->stash('first')))
%} elsif ($c->stash('success')) {
<%=$c->l('Status Report') %>
%= $c->l($c->stash('success'));
%} elsif ($c->stash('error')) {
<%=$c->l('Error Status Report') %>
%= $c->l($c->stash('error'));
%}
%#Routing to partials according to trt parameter.
%#This ought to be cascading if/then/elsif, but is easier to just stack the if/then's rather like a case statement'
% if ($$${prefix}_data->{trt} eq "${condition}") {
%= include 'partials/_${prefix}_${condition}'
%}
%end