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
This commit is contained in:
2016-06-28 09:01:43 +00:00
parent d621438f0c
commit 82abb600c8

View File

@@ -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 = "<form action='#' method='$method'";
if ($this->formName != "")
$res .= " id='$this->formName'";
$res .= " class='form-horizontal'>\n";
$res .= " class='".$this->formClass."'>\n";
$group = "";
if (isset ($_SESSION["domframework"]["form"]["values"]))
{