Lines Matching refs:form
82 … $form = new Form(['enctype' => 'multipart/form-data', 'id' => 'plugin__userimportextended_csv']);
83 $form->setHiddenField('do', 'admin');
84 $form->setHiddenField('page', $this->getPluginName());
85 $form->addFieldsetOpen($this->getLang('legend_defaults'));
86 $form->addTextInput('defaults[name]', $this->getLang('form_name') . '*');
87 $form->addHTML('<br>');
88 $form->addTextInput('defaults[email]', $this->getLang('form_email') . '*');
89 $form->addHTML('<br>');
90 $form->addTextInput('defaults[password]', $this->getLang('form_password') . '*');
91 $form->addHTML('<br>');
92 $form->addTextInput('defaults[groups]', $this->getLang('form_groups'));
93 $form->addFieldsetClose();
94 $form->addFieldsetOpen($this->getLang('legend_csv'));
95 … $form->addElement(new \dokuwiki\Form\InputElement('file', 'import'))->attr('accept', '.csv');
96 $form->addHTML('<br>');
97 $form->addButton('cmd[import]', $this->getLang('btn_import'));
98 $form->addFieldsetClose();
99 echo $form->toHTML();