Commit 2c87b6ae authored by Carsten  Rose's avatar Carsten Rose
Browse files

BuildFormBootstrap: Code cleaned up

parent 46ed17e5
......@@ -200,56 +200,6 @@ BUTTONS;
return $html;
}
/**
* @param $htmlFormElementId
* @param $formElement
* @param $value
* @return string
*/
public function wrapElement($formElement, $elementHtml) {
$html = '';
// if ($formElement['type'] === 'subrecord') {
// // subrecord in render='table' are outside the table
// $html .= $this->wrapItem(WRAP_SETUP_ELEMENT, $this->wrapItem(WRAP_SETUP_SUBRECORD, $formElement['label']));
// $html .= $this->wrapItem(WRAP_SETUP_ELEMENT, $this->wrapItem(WRAP_SETUP_SUBRECORD, $this->$buildElementFunctionName($formElement, $htmlFormElementId, $value)));
// $html .= $this->wrapItem(WRAP_SETUP_ELEMENT, $this->wrapItem(WRAP_SETUP_SUBRECORD, $formElement['note']));
// } else {
// if ($formElement['nestedInFieldSet'] === 'no') {
// $html .= $this->wrap[WRAP_SETUP_ELEMENT][WRAP_SETUP_START];
//
// $htmlElement = $this->$buildElementFunctionName($formElement, $htmlFormElementId, $value);
// if ($formElement['type'] == 'pill') {
// $html .= '<div role="tabpanel" class="tab-pane" id="' . $this->createAnker($formElement['id']) . '">';
//
// $html .= $htmlElement;
// $html .= '</div>';
// } else {
// $html .= $this->wrapItem(WRAP_SETUP_LABEL, $this->buildLabel($htmlFormElementId, $formElement['label']));
// $html .= $this->wrapItem(WRAP_SETUP_INPUT, $htmlElement);
// }
//
// $html .= $this->wrapItem(WRAP_SETUP_NOTE, $formElement['note']);
// $html .= $this->wrap[WRAP_SETUP_ELEMENT][WRAP_SETUP_END];
// } else {
// }
if ($formElement['type'] == 'pill') {
} else {
$html .= $this->wrapItem(WRAP_SETUP_LABEL, $formElement['label']);
}
$html .= $this->wrapItem(WRAP_SETUP_INPUT, $elementHtml);
if ($formElement['note'] !== '')
$html .= $this->wrapItem(WRAP_SETUP_NOTE, $formElement['note']);
// }
return $html;
}
/**
* @param array $formElement
* @param $htmlFormElementId
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment