Lines Matching refs:form
171 $form = new Form(['method' => 'post']);
172 $cb = $form->addCheckbox('optout', $this->getLang('optout'));
176 $form->addButton('twofactor_optout', $this->getLang('btn_confirm'));
177 echo $form->toHTML();
202 $form = new Form(['method' => 'POST']);
203 $form->addFieldsetOpen($this->getLang('providers'));
205 … $el = $form->addRadioButton('provider', $provider->getLabel())->val($provider->getProviderID());
212 $form->addTagOpen('div')->addClass('buttons');
213 $form->addButton('twofactor_default', $this->getLang('btn_default'))->attr('submit');
214 $form->addButton('twofactor_delete', $this->getLang('btn_remove'))
216 $form->addTagClose('div');
218 $form->addFieldsetClose();
219 echo $form->toHTML();
238 $form = new Form(['method' => 'post']);
239 $form->setHiddenField('do', 'twofactor_profile');
240 $form->setHiddenField('init', '1');
241 $form->addFieldsetOpen($this->getLang('newprovider'));
242 $form->addDropdown('provider', $options, $this->getLang('provider'));
244 $form->addTagOpen('div')->addClass('buttons');
245 $form->addButton('twofactor_setup', $this->getLang('btn_setup'))->attr('type', 'submit');
246 $form->addTagClose('div');
248 $form->addFieldsetClose();
249 echo $form->toHTML();
267 $form = new Form(['method' => 'POST', 'class' => 'provider-' . $providerID]);
268 $form->setHiddenField('do', 'twofactor_profile');
269 $form->setHiddenField('twofactor_setup', '1');
270 $form->setHiddenField('provider', $provider->getProviderID());
272 $form->addFieldsetOpen($provider->getLabel());
273 $provider->renderProfileForm($form);
275 $form->addTagOpen('div')->addClass('buttons');
276 $form->addButton('twofactor_submit', $this->getLang('btn_confirm'))->attr('type', 'submit');
277 $form->addButton('twofactor_delete', $lang['btn_cancel'])->attr('type', 'submit');
278 $form->addTagClose('div');
280 $form->addFieldsetClose();
281 echo $form->toHTML();