Clean up partial template, add debug condition for shared data dump

This commit is contained in:
Brian Read 2024-11-05 18:37:19 +00:00
parent 6870aff511
commit 9e9817e007

View File

@ -2,18 +2,19 @@
%# Generated by ${version} %# Generated by ${version}
%# %#
<div id="${PackageName}-${route}" class="partial ${PackageName}-${route}"> <div id="${PackageName}-${route}" class="partial ${PackageName}-${route}">
<script> <script>
window.onload = function() { window.onload = function() {
SelectInput(); SelectInput();
}; };
</script> </script>
<pre> % if ($config->{debug} == 1) {
%= dumper $$${prefix}_data <pre>
</pre> %= dumper $$${prefix}_data
% my $btn = l('APPLY'); </pre>
%= form_for "${PackageName}d" => (method => 'POST') => begin % }
% my $btn = l('APPLY');
% param 'trt' => $$${prefix}_data->{trt} unless param 'trt'; %= form_for "${PackageName}d" => (method => 'POST') => begin
% param 'trt' => $$${prefix}_data->{trt} unless param 'trt';
%= hidden_field 'trt' => $$${prefix}_data->{trt} %= hidden_field 'trt' => $$${prefix}_data->{trt}
%# Inputs etc in here. %# Inputs etc in here.
%# Probably finally by a submit. %# Probably finally by a submit.