Add list of singleton pamraeters to custom, refine letsencrypt json
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Generated by ${version}
|
||||
#
|
||||
#
|
||||
# Routines to be edited by the developer to provide validation for parameters
|
||||
# Routines to be edited by the developer to provide content and validation for parameters
|
||||
# and provison of the control data for table(s)
|
||||
#
|
||||
use esmith::util;
|
||||
@@ -29,8 +29,26 @@ our $ddb = esmith::DomainsDB->open() || die("Couldn't open Domains db");
|
||||
return $ret;
|
||||
}
|
||||
</tal:block>
|
||||
|
||||
# Get singleton data for each panel
|
||||
<tal:block tal:repeat="panel panels">
|
||||
sub get_data_for_panel_${panel} {
|
||||
# Return a hash with the fields required which will be loaded into the shared data
|
||||
my $c = shift;
|
||||
my %ret = (
|
||||
'Data1'=>'Data for ${panel}', #Example
|
||||
# fields from Inputs in ${panel} $fields['${panel}']
|
||||
<tal:block tal:repeat="field fields[panel]">
|
||||
'${field}'=>'${field} contents',
|
||||
</tal:block>
|
||||
|
||||
);
|
||||
return %ret;
|
||||
}
|
||||
</tal:block>
|
||||
|
||||
|
||||
# Get control data for tables(s)
|
||||
# Get control data for table(s)
|
||||
<tal:block tal:repeat="tablecontrol tablecontrols">
|
||||
sub get_${tablecontrol} {
|
||||
# Return an array of hashes of the contents for each row and column for ${tablecontrol}
|
||||
|
Reference in New Issue
Block a user