This repository was archived by the owner on May 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm.php
More file actions
59 lines (51 loc) · 1.76 KB
/
Copy pathForm.php
File metadata and controls
59 lines (51 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
class Creogen_Form extends Zend_Form
{
public $viewScript = null;
public $leftLabelElement = array(
'ViewHelper',
array(array('data' => 'HtmlTag'), array('tag'=> 'div')),
'Label',
array('row' => 'HtmlTag', array('tag' => 'div', 'class' => 'field')),
);
public $fullwidthLeftLabelElement = array(
'ViewHelper',
array(array('data' => 'HtmlTag'), array('tag'=> 'div', 'class' => 'field-inner fullwidth')),
'Label',
// array('row' => 'HtmlTag', array('tag' => 'div', 'class' => 'itext fullwidth')),
);
public $noLabelElement = array(
'ViewHelper',
array(array('data' => 'HtmlTag'), array('tag'=> 'div')),
array('row' => 'HtmlTag', array('tag' => 'div', 'class' => 'field')),
);
public $noLabelNoWrapperElement = array(
'ViewHelper',
);
public $underLabelElement = array(
'ViewHelper',
array(array('data' => 'HtmlTag'), array('tag'=> 'div', 'class' => 'field-inner')),
'Label',
array('row' => 'HtmlTag', array('tag' => 'div', 'class' => 'field block')),
);
public $underLabelFullwidthElement = array(
'ViewHelper',
array(array('data' => 'HtmlTag'), array('tag'=> 'div', 'class' => 'field-inner fullwidth')),
'Label',
array('row' => 'HtmlTag', array('tag' => 'div', 'class' => 'field block')),
);
public function loadDefaultDecorators()
{
if ($this->viewScript) {
$this->setDecorators(array(
array('ViewScript', array('viewScript' => $this->viewScript))
));
} else {
$this->setDecorators(array(
'FormElements',
'Fieldset',
'Form',
));
}
}
}