[Bps-public-commit] rt-extension-formtools branch, master, updated. 0.50-6-g7d05836

? sunnavy sunnavy at bestpractical.com
Tue Jul 16 09:29:37 EDT 2019


The branch, master has been updated
       via  7d058364a3f889c29b4cb568d99bf1a8f1fe7389 (commit)
      from  a059ccead9f550dd307e941884a41c6c8fa56514 (commit)

Summary of changes:
 html/FormTools/Form | 2 ++
 1 file changed, 2 insertions(+)

- Log -----------------------------------------------------------------
commit 7d058364a3f889c29b4cb568d99bf1a8f1fe7389
Author: Matt Zagrabelny <mzagrabe at d.umn.edu>
Date:   Thu Jul 11 11:22:49 2019 -0500

    Add form_classes parameter to /FormTools/Form component
    
    Allow setting of the HTML class attribute for the Form of FormTools.

diff --git a/html/FormTools/Form b/html/FormTools/Form
index 0bb6204..1b670f4 100644
--- a/html/FormTools/Form
+++ b/html/FormTools/Form
@@ -10,6 +10,7 @@ $enable_persisting   => 1
 $forbid_persisting   => {}
 $form_id             => undef
 $form_name           => undef
+$form_classes        => ''
 $self_service        => 0
 </%args>
 <%init>
@@ -111,6 +112,7 @@ $next_for_validation ||= $m->caller(1)->path;
     enctype="multipart/form-data"
     <% defined $form_id ? ' id="'.$form_id.'"' : '' |n %>
     <% defined $form_name ? ' name="'.$form_name.'"' : '' |n %>
+    class="<% $form_classes %>"
 >
 % if ($validation) {
 <input type="hidden" name="_form_tools_next" value="<%$next%>" />

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list