Lines Matching refs:form

23     const TAG_UPDATE = "profile-update"; // form 1
24 const TAG_DELETE = "profile-delete"; // form 2
25 const FORM_PROFILE_UPDATE_CLASS = "form-" . self::TAG_UPDATE;
26 const FORM_PROFILE_DELETE_CLASS = "form-" . self::TAG_DELETE;
34 * To modify the profile update form and add class
48 * To modify the register form and add class
67 $form = &$event->data;
68 $class = get_class($form);
73 * @var Doku_Form $form
75 self::updateDokuFormProfileUpdate($form);
80 * @var Form $form
82 self::updateNewFormProfileUpdate($form);
92 $form = &$event->data;
93 $class = get_class($form);
98 * @var Doku_Form $form
100 self::updateDokuFormProfileDelete($form);
105 * @var Form $form
107 self::updateNewFormProfileDelete($form);
114 private static function updateNewFormProfileDelete(Form &$form)
125 $form->addClass(Identity::FORM_IDENTITY_CLASS . " " . $deleteFormClassSuffix);
130 $headerHTML = IdentityFormsHelper::getHeaderHTML($form, $deleteFormClassSuffix, false);
132 $form->addHTML($headerHTML, 1);
135 IdentityFormsHelper::deleteFieldSetAndBrFromForm($form);
141 $submitButtonPosition = $form->findPositionByAttribute("type", "submit");
146 $form->getElementAt($submitButtonPosition)
154 $passwordElementPosition = $form->findPositionByAttribute("type", "password");
160 IdentityFormsHelper::toBootStrapInputElementAndGetNewLoopingPosition($form, $passwordElementPosition, $deleteFormClassSuffix);
165 private static function updateDokuFormProfileDelete(Doku_Form &$form)
175 $class = &$form->params["class"];
182 $newFormContent[] = IdentityFormsHelper::getHeaderHTML($form, self::FORM_PROFILE_DELETE_CLASS, false);
187 foreach ($form->_content as $field) {
215 <input type="password" class="form-control" placeholder="$passwordText" required="required" name="$fieldName">
237 $form->_content = $newFormContent;
241 private static function updateNewFormProfileUpdate(Form &$form)
251 $form->addClass(Identity::FORM_IDENTITY_CLASS . " " . self::FORM_PROFILE_UPDATE_CLASS);
257 $headerHTML = IdentityFormsHelper::getHeaderHTML($form, self::FORM_PROFILE_UPDATE_CLASS);
259 $form->addHTML($headerHTML, 1);
262 IdentityFormsHelper::deleteFieldSetAndBrFromForm($form);
267 IdentityFormsHelper::toBootStrapSubmitButton($form);
268 IdentityFormsHelper::toBootstrapResetButton($form);
273 IdentityFormsHelper::toBoostrapInputElements($form, self::FORM_PROFILE_UPDATE_CLASS);
278 private static function updateDokuFormProfileUpdate(Doku_Form &$form)
288 $class = &$form->params["class"];
295 $newFormContent[] = IdentityFormsHelper::getHeaderHTML($form, self::FORM_PROFILE_UPDATE_CLASS);
300 * https://getbootstrap.com/docs/5.0/forms/layout/#horizontal-form
304 $rowClass .= " form-group";
317 foreach ($form->_content as $field) {
359 <label for="inputUserName" class="col-sm-$firstColWeight col-form-label">$loginText</label>
361 <input type="text" class="form-control" id="inputUserName" placeholder="Username" name="$fieldName" value="$loginValue" disabled>
372 <label for="inputRealName" class="col-sm-$firstColWeight col-form-label">$fullNameText</label>
374 <input type="text" class="form-control" id="inputRealName" placeholder="$fullNameText" tabindex="1" name="$fieldName" value="$fullNameValue" required="required">
385 <label for="inputEmail" class="col-sm-$firstColWeight col-form-label">$emailText</label>
387 <input type="email" class="form-control" id="inputEmail" placeholder="name@example.com" tabindex="2" name="$fieldName" value="$emailValue" required="required">
397 <label for="inputPassword" class="col-sm-$firstColWeight col-form-label">$passwordText</label>
399 <input type="password" class="form-control" id="inputPassword" placeholder="$passwordText" tabindex="3" name="$fieldName">
409 <label for="inputPasswordCheck" class="col-sm-$firstColWeight col-form-label">$passwordCheckText</label>
411 <input type="password" class="form-control" id="inputPasswordCheck" placeholder="$passwordText" tabindex="4" name="$fieldName">
421 <label for="inputPasswordCheck" class="col-sm-$firstColWeight col-form-label">$passwordCheckText</label>
423 <input type="password" class="form-control" id="inputPasswordCheck" placeholder="$passwordCheckText" tabindex="5" name="$fieldName" required="required">
442 $form->_content = $newFormContent;