[Bps-public-commit] rt-extension-formtools branch, master, updated. 0.07_02-14-g972b4e3
Kevin Falcone
falcone at bestpractical.com
Thu Dec 15 21:11:40 EST 2011
The branch, master has been updated
via 972b4e351e783749b39f0330ae9147fe8064c153 (commit)
from b3dbf3240ce3b0e46c79640518f38a02145212b3 (commit)
Summary of changes:
html/FormTools/Form | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 972b4e351e783749b39f0330ae9147fe8064c153
Author: Matt Zagrabelny <mzagrabe at d.umn.edu>
Date: Thu Nov 10 09:25:48 2011 -0600
HTML id added as form_id to form component
If 'form_id' is passed into the Form component, then have it show up as an
attribute in the html form element.
diff --git a/html/FormTools/Form b/html/FormTools/Form
index b8b832f..15b3e51 100644
--- a/html/FormTools/Form
+++ b/html/FormTools/Form
@@ -6,6 +6,7 @@ $include_page_layout => 1
$ShowBar => 1
$validation => 0
$forbid_persisting => {}
+$form_id => undef
</%args>
<%init>
use RT::Extension::FormTools;
@@ -84,7 +85,7 @@ $next_for_validation ||= $m->caller(1)->path;
<& /Elements/ListActions, actions => \@results &>
-<form method="POST" action="<% $validation ? $next_for_validation : $next %>" enctype="multipart/form-data">
+<form method="POST" action="<% $validation ? $next_for_validation : $next %>" enctype="multipart/form-data"<% defined $form_id ? ' id="'.$form_id.'"' : '' |n %>>
% if ($validation) {
<input type="hidden" name="_form_tools_next" value="<%$next%>" />
% }
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list