From 82abb600c8e327b226a2f2c33c85d3a19f622b47 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 28 Jun 2016 09:01:43 +0000 Subject: [PATCH] form : Allow to define a class text to form object git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2792 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- form.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/form.php b/form.php index 4e9aafb..8e47b63 100644 --- a/form.php +++ b/form.php @@ -35,6 +35,9 @@ class form /** The Bootstrap width of the column of fields */ public $fieldwidth = 10; + /** Define a class for form object */ + public $formClass = "form-horizontal"; + /** Create a form * @param string|null $formName The form name */ @@ -142,7 +145,7 @@ class form $res = "
formName != "") $res .= " id='$this->formName'"; - $res .= " class='form-horizontal'>\n"; + $res .= " class='".$this->formClass."'>\n"; $group = ""; if (isset ($_SESSION["domframework"]["form"]["values"])) {