isFirstPill = true; // Set some defaults // if (!isset($this->formSpec['class'])) { // $this->formSpec['class'] = 'container'; // } // $this->formSpec['class'] = 'none'; } /** * */ public function fillWrap() { // $this->wrap[WRAP_SETUP_OUTER][WRAP_SETUP_START] = '
'; // $this->wrap[WRAP_SETUP_OUTER][WRAP_SETUP_END] = '
'; $this->wrap[WRAP_SETUP_TITLE][WRAP_SETUP_START] = ""; // Element: Label + Input + Note $this->wrap[WRAP_SETUP_ELEMENT][WRAP_SETUP_CLASS] = "form-group clearfix"; $this->wrap[WRAP_SETUP_ELEMENT][WRAP_SETUP_START] = "
"; $this->wrap[WRAP_SETUP_ELEMENT][WRAP_SETUP_END] = "
"; $this->wrap[WRAP_SETUP_SUBRECORD][WRAP_SETUP_START] = "
"; $this->wrap[WRAP_SETUP_SUBRECORD][WRAP_SETUP_END] = "
"; $this->wrap[WRAP_SETUP_IN_FIELDSET][WRAP_SETUP_START] = ""; $this->wrap[WRAP_SETUP_IN_FIELDSET][WRAP_SETUP_END] = ""; $this->wrap[WRAP_SETUP_IN_TEMPLATE_GROUP][WRAP_SETUP_START] = ""; $this->wrap[WRAP_SETUP_IN_TEMPLATE_GROUP][WRAP_SETUP_END] = ""; // $this->feDivClass['radio'] = 'radio'; // $this->feDivClass['checkbox'] = 'checkbox'; } /** * @param string $addClass * @return string */ public function getRowOpenTag($addClass = '') { $class = Support::doAttribute('class', [$this->wrap[WRAP_SETUP_ELEMENT][WRAP_SETUP_CLASS], $addClass]); return "
"; } /** * @param $label * @param $input * @param $note */ public function fillWrapLabelInputNote($label, $input, $note) { $this->wrap[WRAP_SETUP_LABEL][WRAP_SETUP_START] = "
"; $this->wrap[WRAP_SETUP_LABEL][WRAP_SETUP_END] = "
"; $this->wrap[WRAP_SETUP_INPUT][WRAP_SETUP_START] = "
"; $this->wrap[WRAP_SETUP_INPUT][WRAP_SETUP_END] = "
"; $this->wrap[WRAP_SETUP_NOTE][WRAP_SETUP_START] = "
"; $this->wrap[WRAP_SETUP_NOTE][WRAP_SETUP_END] = "
"; } /** * @return string */ public function getProcessFilter() { return FORM_ELEMENTS_NATIVE_SUBRECORD; } /** * @return string */ public function doSubrecords() { return ''; } /** * @return string */ public function head() { $html = ''; $html .= '
formSpec[F_CLASS], TRUE) . '>'; // main
around everything, Whole FORM; class="container" or class="container-fluid" //TODO: nicer error reporting - make test with 'unknown index' here - unset($this->formSpec['title']) - See #3424 $title = Support::wrapTag('