SM2Gen/Targets/nfsshare.html.ep

55 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-04-09 11:36:36 +02:00
% layout 'default', title => "Sme server 2 - NFS data share", share_dir => './';
2024-04-28 13:03:06 +02:00
%#
2024-09-03 14:58:08 +02:00
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.10.12 at 2024-09-03 13:54
2024-04-28 13:03:06 +02:00
%#
2024-04-09 11:36:36 +02:00
% 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.
%#This ought to be cascading if/then/elsif, but is easier to just stack the if/then's rather like a case statement'
2024-04-09 11:36:36 +02:00
% if ($nfs_data->{trt} eq "PARAMS") {
%= include 'partials/_nfs_PARAMS'
%}
% if ($nfs_data->{trt} eq "TABLE") {
%= include 'partials/_nfs_TABLE'
%}
</div>
%end