From 8faba458da1a5d26f9d4bb3d6de16b3aa8d7daae Mon Sep 17 00:00:00 2001 From: Thomas de Jesus Date: Tue, 7 Feb 2017 11:39:41 -0600 Subject: [PATCH] Update PHPWS_Form.php Not sure this is right, but it would help modules like Form Generator with textareas and apply bootstrap's class to it. I also added ckeditor to the instructions and submission message of form generator (which you murdered) for better formatting. --- src-phpws-legacy/src/PHPWS_Form.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-phpws-legacy/src/PHPWS_Form.php b/src-phpws-legacy/src/PHPWS_Form.php index 42eb7952d..912ffd670 100644 --- a/src-phpws-legacy/src/PHPWS_Form.php +++ b/src-phpws-legacy/src/PHPWS_Form.php @@ -1642,11 +1642,12 @@ public static function formTextField($name, $value, $size = 30, $maxsize = 255, return $element->get(); } - public static function formTextArea($name, $value = null, $rows = DFLT_ROWS, $cols = DFLT_COLS, $label = null) + public static function formTextArea($name, $value = null, $rows = DFLT_ROWS, $cols = DFLT_COLS, $label = null, $class = 'form-control') { $element = new Form_TextArea($name, $value); $element->setRows($rows); $element->setCols($cols); + $element->setClass($class); return $element->get(); }