Fix error on json5 lint fail and add AdminLTE theme generated templates

This commit is contained in:
2025-09-06 08:23:59 +01:00
parent c3fba3a7d5
commit 29f8de63fd
17 changed files with 1116 additions and 146 deletions

View File

@@ -0,0 +1,56 @@
%#
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-09-06 06:03:54
%#
% layout 'default', title => "Sme server 2 - Example 1", share_dir => './';
%# css specific to this panel:
% content_for 'module' => begin
%= stylesheet '/css/example1.css'
%= javascript '/js/example1.js'
<div id="module" class="module Example1-panel">
% if (config->{debug} == 1) {
<pre>
%= dumper $c->current_route
%= dumper $ex1_data->{trt}
</pre>
% }
<h1><%=$title%></h1>
% if ( stash('modul')) {
%= $c->render_to_string(inline => stash('modul') );
% }
%if ($c->stash('first')) {
<br><p>
%=$c->render_to_string(inline =>$c->l($c->stash('first')))
</p>
%} elsif ($c->stash('success')) {
<div class='success '>
%= $c->l($c->stash('success'));
</div>
<br />
%} elsif ($c->stash('error')) {
<div class='sme-error'>
%= $c->l($c->stash('error'));
</div>
<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 ($ex1_data->{trt} eq "PARAMS") {
%= include 'partials/_ex1_PARAMS'
%}
% if ($ex1_data->{trt} eq "TABLE") {
%= include 'partials/_ex1_TABLE'
%}
</div>
%end