diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-04-05 21:19:34 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-04-05 21:19:34 +0200 |
commit | 7c98fd91403e8217cefb80e60689d446fd7765b2 (patch) | |
tree | 2aa4b6202f7f3815294d2b312edd7af5363d2cd4 | |
parent | 8f6fa3462f91df986a84383afce9408561341d63 (diff) |
Fix revert to enable headers. Skip headers when FORMBUILDER_NOHEADER in set.
-rwxr-xr-x | index.cgi | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -105,20 +105,25 @@ if ($form->submitted) { $infostring .= "\n<P>The following info has been submitted:"; $form->{opt}{messages}{form_confirm_text} = "$infostring"; print $form->confirm( -# header => 1, + header => 1, template => $ack_path ); } else { print $form->render( -# header => 1, + header => 1, sticky => (! $form->validate), #FIXME text => $infostring, template => $req_path ); } +} elsif ($ENV{'FORMBUILDER_NOHEADER'}) { + print $form->render( + header => 0, + template => $req_path + ); } else { print $form->render( -# header => 1, + header => 1, template => $req_path ); } |