Add in checking panels, add in readonly to textarea

This commit is contained in:
Brian Read 2024-10-19 20:06:46 +01:00
parent 0f5c4f948c
commit d5a771f6f3
2 changed files with 41 additions and 6 deletions

View File

@ -16,7 +16,7 @@
%=l('${prefix}_${Label}') %=l('${prefix}_${Label}')
</span><span class=data> </span><span class=data>
% param '${Name}' => $$${prefix}_data->{${Name}} unless param '${Name}'; % param '${Name}' => $$${prefix}_data->{${Name}} unless param '${Name}';
%= text_area '${Name}', cols=>${cols | 40}, rows=>${rows | 10} %= text_area '${Name}', cols=>${cols | 40}, rows=>${rows | 10}, Readonly=>${Readonly | false}
</span><br> </span><br>
]]></Textarea> ]]></Textarea>

View File

@ -4,9 +4,9 @@
{ {
'PackageName': 'Letsencrypt', 'PackageName': 'Letsencrypt',
'prefix': 'lets', 'prefix': 'lets',
'MenuHeading': 'Miscellaneous', 'MenuHeading': 'Network',
'MenuDescription': 'letsencrypt', 'MenuDescription': 'Letsencrypt certificate',
'MenuNavigation': '2000 400', 'MenuNavigation': '6000 6600',
'firstPanel': 'LIST', 'firstPanel': 'LIST',
'signalEvent': 'smeserver-letsencrypt-update', 'signalEvent': 'smeserver-letsencrypt-update',
'html': [ 'html': [
@ -184,7 +184,7 @@
] ]
}, },
'Input8': { 'Input8': {
'Type': 'Text', 'Type': 'Email',
'Value': '', 'Value': '',
'Name': 'email', 'Name': 'email',
'Label': 'EMAIL' 'Label': 'EMAIL'
@ -195,6 +195,41 @@
'Name': 'Next', 'Name': 'Next',
'Label': null 'Label': null
} }
} },
{ 'Name':'CheckAllDomains',
'route':'CHECKALLDOMAINS',
'Header': 'Check all domains',
'SubHeader': 'Loop through checking the letsencrypt status for each configured domain',
'Input1': {
'Type': 'Textarea',
'Value': '',
'Name': 'AllDomainsCheck',
'Label': 'All domains check result',
'Rows':20,
'Readonly':true
}
'Input2': {
'Type': 'Submit',
'Value': 'Back',
}
},
{ 'Name':'CheckAllEnabledDomains',
'route':'CHECKALLENABLEDDOMAINS',
'Header': 'Check all enabled domains',
'SubHeader': 'Loop through checking the letsencrypt status for each configured domain wihch is enabled',
'Input1': {
'Type': 'Textarea',
'Value': '',
'Name': 'EnabledDomainsCheck',
'Label': 'Enabled domains check result',
'Rows':20
'Readonly':true
}
'Input2': {
'Type': 'Submit',
'Value': 'Back',
}
}
] ]
} }