Add empty relevant css classes to css file

This commit is contained in:
2024-09-20 17:31:09 +01:00
parent 6e29aebd82
commit 53d10a96fa
16 changed files with 146 additions and 86 deletions

View File

@@ -1,5 +1,5 @@
#
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 08:43:41
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:07:43
#
#
# Routines to be edited by the developer to provide validation for parameters

View File

@@ -1,6 +1,6 @@
package SrvMngr::Controller::CreateStarterWebsite;
#
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 08:43:41
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:07:43
#
#----------------------------------------------------------------------
# heading : Miscellaneous

View File

@@ -1,5 +1,5 @@
%#
%# Generated by SM2Gen version:0.8 Chameleon version:3.8.1 On Python:3.12.3 at 2024-09-19 09:57:16
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:07:43
%#
<div id="CreateStarterWebsite-PARAMS" class="partial CreateStarterWebsite-PARAMS">
<script>
@@ -13,86 +13,86 @@
% my $btn = l('csw_APPLY');
%= form_for "CreateStarterWebsited" => (method => 'POST') => begin
% param 'trt' => ${prefix}_data->{trt} unless param 'trt';
%= hidden_field 'trt' => ${prefix}_data->{trt}
% param 'trt' => $csw_data->{trt} unless param 'trt';
%= hidden_field 'trt' => $csw_data->{trt}
%# Inputs etc in here.
<h1><%=l('csw_Create_a_starter_website')%></h1>
<h2><%=l('csw_Manage_CreateStarterWebsite_settings:')%></h2>
<p>
<p class='paragraph para1'>
%=l('csw_To_create_a_simple_web')
</p>
<p>
<p class='paragraph para2'>
%=l('csw_You_can_leave_any_field')
</p>
<p>
<p class='paragraph para3'>
%=l('csw_The_text_that_you_enter')
</p>
<p>
<p class='paragraph para4'>
%=l('csw_Do_not_use_this_optionif')
</p>
<p><span class=label>
%=l('csw_')
</span><span class=data>
% param 'companyName' => ${prefix}_data->{companyName} unless param 'companyName';
%= text_field 'companyName', size => '50', class => 'input' , pattern=>'.*' , placeholder=>'companyName'
% param 'companyName' => $csw_data->{companyName} unless param 'companyName';
%= text_field 'companyName', size => '50', class => 'textinput companyName' , pattern=>'.*' , placeholder=>'companyName'
<br></span></p>
<p>
<p class='paragraph para5'>
%=l('csw_First_header,_typically_used_for')
</p>
<p><span class=label>
%=l('csw_')
</span><span class=data>
% param 'header1' => ${prefix}_data->{header1} unless param 'header1';
%= text_field 'header1', size => '50', class => 'input' , pattern=>'.*' , placeholder=>'header1'
% param 'header1' => $csw_data->{header1} unless param 'header1';
%= text_field 'header1', size => '50', class => 'textinput header1' , pattern=>'.*' , placeholder=>'header1'
<br></span></p>
<p>
<p class='paragraph para6'>
%=l('csw_Text_following_first_header,_typically')
</p>
<span class=label>
%=l('csw_')
</span><span class=data>
% param 'text1' => ${prefix}_data->{text1} unless param 'text1';
% param 'text1' => $csw_data->{text1} unless param 'text1';
%= text_area 'text1', cols=>40, rows=>10
</span><br>
<p>
<p class='paragraph para7'>
%=l('csw_Second_header,_typically_used_for')
</p>
<p><span class=label>
%=l('csw_')
</span><span class=data>
% param 'header2' => ${prefix}_data->{header2} unless param 'header2';
%= text_field 'header2', size => '50', class => 'input' , pattern=>'.*' , placeholder=>'header2'
% param 'header2' => $csw_data->{header2} unless param 'header2';
%= text_field 'header2', size => '50', class => 'textinput header2' , pattern=>'.*' , placeholder=>'header2'
<br></span></p>
<p>
<p class='paragraph para8'>
%=l('csw_Text_following_second_header,_typically')
</p>
<span class=label>
%=l('csw_')
</span><span class=data>
% param 'text2' => ${prefix}_data->{text2} unless param 'text2';
% param 'text2' => $csw_data->{text2} unless param 'text2';
%= text_area 'text2', cols=>40, rows=>10
</span><br>
<p>
<p class='paragraph para9'>
%=l('csw_When_you_create_this_web')
</p>
<p>
<p class='paragraph para10'>
%=l('csw_Do_you_wish_to_proceed?')
</p>

View File

@@ -1,3 +1,23 @@
/*
Generated by SM2Gen version: SM2Gen version:0.8 Chameleon version:3.8.1 On Python:3.12.3 at 2024-09-19 09:57:16
Generated by SM2Gen version: SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:07:43
*/
.name {}
.rout {}
.head {}
.subh {}
.para1 {}
.para2 {}
.para3 {}
.para4 {}
.text1 {}
.para5 {}
.text2 {}
.para6 {}
.text3 {}
.para7 {}
.text4 {}
.para8 {}
.text5 {}
.para9 {}
.para10 {}
.subm6 {}

View File

@@ -1,10 +1,10 @@
%#
%# Generated by SM2Gen version:0.8 Chameleon version:3.8.1 On Python:3.12.3 at 2024-09-19 09:57:16
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:07:43
%#
% layout 'default', title => "Sme server 2 - Create Starter Website", share_dir => './';
%# css specific to this panel:
%= stylesheet '/css/createstarterwebsite.css'
% content_for 'module' => begin
%= stylesheet '/css/createstarterwebsite.css'
<div id="module" class="module CreateStarterWebsite-panel">
% if ($config->{debug} == 1) {
@@ -19,22 +19,22 @@
%= $c->render_to_string(inline => stash('modul') );
% }
%if (${prefix}_data->{first}) {
%if ($csw_data->{first}) {
<br><p>
%=$c->render_to_string(inline =>$c->l(${prefix}_data->{first}))
%=$c->render_to_string(inline =>$c->l($csw_data->{first}))
</p>
%} elsif (${prefix}_data->{success}) {
%} elsif ($csw_data->{success}) {
<div class='sme-border'>
<h2> Operation Status Report</h2><p>
%= $c->l(${prefix}_data->{success});
%= $c->l($csw_data->{success});
</p>
</div>
%} elsif (${prefix}_data->{error}) {
%} elsif ($csw_data->{error}) {
<div class='sme-error'>
<h2> Operation Status Report - error</h2><p>
%= $c->l(${prefix}_data->{error});
%= $c->l($csw_data->{error});
</p>
</div>
%}
@@ -42,7 +42,7 @@
%#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 (${prefix}_data->{trt} eq "PARAMS") {
% if ($csw_data->{trt} eq "PARAMS") {
%= include 'partials/_csw_PARAMS'
%}

View File

@@ -1,21 +1,21 @@
#
# Generated by SM2Gen version: SM2Gen version:0.8 Chameleon version:3.8.1 On Python:3.12.3 at 2024-09-19 09:57:16
# Generated by SM2Gen version: SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:07:43
#
'csw_When_you_create_this_web' => 'When you create this web page, The file index. Htm will be overwritten in your web site directory. ',
'csw_Text_following_first_header,_typically' => 'Text following first header, Typically used for a paragraph of marketing information. ',
'csw_APPLY' => 'Apply',
'csw_First_header,_typically_used_for' => 'First header, Typically used for short phrases such as Leader in the field of textile manufacturing',
'csw_Create_a_starter_website' => 'Create a starter website',
'csw_' => '',
'csw_You_can_leave_any_field' => 'You can leave any field blank if you do not need it. ',
'csw_Manage_CreateStarterWebsite_settings:' => 'Manage CreateStarterWebsite settings:',
'csw_Second_header,_typically_used_for' => 'Second header, Typically used for short phrases such as For more information or To order our products:',
'csw_Create_Starter_Website' => 'Create Starter Website',
'csw_Hello_PARAMS' => 'Hello PARAMS',
'csw_Create' => 'Create',
'csw_Do_you_wish_to_proceed?' => 'Do you wish to proceed?',
'csw_The_text_that_you_enter' => 'The text that you enter below will be line wrapped for a nicer appearance in your web page. Leave a blank line whenever you want to start a new paragraph. If you need to force a line break without starting a new paragraph (for example after each line of a mailing address), Then type the four-character sequence',
'csw_Do_not_use_this_optionif' => 'Do not use this optionif you have already customized your web site, Since it will overwrite the index. Htm file in your web site directory. ',
'csw_Text_following_second_header,_typically' => 'Text following second header, Typically used for contact or ordering information:',
'csw_First_header,_typically_used_for' => 'First header, Typically used for short phrases such as Leader in the field of textile manufacturing',
'csw_PARAMS_panel_action_was_successful' => 'PARAMS panel action was successful',
'csw_To_create_a_simple_web' => 'To create a simple web page for your company, Fill in the fields below and click onCreate. ',
'csw_Text_following_first_header,_typically' => 'Text following first header, Typically used for a paragraph of marketing information. ',
'csw_Text_following_second_header,_typically' => 'Text following second header, Typically used for contact or ordering information:',
'csw_Create_Starter_Website' => 'Create Starter Website',
'csw_Do_not_use_this_optionif' => 'Do not use this optionif you have already customized your web site, Since it will overwrite the index. Htm file in your web site directory. ',
'csw_Manage_CreateStarterWebsite_settings:' => 'Manage CreateStarterWebsite settings:',
'csw_' => '',
'csw_Hello_PARAMS' => 'Hello PARAMS',
'csw_Second_header,_typically_used_for' => 'Second header, Typically used for short phrases such as For more information or To order our products:',
'csw_When_you_create_this_web' => 'When you create this web page, The file index. Htm will be overwritten in your web site directory. ',
'csw_Do_you_wish_to_proceed?' => 'Do you wish to proceed?',
'csw_Create' => 'Create',
'csw_You_can_leave_any_field' => 'You can leave any field blank if you do not need it. ',
'csw_APPLY' => 'Apply',

View File

@@ -1,10 +1,10 @@
#
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:30:21
#
#
# Routines to be edited by the developer to provide validation for parameters
# and provison of the control data for table(s)
#
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-15 10:49
#
use esmith::util;
use esmith::HostsDB;
use esmith::AccountsDB;

View File

@@ -1,6 +1,6 @@
package SrvMngr::Controller::DiskUsage;
#
# Generated by version:SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-16 11:18
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:30:21
#
#----------------------------------------------------------------------
# heading : Miscellaneous

View File

@@ -1,5 +1,5 @@
%#
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-16 11:18
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:30:21
%#
<div id="DiskUsage-PARAMS" class="partial DiskUsage-PARAMS">
<script>
@@ -21,11 +21,11 @@
<h2><%=l('du_Manage_DiskUsage_settings:')%></h2>
<p>
<p class='paragraph para1'>
%=l('du_Wed_Sep_11_19:01:00_BST')
</p>
<pre>
<pre class='preformatted pref1'>
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/main-root 29G 4.8G 24G 17% /
devtmpfs 2.0G 0 2.0G 0% /dev
@@ -36,15 +36,15 @@ tmpfs 2.0G 648K 2.0G 1% /run
</pre>
<br /><table class="sme-border TableSort sme-table">
<thead>
<br /><table class="sme-border TableSort sme-table tabl1 ">
<thead class='tabl1'>
<tr table-head-row>
<th class='sme-border table-head-col table-head-col-I-bays '><%=l('du_I-bays')%></th>
<th class='sme-border table-head-col table-head-col-Usage '><%=l('du_Usage')%></th>
<th class='sme-border table-head-col table-head-col-Path '><%=l('du_Path')%></th>
</tr>
</thead>
<tbody>
<tbody class='tabl1'>
% my $control_data = $self->stash('Table1');
% foreach my $row (@$control_data) {
<tr class='table-row'>
@@ -57,15 +57,15 @@ tmpfs 2.0G 648K 2.0G 1% /run
</table>
<br /><table class="sme-border TableSort sme-table">
<thead>
<br /><table class="sme-border TableSort sme-table tabl2 ">
<thead class='tabl2'>
<tr table-head-row>
<th class='sme-border table-head-col table-head-col-Users '><%=l('du_Users')%></th>
<th class='sme-border table-head-col table-head-col-Usage '><%=l('du_Usage')%></th>
<th class='sme-border table-head-col table-head-col-Path '><%=l('du_Path')%></th>
</tr>
</thead>
<tbody>
<tbody class='tabl2'>
% my $control_data = $self->stash('Table2');
% foreach my $row (@$control_data) {
<tr class='table-row'>

View File

@@ -0,0 +1,15 @@
/*
Generated by SM2Gen version: SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:30:21
*/
.name {}
.rout {}
.head {}
.subh {}
.para1 {}
.pref1 {}
.tabl1 {}
thead .tabl1 {}
tboay .tabl1 {}
.tabl2 {}
thead .tabl2 {}
tboay .tabl2 {}

View File

@@ -1,8 +1,10 @@
%#
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:30:21
%#
% layout 'default', title => "Sme server 2 - Disk Usage", share_dir => './';
%#
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-16 11:18
%#
%# css specific to this panel:
% content_for 'module' => begin
%= stylesheet '/css/diskusage.css'
<div id="module" class="module DiskUsage-panel">
% if ($config->{debug} == 1) {

View File

@@ -1,11 +1,14 @@
'du_Path' => 'Path',
#
# Generated by SM2Gen version: SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:30:21
#
'du_Hello_PARAMS' => 'Hello PARAMS',
'du_Usage' => 'Usage',
'du_Users' => 'Users',
'du_I-bays' => 'I-bays',
'du_PARAMS_panel_action_was_successful' => 'PARAMS panel action was successful',
'du_Disk_Usage' => 'Disk Usage',
'du_Disk_usage' => 'Disk usage',
'du_PARAMS_panel_action_was_successful' => 'PARAMS panel action was successful',
'du_Manage_DiskUsage_settings:' => 'Manage DiskUsage settings:',
'du_APPLY' => 'Apply',
'du_Wed_Sep_11_19:01:00_BST' => 'Wed Sep 11 19:01:00 BST 2024',
'du_Users' => 'Users',
'du_Manage_DiskUsage_settings:' => 'Manage DiskUsage settings:',
'du_Hello_PARAMS' => 'Hello PARAMS',
'du_Disk_Usage' => 'Disk Usage',
'du_Usage' => 'Usage',
'du_Path' => 'Path',