Lines Matching defs:form

32     const FORM_REGISTER_CLASS = "form-" . self::TAG;
41 * To modify the register form and add class
59 $form = &$event->data;
60 $class = get_class($form);
65 * @var Doku_Form $form
67 self::updateDokuFormRegistration($form);
72 * @var Form $form
74 self::updateNewFormRegistration($form);
111 private static function updateNewFormRegistration(Form &$form)
121 $form->addClass(Identity::FORM_IDENTITY_CLASS . " " . self::FORM_REGISTER_CLASS);
125 $headerHTML = IdentityFormsHelper::getHeaderHTML($form, self::FORM_REGISTER_CLASS);
127 $form->addHTML($headerHTML, 1);
130 IdentityFormsHelper::deleteFieldSetAndBrFromForm($form);
131 IdentityFormsHelper::toBoostrapInputElements($form, self::FORM_REGISTER_CLASS);
132 IdentityFormsHelper::toBootStrapSubmitButton($form);
135 private static function updateDokuFormRegistration(Doku_Form &$form)
146 * @var Doku_Form $form
148 $class = &$form->params["class"];
155 $newFormContent[] = IdentityFormsHelper::getHeaderHTML($form, self::FORM_REGISTER_CLASS);
160 * https://getbootstrap.com/docs/5.0/forms/layout/#horizontal-form
164 $rowClass .= " form-group";
177 foreach ($form->_content as $pos => $field) {
207 <label for="inputUserName" class="col-sm-$firstColWeight col-form-label">$loginText</label>
209 <input type="text" class="form-control" id="inputUserName" placeholder="Username" tabindex="1" name="login" value="$loginValue" required="required">
219 <label for="inputPassword" class="col-sm-$firstColWeight col-form-label">$passwordText</label>
221 <input type="password" class="form-control" id="inputPassword" placeholder="$passwordText" tabindex="2" name="pass" required="required">
231 <label for="inputPasswordCheck" class="col-sm-$firstColWeight col-form-label">$passwordCheckText</label>
233 <input type="password" class="form-control" id="inputPasswordCheck" placeholder="$passwordText" tabindex="3" name="passchk" required="required">
244 <label for="inputRealName" class="col-sm-$firstColWeight col-form-label">$fullNameText</label>
246 <input type="text" class="form-control" id="inputRealName" placeholder="$fullNameText" tabindex="4" name="fullname" value="$fullNameValue" required="required">
257 <label for="inputEmail" class="col-sm-$firstColWeight col-form-label">$emailText</label>
259 <input type="email" class="form-control" id="inputEmail" placeholder="name@example.com" tabindex="5" name="email" value="$emailValue" required="required">
274 * Link in the form footer to login and resend
288 $form->_content = $newFormContent;