Lines Matching refs:form
42 * @param Doku_Form $form
45 private static function updateDokuFormLogin(Doku_Form &$form) argument
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) {
142 $form->_content = $newFormContent;
180 $form = &$event->data;
181 $class = get_class($form);
188 self::updateDokuFormLogin($form);
195 self::updateNewFormLogin($form);
221 * @param Form $form
224 private static function updateNewFormLogin(Form &$form) argument
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);
281 $form->replaceElement($newUserField, $userPosition);
283 $form->addHTML("<div class=\"form-floating\">", $userPosition);
284 $form->addHTML("<label for=\"$userFieldId\">$loginText</label>", $userPosition + 2);
285 $form->addHTML("</div>", $userPosition + 3);
288 $pwdPosition = $form->findPositionByAttribute("name", "p");
293 $pwdField = $form->getElementAt($pwdPosition);
308 $form->replaceElement($newPwdField, $pwdPosition);
311 $form->addHTML("<div class=\"form-floating\">", $pwdPosition);
312 $form->addHTML("<label for=\"$pwdFieldId\">$passwordText</label>", $pwdPosition + 2);
313 $form->addHTML("</div>", $pwdPosition + 3);
316 $rememberPosition = $form->findPositionByAttribute("name", "r");
321 $rememberField = $form->getElementAt($rememberPosition);
327 $form->replaceElement($newRememberField, $rememberPosition);
332 $form->addHTML("<div class=\"form-check py-2\">", $rememberPosition);
333 …$form->addHTML("<label for=\"$remFieldId\" class=\"form-check-label\">$remberText</label>", $remem…
334 $form->addHTML("</div>", $rememberPosition + 3);