Lines Matching defs:form

14     public static function toBoostrapInputElements(Form $form, string $formName)
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
28 * @param string $formName - the form name to create unique id (as the profile page has 2 forms)
31 public static function toBootStrapInputElementAndGetNewLoopingPosition(Form $form, int $elementPosition, string $formName): int
33 $inputElement = $form->getElementAt($elementPosition);
58 $newInputField->addClass("form-control");
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
75 $class = get_class($form);
80 * @var Doku_Form $form
82 $legend = $form->_content[0]["_legend"];
92 * @var Form $form
94 $pos = $form->findPositionByType("fieldsetopen");
99 $title = $form->getElementAt($pos)->val();
102 LogUtility::msg("Internal Error: Unknown form class " . $class);
188 public static function deleteFieldSetAndBrFromForm(Form $form)
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)
210 $submitButtonPosition = $form->findPositionByAttribute("type", "submit");
215 $form->getElementAt($submitButtonPosition)
220 public static function toBootstrapResetButton(Form $form)
222 $resetButtonPosition = $form->findPositionByAttribute("type", "reset");
227 $form->getElementAt($resetButtonPosition)