Sort out parameters to sm2gen

This commit is contained in:
2024-09-19 10:00:50 +01:00
parent a551ee928c
commit 6e29aebd82
10 changed files with 103 additions and 92 deletions

View File

@@ -1,11 +1,10 @@
#
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-18 08:37:59
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 08:43:41
#
#
# Routines to be edited by the developer to provide validation for parameters
# and provison of the control data for table(s)
#
##
use esmith::util;
use esmith::HostsDB;
use esmith::AccountsDB;

View File

@@ -1,11 +1,11 @@
#
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-18 15:44:18
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-18 09:02:36
#
#
# Routines to be edited by the developer to provide validation for parameters
# and provison of the control data for table(s)
#
use esmith::util;
# lcPackageName=json5_dict["PackageName"].lower(),
use esmith::HostsDB;
use esmith::AccountsDB;
use esmith::NetworksDB;

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-18 08:38:32
# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 08:43:41
#
#----------------------------------------------------------------------
# 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-18 09:09:54
%# Generated by SM2Gen version:0.8 Chameleon version:3.8.1 On Python:3.12.3 at 2024-09-19 09:57:16
%#
<div id="CreateStarterWebsite-PARAMS" class="partial CreateStarterWebsite-PARAMS">
<script>
@@ -13,8 +13,8 @@
% my $btn = l('csw_APPLY');
%= form_for "CreateStarterWebsited" => (method => 'POST') => begin
% param 'trt' => $csw_data->{trt} unless param 'trt';
%= hidden_field 'trt' => $csw_data->{trt}
% param 'trt' => ${prefix}_data->{trt} unless param 'trt';
%= hidden_field 'trt' => ${prefix}_data->{trt}
%# Inputs etc in here.
<h1><%=l('csw_Create_a_starter_website')%></h1>
@@ -40,7 +40,7 @@
<p><span class=label>
%=l('csw_')
</span><span class=data>
% param 'companyName' => $csw_data->{companyName} unless param 'companyName';
% param 'companyName' => ${prefix}_data->{companyName} unless param 'companyName';
%= text_field 'companyName', size => '50', class => 'input' , pattern=>'.*' , placeholder=>'companyName'
<br></span></p>
@@ -51,7 +51,7 @@
<p><span class=label>
%=l('csw_')
</span><span class=data>
% param 'header1' => $csw_data->{header1} unless param 'header1';
% param 'header1' => ${prefix}_data->{header1} unless param 'header1';
%= text_field 'header1', size => '50', class => 'input' , pattern=>'.*' , placeholder=>'header1'
<br></span></p>
@@ -62,7 +62,7 @@
<span class=label>
%=l('csw_')
</span><span class=data>
% param 'text1' => $csw_data->{text1} unless param 'text1';
% param 'text1' => ${prefix}_data->{text1} unless param 'text1';
%= text_area 'text1', cols=>40, rows=>10
</span><br>
@@ -73,7 +73,7 @@
<p><span class=label>
%=l('csw_')
</span><span class=data>
% param 'header2' => $csw_data->{header2} unless param 'header2';
% param 'header2' => ${prefix}_data->{header2} unless param 'header2';
%= text_field 'header2', size => '50', class => 'input' , pattern=>'.*' , placeholder=>'header2'
<br></span></p>
@@ -84,7 +84,7 @@
<span class=label>
%=l('csw_')
</span><span class=data>
% param 'text2' => $csw_data->{text2} unless param 'text2';
% param 'text2' => ${prefix}_data->{text2} unless param 'text2';
%= text_area 'text2', cols=>40, rows=>10
</span><br>

View File

@@ -1,3 +1,3 @@
/*
Generated by SM2Gen version: SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-18 15:44:18
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
*/

View File

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

View File

@@ -1,21 +1,21 @@
#
# Generated by SM2Gen version: SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-18 09:28:01
# 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
#
'csw_Create_a_starter_website' => 'Create a starter website',
'csw_You_can_leave_any_field' => 'You can leave any field blank if you do not need it. ',
'csw_First_header,_typically_used_for' => 'First header, Typically used for short phrases such as Leader in the field of textile manufacturing',
'csw_Second_header,_typically_used_for' => 'Second header, Typically used for short phrases such as For more information or To order our products:',
'csw_Manage_CreateStarterWebsite_settings:' => 'Manage CreateStarterWebsite settings:',
'csw_' => '',
'csw_Text_following_second_header,_typically' => 'Text following second header, Typically used for contact or ordering information:',
'csw_To_create_a_simple_web' => 'To create a simple web page for your company, Fill in the fields below and click onCreate. ',
'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_When_you_create_this_web' => 'When you create this web page, The file index. Htm will be overwritten in your web site directory. ',
'csw_Create' => 'Create',
'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_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_APPLY' => 'Apply',
'csw_Text_following_first_header,_typically' => 'Text following first header, Typically used for a paragraph of marketing information. ',
'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_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. ',