%#
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-05-21 08:46:42
%#
% layout 'default', title => "Sme server 2 - Shared Folders", share_dir => './';
%# css specific to this panel:
% content_for 'module' => begin
%= stylesheet '/css/shares.css'
%= javascript '/js/shares.js'
% if (config->{debug} == 1) {
%= dumper $c->current_route
%= dumper $sf_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($c->stash('success'));
%} elsif ($c->stash('error')) {
%= $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 ($sf_data->{trt} eq "LIST") {
%= include 'partials/_sf_LIST'
%}
% if ($sf_data->{trt} eq "MODIFY") {
%= include 'partials/_sf_MODIFY'
%}
% if ($sf_data->{trt} eq "PERMISSIONS") {
%= include 'partials/_sf_PERMISSIONS'
%}
% if ($sf_data->{trt} eq "REMOVE") {
%= include 'partials/_sf_REMOVE'
%}
%end