Lines Matching defs:form

50      * Add the password confirmation field to the form if configured
52 * @param Form $form
55 protected function addPasswordConfirmation(Form $form)
61 $form->addHTML("<br>\n");
63 $input = $form->addPasswordInput('oldpass', $lang['oldpass'])->attrs($attr)
66 $form->addHTML("<br>\n");
70 * Create the profile form
80 $form = new Form(['id' => 'dw__register']);
81 $form->addTagOpen('div')->addClass('no');
82 $form->addFieldsetOpen($lang['profile']);
83 $form->setHiddenField('do', 'profile');
84 $form->setHiddenField('save', '1');
87 $input = $form->addTextInput('login', $lang['user'])
92 $form->addHTML("<br>\n");
96 $input = $form->addTextInput('fullname', $lang['fullname'])
101 $form->addHTML("<br>\n");
105 $input = $form->addTextInput('email', $lang['email'])
110 $form->addHTML("<br>\n");
114 $input = $form->addPasswordInput('newpass', $lang['newpass'])->attrs($attr)->addClass('edit');
116 $form->addHTML("<br>\n");
118 $input = $form->addPasswordInput('passchk', $lang['passchk'])->attrs($attr)->addClass('edit');
120 $form->addHTML("<br>\n");
123 $this->addPasswordConfirmation($form);
125 $form->addButton('', $lang['btn_save'])->attr('type', 'submit');
126 $form->addButton('', $lang['btn_reset'])->attr('type', 'reset');
128 $form->addFieldsetClose();
129 $form->addTagClose('div');
131 return $form;
135 * Create the profile delete form
143 $form = new Form(['id' => 'dw__profiledelete']);
144 $form->addTagOpen('div')->addClass('no');
145 $form->addFieldsetOpen($lang['profdeleteuser']);
146 $form->setHiddenField('do', 'profile_delete');
147 $form->setHiddenField('delete', '1');
149 $form->addCheckbox('confirm_delete', $lang['profconfdelete'])
154 $this->addPasswordConfirmation($form);
156 $form->addButton('', $lang['btn_deleteuser'])->attr('type', 'submit');
157 $form->addFieldsetClose();
158 $form->addTagClose('div');
159 return $form;
163 * Get the authentication token form
174 $form = new Form(['id' => 'dw__profiletoken', 'action' => wl(), 'method' => 'POST']);
175 $form->setHiddenField('do', 'authtoken');
176 $form->setHiddenField('id', 'ID');
177 $form->addFieldsetOpen($lang['proftokenlegend']);
178 $form->addHTML('<p>' . $lang['proftokeninfo'] . '</p>');
179 $form->addHTML('<p><code style="display: block; word-break: break-word">' . $token->getToken() . '</code></p>');
180 $form->addButton('regen', $lang['proftokengenerate']);
181 $form->addFieldsetClose();
183 return $form;