Lines Matching refs:form

17      * preprocess edit form data
64 // create the Editor form
65 $form = new Form(['id' => 'dw__editform']);
66 $form->setHiddenField('id', $ID);
67 $form->setHiddenField('rev', $REV);
68 $form->setHiddenField('date', $DATE);
69 $form->setHiddenField('prefix', $PRE .'.');
70 $form->setHiddenField('suffix', $SUF);
71 $form->setHiddenField('changecheck', $check);
75 'form' => $form,
90 $form->setHiddenField('target', $data['target']);
93 $form->setHiddenField('hid', $INPUT->str('hid'));
96 $form->setHiddenField('codeblockOffset', $INPUT->str('codeblockOffset'));
99 $form->addTagOpen('div')->id('wiki__editbar')->addClass('editBar');
101 $form->addTagOpen('div')->id('size__ctl');
102 $form->addTagClose('div');
106 $form->addTagOpen('div')->addClass('editButtons');
107 $form->addButton('do[save]', $lang['btn_save'])->attr('type', 'submit')
110 $form->addButton('do[preview]', $lang['btn_preview'])->attr('type', 'submit')
113 $form->addButton('do[cancel]', $lang['btn_cancel'])->attr('type', 'submit')
115 $form->addTagClose('div'); // close div editButtons class
118 $form->addTagOpen('div')->addClass('summary');
119 $input = $form->addTextInput('summary', $lang['summary'])
127 $form->addHTML(' ');
128 $form->addCheckbox('minor', $lang['minoredit'])->id('edit__minoredit')->addClass('nowrap')->val('1');
130 $form->addTagClose('div'); // close div summary class
133 $form->addTagClose('div'); // close div editBar class
143 $form->addTagOpen('div')->addClass('license');
144 $form->addHTML($lang['licenseok']
147 $form->addTagClose('div');
180 echo $form->toHTML('Edit');
186 * Display the default edit form (textarea)
207 /** @var dokuwiki\Form\Form $data['form'] */
208 $data['form']->addTextarea('wikitext','')->attrs($attr)->val($TEXT)