Lines Matching refs:form

18      * preprocess edit form data
65 // create the Editor form
66 $form = new Form(['id' => 'dw__editform']);
67 $form->setHiddenField('id', $ID);
68 $form->setHiddenField('rev', $REV);
69 $form->setHiddenField('date', $DATE);
70 $form->setHiddenField('prefix', $PRE . '.');
71 $form->setHiddenField('suffix', $SUF);
72 $form->setHiddenField('changecheck', $check);
76 'form' => $form,
91 $form->setHiddenField('target', $data['target']);
94 $form->setHiddenField('hid', $INPUT->str('hid'));
97 $form->setHiddenField('codeblockOffset', $INPUT->str('codeblockOffset'));
100 $form->addTagOpen('div')->id('wiki__editbar')->addClass('editBar');
102 $form->addTagOpen('div')->id('size__ctl');
103 $form->addTagClose('div');
107 $form->addTagOpen('div')->addClass('editButtons');
108 $form->addButton('do[save]', $lang['btn_save'])->attr('type', 'submit')
111 $form->addButton('do[preview]', $lang['btn_preview'])->attr('type', 'submit')
114 $form->addButton('do[cancel]', $lang['btn_cancel'])->attr('type', 'submit')
116 $form->addTagClose('div'); // close div editButtons class
119 $form->addTagOpen('div')->addClass('summary');
120 $input = $form->addTextInput('summary', $lang['summary'])
128 $form->addHTML(' ');
129 $form->addCheckbox('minor', $lang['minoredit'])->id('edit__minoredit')->addClass('nowrap')->val('1');
131 $form->addTagClose('div'); // close div summary class
134 $form->addTagClose('div'); // close div editBar class
144 $form->addTagOpen('div')->addClass('license');
145 $form->addHTML($lang['licenseok']
147 $form->addTagClose('div');
180 echo $form->toHTML('Edit');
186 * Display the default edit form (textarea)
190 * @param array{wr: bool, media_manager: bool, target: string, intro_locale: string, form: Form} $data
207 $data['form']->addTextarea('wikitext', '')->attrs($attr)->val($TEXT)