Clean up partial template, add debug condition for shared data dump
This commit is contained in:
parent
6870aff511
commit
9e9817e007
@ -2,18 +2,19 @@
|
||||
%# Generated by ${version}
|
||||
%#
|
||||
<div id="${PackageName}-${route}" class="partial ${PackageName}-${route}">
|
||||
<script>
|
||||
window.onload = function() {
|
||||
SelectInput();
|
||||
};
|
||||
</script>
|
||||
<pre>
|
||||
%= dumper $$${prefix}_data
|
||||
</pre>
|
||||
% my $btn = l('APPLY');
|
||||
%= form_for "${PackageName}d" => (method => 'POST') => begin
|
||||
|
||||
% param 'trt' => $$${prefix}_data->{trt} unless param 'trt';
|
||||
<script>
|
||||
window.onload = function() {
|
||||
SelectInput();
|
||||
};
|
||||
</script>
|
||||
% if ($config->{debug} == 1) {
|
||||
<pre>
|
||||
%= dumper $$${prefix}_data
|
||||
</pre>
|
||||
% }
|
||||
% my $btn = l('APPLY');
|
||||
%= form_for "${PackageName}d" => (method => 'POST') => begin
|
||||
% param 'trt' => $$${prefix}_data->{trt} unless param 'trt';
|
||||
%= hidden_field 'trt' => $$${prefix}_data->{trt}
|
||||
%# Inputs etc in here.
|
||||
%# Probably finally by a submit.
|
||||
|
Loading…
Reference in New Issue
Block a user