diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 88925512..b98c8ae9 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -1178,6 +1178,8 @@ class htmlOutputText extends htmlElement { private $isBold = false; /** mark as required */ private $markAsRequired = false; + /** no wrap */ + private $noWrap = false; /** * Constructor. @@ -1202,6 +1204,9 @@ class htmlOutputText extends htmlElement { * @return array List of input field names and their type (name => type) */ function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) { + if ($this->noWrap) { + echo "
"; + } if ($this->isBold) { echo ""; } @@ -1219,6 +1224,9 @@ class htmlOutputText extends htmlElement { if ($this->isBold) { echo ""; } + if ($this->noWrap) { + echo "
"; + } return array(); } @@ -1240,6 +1248,15 @@ class htmlOutputText extends htmlElement { $this->markAsRequired = $markAsRequired; } + /** + * Specifies if word wrap is allowed for this text. + * + * @param boolean $noWrap no wrapping if set to true (default false) + */ + public function setNoWrap($noWrap) { + $this->noWrap = $noWrap; + } + } /** diff --git a/lam/templates/masscreate.php b/lam/templates/masscreate.php index 4f6d1e5a..3466f5b0 100644 --- a/lam/templates/masscreate.php +++ b/lam/templates/masscreate.php @@ -361,8 +361,9 @@ function showMainPage($scope, $selectedModules) { $rowCells[] = $columnSpacer; $rowCells[] = new htmlHelpLink($columns[$modules[$m]][$i]['help'], $modules[$m], $scope); $rowCells[] = $columnSpacer; - $descriptionText = new htmlOutputText($columns[$modules[$m]][$i]['description'] . $required); + $descriptionText = new htmlOutputText($columns[$modules[$m]][$i]['description']); $descriptionText->setMarkAsRequired($required); + $descriptionText->setNoWrap(true); $rowCells[] = $descriptionText; $rowCells[] = $columnSpacer; $rowCells[] = new htmlOutputText($columns[$modules[$m]][$i]['name']);