diff --git a/htdocs/core/class/html.formsetup.class.php b/htdocs/core/class/html.formsetup.class.php index 616242d017a..4fdf79291bb 100644 --- a/htdocs/core/class/html.formsetup.class.php +++ b/htdocs/core/class/html.formsetup.class.php @@ -130,12 +130,13 @@ class FormSetup /** - * generateOutput + * Generate the form (in read or edit mode depending on $editMode) * * @param bool $editMode true will display output on edit mod - * @return string html output + * @param bool $hideTitle True to hide the first title line + * @return string Html output */ - public function generateOutput($editMode = false) + public function generateOutput($editMode = false, $hideTitle = false) { global $hookmanager, $action; @@ -167,7 +168,7 @@ class FormSetup } // generate output table - $out .= $this->generateTableOutput($editMode); + $out .= $this->generateTableOutput($editMode, $hideTitle); $reshook = $hookmanager->executeHooks('formSetupBeforeGenerateOutputButton', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks @@ -200,10 +201,11 @@ class FormSetup /** * generateTableOutput * - * @param bool $editMode true will display output on edit mod - * @return string html output + * @param bool $editMode True will display output on edit modECM + * @param bool $hideTitle True to hide the first title line + * @return string Html output */ - public function generateTableOutput($editMode = false) + public function generateTableOutput($editMode = false, $hideTitle = false) { global $hookmanager, $action; require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php'; @@ -220,12 +222,14 @@ class FormSetup return $hookmanager->resPrint; } else { $out = ''; - $out .= ''; - $out .= ''; - $out .= ' '; - $out .= ' '; - $out .= ''; - $out .= ''; + if (empty($hideTitle)) { + $out .= ''; + $out .= ''; + $out .= ' '; + $out .= ' '; + $out .= ''; + $out .= ''; + } // Sort items before render $this->sortingItems(); @@ -686,7 +690,7 @@ class FormSetupItem } /** - * reload conf value from databases is an alias of loadValueFromConf + * Reload conf value from databases is an alias of loadValueFromConf * * @deprecated * @return bool
' . $this->langs->trans("Parameter") . '' . $this->langs->trans("Value") . '
' . $this->langs->trans("Parameter") . '' . $this->langs->trans("Value") . '