SM2Gen/Targets/Nfsshare.html.ep
2024-04-09 09:36:36 +00:00

51 lines
1.0 KiB
Plaintext

% layout 'default', title => "Sme server 2 - NFS data share", share_dir => './';
% content_for 'module' => begin
<div id="module" class="module Nfsshare-panel">
% if ($config->{debug} == 1) {
<p>
%= dumper $c->current_route
</p>
% }
<h1><%=$title%></h1>
% if ( stash('modul') ) {
%= $c->render_to_string(inline => stash('modul') );
% }
%if ($nfs_data->{first}) {
<br><p>
%=$c->render_to_string(inline =>$c->l($nfs_data->{first}))
</p>
%} elsif ($nfs_data->{success}) {
<div class='sme-border'>
<h2> Operation Status Report</h2><p>
%= $c->l($nfs_data->{success});
</p>
</div>
%} elsif ($nfs_data->{error}) {
<div class='sme-error'>
<h2> Operation Status Report - error</h2><p>
%= $c->l($nfs_data->{error});
</p>
</div>
%}
%#Routing to partials according to trt parameter.
% if ($nfs_data->{trt} eq "PARAMS") {
%= include 'partials/_nfs_PARAMS'
%}
% if ($nfs_data->{trt} eq "TABLE") {
%= include 'partials/_nfs_TABLE'
%}
</div>
%end