From d0a84da13086752b042836c4d245045d2d229b61 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Wed, 6 Nov 2024 10:54:10 +0000 Subject: [PATCH] Add in one domain check and create specific back entry --- .../_lets_CHECKONEDDOMAINS.html.ep | 46 +++++++++++++++++++ Targets/Letsencrypt/_lets_LIST.html.ep | 17 +++---- Targets/Letsencrypt/_lets_PARAMS.html.ep | 13 +++++- Templates/html_controls.html.ep.xml | 7 +++ json5/Letsencrypt.json5 | 26 ++++++++++- 5 files changed, 97 insertions(+), 12 deletions(-) create mode 100644 Targets/Letsencrypt/_lets_CHECKONEDDOMAINS.html.ep diff --git a/Targets/Letsencrypt/_lets_CHECKONEDDOMAINS.html.ep b/Targets/Letsencrypt/_lets_CHECKONEDDOMAINS.html.ep new file mode 100644 index 0000000..8aece5d --- /dev/null +++ b/Targets/Letsencrypt/_lets_CHECKONEDDOMAINS.html.ep @@ -0,0 +1,46 @@ +%# +%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-11-06 10:28:31 +%# +
+ + % if ($config->{debug} == 1) { +
+			%= dumper $lets_data
+		
+ % } + % my $btn = l('lets_APPLY'); + %= form_for "letsencryptu" => (method => 'POST') => begin + % param 'trt' => $lets_data->{trt} unless param 'trt'; + %= hidden_field 'trt' => $lets_data->{trt} + %# Inputs etc in here. + +

<%=l('lets_Check_just_one_domain')%>

+ +

<%=l('lets_Loop_through_checking_the_letsencrypt')%>

+ +

+ %=l('lets_Domains_name') + + % param 'OneDomainsToCheck' => $lets_data->{OneDomainsToCheck} unless param 'OneDomainsToCheck'; + %= text_field 'OneDomainsToCheck', size => '50', class => 'textinput OneDomainsToCheck' , pattern=>'.*' , placeholder=>'OneDomainsToCheck', Readonly=>'true' +

+ + + %=l('lets_Enabled_domains_check_result') + + % param 'EnabledDomainsCheck' => $lets_data->{EnabledDomainsCheck} unless param 'EnabledDomainsCheck'; + %= text_area 'EnabledDomainsCheck', cols=>40, rows=>10, Readonly=>'true' +
+ + + %= submit_button l('lets_Back'), class => 'action back', onclick =>'history.back()' + + + + %# Probably finally by a submit. + %end +
\ No newline at end of file diff --git a/Targets/Letsencrypt/_lets_LIST.html.ep b/Targets/Letsencrypt/_lets_LIST.html.ep index efd2da6..5553fb2 100644 --- a/Targets/Letsencrypt/_lets_LIST.html.ep +++ b/Targets/Letsencrypt/_lets_LIST.html.ep @@ -7,21 +7,22 @@ SelectInput(); }; -
-	%# dumper $lets_data
-	%# dumper $c->stash('DomainList')
-  
+ % if ($config->{debug} == 1) { +
+			%= dumper $lets_data
+		
+ % } % my $btn = l('lets_APPLY'); - %= form_for "Letsencryptd" => (method => 'POST') => begin + %= form_for "letsencryptu" => (method => 'POST') => begin % param 'trt' => $lets_data->{trt} unless param 'trt'; %= hidden_field 'trt' => $lets_data->{trt} %# Inputs etc in here.
- %= button_to l('lets_CONFIG'), 'letsencrypt?page=0&page_stack=&Next=Next&wherenext=CONFIG_PAGE' , class=>'buttonlink link2' - %= button_to l('lets_CHECK_ALL_DOMAINS'), 'letsencrypt?page=0&page_stack=&Next=Next&wherenext=CHECK_DOMAINS_PAGE' , class=>'buttonlink link3' - %= button_to l('lets_CHECK_ENABLED_DOMAINS'), 'letsencrypt?page=0&page_stack=&Next=Next&wherenext=CHECK_ENABLED_DOMAINS_PAGE' , class=>'buttonlink link4' + %= link_to l('lets_CONFIG'), 'letsencryptd?trt=PARAMS' , class=>'link link2' + %= link_to l('lets_CHECK_ALL_DOMAINS'), 'letsencryptd?trt=CHECKALLDOMAINS' , class=>'link link3' + %= link_to l('lets_CHECK_ENABLED_DOMAINS'), 'letsencryptd?trt=CHECKALLENABLEDDOMAINS' , class=>'link link4'
diff --git a/Targets/Letsencrypt/_lets_PARAMS.html.ep b/Targets/Letsencrypt/_lets_PARAMS.html.ep index 13028e5..7512ee3 100644 --- a/Targets/Letsencrypt/_lets_PARAMS.html.ep +++ b/Targets/Letsencrypt/_lets_PARAMS.html.ep @@ -1,5 +1,5 @@ %# -%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-11-05 13:20:33 +%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-11-05 16:44:50 %#
+ % if ($config->{debug} == 1) { +
+			%= dumper $lets_data
+		
+ % } % my $btn = l('lets_APPLY'); - %= form_for "Letsencryptd" => (method => 'POST') => begin + %= form_for "letsencryptu" => (method => 'POST') => begin % param 'trt' => $lets_data->{trt} unless param 'trt'; %= hidden_field 'trt' => $lets_data->{trt} @@ -82,6 +87,10 @@ %= submit_button l('lets_Save'), class => 'action subm9' + + %= submit_button l('lets_Back'), class => 'action subm10' + + %# Probably finally by a submit. %end
\ No newline at end of file diff --git a/Templates/html_controls.html.ep.xml b/Templates/html_controls.html.ep.xml index f2ee093..b883072 100644 --- a/Templates/html_controls.html.ep.xml +++ b/Templates/html_controls.html.ep.xml @@ -252,6 +252,13 @@ ]]> + + %= submit_button l('${Value}'), class => 'action back', onclick =>'history.back()' + + ]]> + + diff --git a/json5/Letsencrypt.json5 b/json5/Letsencrypt.json5 index d96fd94..d0dd130 100644 --- a/json5/Letsencrypt.json5 +++ b/json5/Letsencrypt.json5 @@ -251,7 +251,7 @@ 'Readonly':'true' }, 'Input2': { - 'Type': 'Submit', + 'Type': 'Back', 'Value': 'Back', } }, @@ -267,9 +267,31 @@ 'Readonly':'true' }, 'Input2': { - 'Type': 'Submit', + 'Type': 'Back', + 'Value': 'Back', + } + }, + { 'Name':'CheckOneDomains', + 'route':'CHECKONEDDOMAINS', + 'Header': 'Check just one domain', + 'SubHeader': 'Loop through checking the letsencrypt status for a specific domain', + 'Input1': { + 'Type': 'ReadonlyText', + 'Name': 'OneDomainToCheck', + 'Label': 'Domains name', + }, + 'Input2': { + 'Type': 'Textarea', + 'Name': 'OneDomainsCheck', + 'Label': 'One domain check result', + 'Rows':20, + 'Readonly':'true' + }, + 'Input3': { + 'Type': 'Back', 'Value': 'Back', } } + ] } \ No newline at end of file