Lines Matching refs:form

34     const FORM_LOGIN_CLASS = "form-" . self::TAG;
41 * Update the old form
42 * @param Doku_Form $form
45 private static function updateDokuFormLogin(Doku_Form &$form)
55 $form->params["class"] = Identity::FORM_IDENTITY_CLASS . " " . self::FORM_LOGIN_CLASS;
61 $newFormContent[] = IdentityFormsHelper::getHeaderHTML($form, self::FORM_LOGIN_CLASS);
66 foreach ($form->_content as $field) {
94 <div class="form-floating">
95 <input type="text" id="inputUserName" class="form-control" placeholder="$loginText" required="required" autofocus="" name="u" value="$loginValue">
104 <div class="form-floating">
105 <input type="password" id="inputPassword" class="form-control" placeholder="$passwordText" required="required" name="p">
142 $form->_content = $newFormContent;
149 * To modify the form and add class
180 $form = &$event->data;
181 $class = get_class($form);
186 * @var Doku_Form $form
188 self::updateDokuFormLogin($form);
193 * @var Form $form
195 self::updateNewFormLogin($form);
220 * https://www.dokuwiki.org/devel:form - documentation
221 * @param Form $form
224 private static function updateNewFormLogin(Form &$form)
234 $form->addClass(Identity::FORM_IDENTITY_CLASS . " " . self::FORM_LOGIN_CLASS);
240 $headerHTML = IdentityFormsHelper::getHeaderHTML($form, self::FORM_LOGIN_CLASS);
242 $form->addHTML($headerHTML, 1);
249 IdentityFormsHelper::deleteFieldSetAndBrFromForm($form);
254 IdentityFormsHelper::toBootStrapSubmitButton($form);
259 $userPosition = $form->findPositionByAttribute("name", "u");
267 $userField = $form->getElementAt($userPosition);
273 $newUserField->addClass("form-control");
279 $form->replaceElement($newUserField, $userPosition);
281 $form->addHTML("<div class=\"form-floating\">", $userPosition);
282 $form->addHTML("<label for=\"$userFieldId\">$loginText</label>", $userPosition + 2);
283 $form->addHTML("</div>", $userPosition + 3);
286 $pwdPosition = $form->findPositionByAttribute("name", "p");
291 $pwdField = $form->getElementAt($pwdPosition);
296 $newPwdField->addClass("form-control");
305 $form->replaceElement($newPwdField, $pwdPosition);
308 $form->addHTML("<div class=\"form-floating\">", $pwdPosition);
309 $form->addHTML("<label for=\"$pwdFieldId\">$passwordText</label>", $pwdPosition + 2);
310 $form->addHTML("</div>", $pwdPosition + 3);
313 $rememberPosition = $form->findPositionByAttribute("name", "r");
318 $rememberField = $form->getElementAt($rememberPosition);
323 $newRememberField->addClass("form-check-input");
324 $form->replaceElement($newRememberField, $rememberPosition);
329 $form->addHTML("<div class=\"form-check py-2\">", $rememberPosition);
330 $form->addHTML("<label for=\"$remFieldId\" class=\"form-check-label\">$remberText</label>", $rememberPosition + 2);
331 $form->addHTML("</div>", $rememberPosition + 3);