Lines Matching refs:form
14 public static function toBoostrapInputElements(Form $form, string $formName) argument
16 for ($i = 0; $i < $form->elementCount(); $i++) {
17 $inputElement = $form->getElementAt($i);
19 $i = self::toBootStrapInputElementAndGetNewLoopingPosition($form, $i, $formName);
26 * @param Form $form - the form
31 …public static function toBootStrapInputElementAndGetNewLoopingPosition(Form $form, int $elementPos… argument
33 $inputElement = $form->getElementAt($elementPosition);
59 $form->replaceElement($newInputField, $elementPosition);
60 $form->addHTML('<div class="form-control-row">', $elementPosition);
61 …$form->addHTML("<label for=\"$inputId\" class=\"form-label\">$label</label>", $elementPosition + 1…
62 $form->addHTML('</div>', $elementPosition + 3);
68 * @param Doku_Form|Form $form
73 … public static function getHeaderHTML($form, string $classPrefix, bool $includeLogo = true): string argument
75 $class = get_class($form);
82 $legend = $form->_content[0]["_legend"];
94 $pos = $form->findPositionByType("fieldsetopen");
99 $title = $form->getElementAt($pos)->val();
188 public static function deleteFieldSetAndBrFromForm(Form $form) argument
191 $field = $form->findPositionByType($type);
193 $form->removeElement($field);
197 for ($i = 0; $i < $form->elementCount(); $i++) {
198 $fieldBr = $form->getElementAt($i);
200 $form->removeElement($i);
208 public static function toBootStrapSubmitButton(Form $form) argument
210 $submitButtonPosition = $form->findPositionByAttribute("type", "submit");
215 $form->getElementAt($submitButtonPosition)
220 public static function toBootstrapResetButton(Form $form) argument
222 $resetButtonPosition = $form->findPositionByAttribute("type", "reset");
227 $form->getElementAt($resetButtonPosition)