Lines Matching defs:form
37 // create the draft form
38 $form = new Form(['id' => 'dw__editform']);
39 $form->addTagOpen('div')->addClass('no');
40 $form->setHiddenField('id', $INFO['id']);
41 $form->setHiddenField('date', $draft->getDraftDate());
42 $form->setHiddenField('wikitext', $text);
44 $form->addTagOpen('div')->id('draft__status');
45 $form->addHTML($draft->getDraftMessage());
46 $form->addTagClose('div');
47 $form->addButton('do[recover]', $lang['btn_recover'])->attrs(['type' => 'submit', 'tabindex' => '1']);
48 $form->addButton('do[draftdel]', $lang['btn_draftdel'])->attrs(['type' => 'submit', 'tabindex' => '2']);
49 $form->addButton('do[show]', $lang['btn_cancel'])->attrs(['type' => 'submit', 'tabindex' => '3']);
50 $form->addTagClose('div');
52 echo $form->toHTML('Draft');