% layout 'AdminLTE', title => "Sme server 2 - module";

% content_for 'module' => begin

<!-- should be moved? -->

%= stylesheet '/css/module.css'

<div class="card-body">
    % if (config->{debug} == 1) {
        <p>
            <strong>Debug Info:</strong>
            <pre><%= dumper $c->current_route %></pre>
        </p>
    % }
    
    % if (stash 'error') {
        <div class="">
            <strong>Error:</strong><br>
            <%= $c->render_to_string(inline => stash 'error') %>
        </div>
    % }

    <h1><%= $title %></h1>

    <div class="">
        <%= $c->render_to_string(inline => stash 'modul') %>
    </div>
</div>

% end
