Lines Matching refs:form
134 $form = new \dokuwiki\Form\Form([
138 $form->setHiddenField('id', $id); // we need it for the ajax call
146 $form->setHiddenField('s_name', $USERINFO['name']);
147 $form->setHiddenField('s_email', $USERINFO['mail']);
149 $form->addTextInput('s_name', $this->getLang('yourname'))->addClass('edit');
150 $form->addTextInput('s_email', $this->getLang('youremailaddress'))->addClass('edit');
153 $form->addTextInput('r_email', $this->getLang('recipients'))
156 $form->addTextInput('subject', $this->getLang('subject'))
159 $form->addTextarea('comment', $this->getLang('message'))
167 if ($captcha) $form->addHTML($captcha->getHTML());
169 $form->addTagOpen('div')->addClass('buttons');
170 $form->addButton('submit', $this->getLang('send'))->attr('type', 'submit');
171 $form->addTagClose('div');
173 return $form->toHTML();