[% # This will backtrack if next_template is set to $home # call default_template instead of plan_bactrack directly form_action = next_template || plan_backtrack || default_template || default_step || me; form_extra = ""; IF template.onsubmit; form_extra = "$form_extra onsubmit='${template.onsubmit}'"; END; IF template.next_template_target; form_extra = "$form_extra target='${template.next_action_target}'"; END; DEFAULT form_method = "post"; IF form_method == "post"; DEFAULT form_enctype = "multipart/form-data"; END; IF form_enctype; form_extra = "$form_extra enctype='$form_enctype'"; END; ### Special consideration for id param ### as to give canonical urls on post ####### NO. Would only be useful if posting to the same page #IF q.param('id'); # idpart = "?id=" _ q.param('id'); #END; %]
[% UNLESS next_template %] [% END %] [% admin_mode = req.session.admin_mode %]