Add in original html - play with sanitising paragraphs

This commit is contained in:
2024-09-14 18:08:48 +01:00
parent 3813f55f68
commit 3b6e1930a0
30 changed files with 562 additions and 167 deletions

View File

@@ -33,8 +33,14 @@ our $ddb = esmith::DomainsDB->open() || die("Couldn't open Domains db");
# Get control data for tables(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}
# default is a single row of strings "col1header-1, col2header-1, col3Header-1 etc"
my $c = shift;
my @ret = {};
my $control_data = $self->stash('${TableControl}');
my @ret = {}
# foreach my $colHead (@$control_data) {
# my ret{$colHead} = "$colhead-1"
# };
return \@ret
}
</tal:block>

View File

@@ -49,7 +49,7 @@
<Paragraph><![CDATA[
<p>
%= l('${value}')
%=l('${value}')
</p>
]]></Paragraph>
@@ -125,4 +125,11 @@
]]>
</Preformatted>
<submit><![CDATA[
<p> <br>
%= submit_button "${Value}", class => 'action'
</p>
]]>
</submit>
</root>