57 lines
1.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
% layout 'AdminLTE', title => "Sme server 2 - E-Mail";
|
|
|
|
% content_for 'module' => begin
|
|
|
|
% use constant FALSE => 0;
|
|
% use constant TRUE => 1;
|
|
|
|
<!-- see ibays as an example with partials -->
|
|
|
|
<div class="card-body">
|
|
|
|
% if (config->{debug} == 1) {
|
|
<pre>
|
|
<%= dumper $c->current_route %>
|
|
<%= dumper $mai_data->{trt} %>
|
|
</pre>
|
|
% }
|
|
|
|
% if ( stash 'error' ) {
|
|
<br>
|
|
<div class="text-danger">
|
|
<%= $c->render_to_string(inline => stash 'error') %>
|
|
</div>
|
|
%}
|
|
|
|
<h1><%= $title%></h1>
|
|
|
|
<br>
|
|
|
|
%#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 ($mai_data->{trt} eq "FRONT") {
|
|
<%= include 'partials/_mai_FRONT' %>
|
|
% }
|
|
|
|
% if ($mai_data->{trt} eq "ACC") {
|
|
<%= include 'partials/_mai_ACC' %>
|
|
% }
|
|
|
|
% if ($mai_data->{trt} eq "FIL") {
|
|
<%= include 'partials/_mai_FIL' %>
|
|
% }
|
|
|
|
% if ($mai_data->{trt} eq "REC") {
|
|
<%= include 'partials/_mai_REC' %>
|
|
% }
|
|
|
|
% if ($mai_data->{trt} eq "DEL") {
|
|
<%= include 'partials/_mai_DEL' %>
|
|
% }
|
|
|
|
|
|
|
|
</div>
|
|
|
|
%end |