Lines Matching refs:form
6 $form = new Doku_Form(array('id' => 'dw__testform', 'action' => '/test'));
7 $form->startFieldset('Test');
8 $form->addHidden('summary', 'changes &c');
9 $form->addElement(form_makeTextField('t', 'v', 'Text', 'text__id', 'block'));
10 $form->addElement(form_makeCheckboxField('r', '1', 'Check', 'check__id', 'simple'));
11 $form->addElement(form_makeButton('submit', 'save', 'Save', array('accesskey'=>'s')));
12 $form->addElement(form_makeButton('submit', 'cancel', 'Cancel'));
13 $form->endFieldset();
14 return $form;
46 $form = $this->_testform();
48 $form->printForm();
51 $form->addHidden('sectok', getSecurityToken());
56 $form = $this->_testform();
57 $e1 =& $form->getElementAt(1);
65 $e2 =& $form->getElementAt(99);
70 $form = $this->_testform();
71 $this->assertEquals($form->findElementByType('button'), 3);
72 $this->assertFalse($form->findElementByType('text'));
76 $form = $this->_testform();
77 $this->assertEquals($form->findElementById('check__id'), 2);
78 $this->assertFalse($form->findElementById('dw__testform'));
82 $form = $this->_testform();
83 $this->assertEquals($form->findElementByAttribute('value','Cancel'), 4);
84 $this->assertFalse($form->findElementByAttribute('name','cancel'));
88 $form = new Doku_Form(array('id' => 'dw__testform', 'action' => '/test'));
89 $form->startFieldset('Test');
90 $form->addHidden('summary', 'changes &c');
91 $form->addElement(form_makeTextField('t', 'v', 'Text', 'text__id', 'block'));
92 $form->addElement(form_makeCheckboxField('r', '1', 'Check', 'check__id', 'simple'));
93 $form->addElement(form_makeButton('submit', 'save', 'Save', array('accesskey'=>'s')));
94 $form->addElement(form_makeButton('submit', 'cancel', 'Cancel'));
96 $form->printForm();