Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
d6cc4a77
Commit
d6cc4a77
authored
Feb 11, 2016
by
Carsten Rose
Browse files
AbstractBuildForm: renamed general input field from 'input' to 'text'.
parent
edd9830b
Changes
3
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/AbstractBuildForm.php
View file @
d6cc4a77
...
...
@@ -57,7 +57,7 @@ abstract class AbstractBuildForm {
'email'
=>
'Input'
,
'gridJQW'
=>
'GridJQW'
,
'hidden'
=>
'Hidden'
,
'
inpu
t'
=>
'Input'
,
'
tex
t'
=>
'Input'
,
'note'
=>
'Note'
,
'password'
=>
'Input'
,
'radio'
=>
'Radio'
,
...
...
@@ -75,7 +75,7 @@ abstract class AbstractBuildForm {
'email'
=>
'Native'
,
'gridJQW'
=>
'Native'
,
'hidden'
=>
'Native'
,
'
inpu
t'
=>
'Native'
,
'
tex
t'
=>
'Native'
,
'note'
=>
'Native'
,
'password'
=>
'Native'
,
'radio'
=>
'Native'
,
...
...
@@ -557,7 +557,6 @@ abstract class AbstractBuildForm {
}
$attributeBase
=
$this
->
getAttributeMode
(
$formElement
);
$attributeBase
.
=
$this
->
getAttribute
(
'name'
,
$htmlFormElementId
);
$attributeBase
.
=
$this
->
getAttribute
(
'type'
,
$formElement
[
'type'
]);
switch
(
$formElement
[
'checkBoxMode'
])
{
...
...
@@ -889,7 +888,7 @@ abstract class AbstractBuildForm {
$attribute
=
$this
->
getAttributeMode
(
$formElement
);
$attribute
.
=
$this
->
getAttribute
(
'name'
,
$htmlFormElementId
);
$attribute
.
=
$this
->
getAttributeList
(
$formElement
,
[
'type'
,
'autofocus'
]);
$attribute
.
=
$this
->
getAttributeList
(
$formElement
,
[
'autofocus'
]);
if
(
isset
(
$formElement
[
'size'
])
&&
$formElement
[
'size'
]
>
1
)
{
$attribute
.
=
$this
->
getAttribute
(
'size'
,
$formElement
[
'size'
]);
...
...
@@ -949,7 +948,8 @@ abstract class AbstractBuildForm {
$control
=
$this
->
getSubrecordColumnControl
(
array_keys
(
$formElement
[
'sql1'
][
0
]));
// $html .= '<b>' . $formElement['label'] . '</b>';
$html
.
=
'<table border="1">'
;
// $html .= '<table border="1">';
$html
.
=
'<table class="table">'
;
$html
.
=
'<tr><th></th><th>'
.
implode
(
'</th><th>'
,
$control
[
'title'
])
.
'</th></tr>'
;
foreach
(
$formElement
[
'sql1'
]
as
$row
)
{
...
...
extension/qfq/sql/formEditor.sql
View file @
d6cc4a77
...
...
@@ -64,11 +64,11 @@ CREATE TABLE IF NOT EXISTS `FormElement` (
`mode`
ENUM
(
'show'
,
'readonly'
,
'required'
,
'lock'
,
'disabled'
)
NOT
NULL
DEFAULT
'show'
,
`class`
ENUM
(
'native'
,
'action'
,
'container'
)
NOT
NULL
DEFAULT
'native'
,
`type`
ENUM
(
'checkbox'
,
'dateJQW'
,
'datetimeJQW'
,
'gridJQW'
,
'hidden'
,
'
inpu
t'
,
`type`
ENUM
(
'checkbox'
,
'dateJQW'
,
'datetimeJQW'
,
'gridJQW'
,
'hidden'
,
'
tex
t'
,
'note'
,
'password'
,
'radio'
,
'select'
,
'subrecord'
,
'upload'
,
'fieldset'
,
'pill'
,
'before_load'
,
'before_save'
,
'before_insert'
,
'before_update'
,
'before_delete'
,
'after_load'
,
'after_save'
,
'after_insert'
,
'after_update'
,
'after_delete'
,
'feGroup'
,
'sendmail'
)
NOT
NULL
DEFAULT
'
inpu
t'
,
'sendmail'
)
NOT
NULL
DEFAULT
'
tex
t'
,
`checkType`
ENUM
(
''
,
'min|max'
,
'pattern'
,
'number'
,
'email'
)
NOT
NULL
DEFAULT
''
,
`checkPattern`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
...
...
@@ -130,31 +130,31 @@ VALUES
(
1
,
'various'
,
'Various'
,
'show'
,
'pill'
,
'container'
,
30
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
0
),
(
1
,
'formelement'
,
'Formelement'
,
'show'
,
'pill'
,
'container'
,
40
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
0
),
(
1
,
'id'
,
'id'
,
'readonly'
,
'
inpu
t'
,
'native'
,
100
,
10
,
11
,
''
,
''
,
''
,
''
,
''
,
''
,
1
),
(
1
,
'name'
,
'Name'
,
'show'
,
'
inpu
t'
,
'native'
,
120
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
'autofocus
=on
'
,
1
),
(
1
,
'title'
,
'Title'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
1
),
(
1
,
'noteInternal'
,
'Note'
,
'show'
,
'
inpu
t'
,
'native'
,
140
,
'40,3'
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
1
),
(
1
,
'id'
,
'id'
,
'readonly'
,
'
tex
t'
,
'native'
,
100
,
10
,
11
,
''
,
''
,
''
,
''
,
''
,
''
,
1
),
(
1
,
'name'
,
'Name'
,
'show'
,
'
tex
t'
,
'native'
,
120
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
'autofocus'
,
1
),
(
1
,
'title'
,
'Title'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
1
),
(
1
,
'noteInternal'
,
'Note'
,
'show'
,
'
tex
t'
,
'native'
,
140
,
'40,3'
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
1
),
(
1
,
'tableName'
,
'Table'
,
'required'
,
'select'
,
'native'
,
150
,
0
,
0
,
''
,
''
,
''
,
'{{!SHOW tables}}'
,
''
,
'emptyItemAtStart'
,
1
),
(
1
,
'permitNew'
,
'Permit New'
,
'show'
,
'radio'
,
'native'
,
160
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
2
),
(
1
,
'permitEdit'
,
'Permit Edit'
,
'show'
,
'radio'
,
'native'
,
170
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
2
),
(
1
,
'permitUrlParameter'
,
'Permit Url Parameter'
,
'show'
,
'
inpu
t'
,
'native'
,
180
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
2
),
(
1
,
'permitUrlParameter'
,
'Permit Url Parameter'
,
'show'
,
'
tex
t'
,
'native'
,
180
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
2
),
(
1
,
'render'
,
'Render'
,
'show'
,
'radio'
,
'native'
,
190
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
2
),
(
1
,
'multi'
,
'Multi'
,
'show'
,
'fieldset'
,
'native'
,
210
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiMode'
,
'Multi Mode'
,
'show'
,
'radio'
,
'native'
,
220
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiSql'
,
'Multi SQL'
,
'show'
,
'
inpu
t'
,
'native'
,
230
,
'40,3'
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiDetailForm'
,
'Multi Detail Form'
,
'show'
,
'
inpu
t'
,
'native'
,
240
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiDetailFormParameter'
,
'Multi Detail Form Parameter'
,
'show'
,
'
inpu
t'
,
'native'
,
250
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiSql'
,
'Multi SQL'
,
'show'
,
'
tex
t'
,
'native'
,
230
,
'40,3'
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiDetailForm'
,
'Multi Detail Form'
,
'show'
,
'
tex
t'
,
'native'
,
240
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiDetailFormParameter'
,
'Multi Detail Form Parameter'
,
'show'
,
'
tex
t'
,
'native'
,
250
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'forwardMode'
,
'Forward'
,
'show'
,
'radio'
,
'native'
,
260
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'forwardPage'
,
'Forward Page'
,
'show'
,
'
inpu
t'
,
'native'
,
270
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'bsLabelColumns'
,
'BS Label Columns'
,
'show'
,
'
inpu
t'
,
'native'
,
280
,
40
,
250
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'bsInputColumns'
,
'BS Input Columns'
,
'show'
,
'
inpu
t'
,
'native'
,
290
,
40
,
250
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'bsNoteColumns'
,
'BS Note Columns'
,
'show'
,
'
inpu
t'
,
'native'
,
300
,
40
,
250
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'forwardPage'
,
'Forward Page'
,
'show'
,
'
tex
t'
,
'native'
,
270
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'bsLabelColumns'
,
'BS Label Columns'
,
'show'
,
'
tex
t'
,
'native'
,
280
,
40
,
250
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'bsInputColumns'
,
'BS Input Columns'
,
'show'
,
'
tex
t'
,
'native'
,
290
,
40
,
250
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'bsNoteColumns'
,
'BS Note Columns'
,
'show'
,
'
tex
t'
,
'native'
,
300
,
40
,
250
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'deleted'
,
'Deleted'
,
'show'
,
'checkbox'
,
'native'
,
400
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'modified'
,
'Modified'
,
'readonly'
,
'
inpu
t'
,
'native'
,
410
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'created'
,
'Created'
,
'readonly'
,
'
inpu
t'
,
'native'
,
420
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'modified'
,
'Modified'
,
'readonly'
,
'
tex
t'
,
'native'
,
410
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'created'
,
'Created'
,
'readonly'
,
'
tex
t'
,
'native'
,
420
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
''
,
'FormElements'
,
'show'
,
'subrecord'
,
'native'
,
500
,
0
,
0
,
''
,
''
,
''
,
'{{!SELECT * FROM FormElement WHERE formId={{id:R0}}}}'
,
...
...
@@ -178,36 +178,36 @@ VALUES
(
103
,
2
,
'value'
,
'Value'
,
'show'
,
'pill'
,
'container'
,
20
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
'no'
),
(
104
,
2
,
'info'
,
'Info'
,
'show'
,
'pill'
,
'container'
,
20
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
'no'
),
(
110
,
2
,
'id'
,
'id'
,
'readonly'
,
'
inpu
t'
,
'native'
,
100
,
10
,
11
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
111
,
2
,
'formId'
,
'formId'
,
'readonly'
,
'
inpu
t'
,
'native'
,
120
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
110
,
2
,
'id'
,
'id'
,
'readonly'
,
'
tex
t'
,
'native'
,
100
,
10
,
11
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
111
,
2
,
'formId'
,
'formId'
,
'readonly'
,
'
tex
t'
,
'native'
,
120
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
112
,
2
,
'feIdContainer'
,
'Container'
,
'show'
,
'select'
,
'native'
,
150
,
0
,
0
,
''
,
''
,
''
,
'{{!SELECT fe.id, CONCAT(fe.class, " / ", fe.label) FROM FormElement As fe WHERE fe.formId={{id}} AND fe.class="container" ORDER BY fe.ord }}'
,
''
,
'emptyItemAtStart'
,
100
,
'no'
),
(
113
,
2
,
'enabled'
,
'Enabled'
,
'show'
,
'checkbox'
,
'native'
,
120
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
114
,
2
,
'name'
,
'Name'
,
'show'
,
'
inpu
t'
,
'native'
,
120
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
115
,
2
,
'label'
,
'Label'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
114
,
2
,
'name'
,
'Name'
,
'show'
,
'
tex
t'
,
'native'
,
120
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
115
,
2
,
'label'
,
'Label'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
116
,
2
,
'mode'
,
'Mode'
,
'show'
,
'select'
,
'native'
,
120
,
0
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
117
,
2
,
'class'
,
'Class'
,
'show'
,
'select'
,
'native'
,
120
,
0
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
118
,
2
,
'type'
,
'Type'
,
'show'
,
'select'
,
'native'
,
120
,
0
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
119
,
2
,
'checkType'
,
'Check Type'
,
'show'
,
'select'
,
'native'
,
120
,
0
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
120
,
2
,
'checkPattern'
,
'Check Pattern'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
121
,
2
,
'onChange'
,
'JS onChange'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
122
,
2
,
'ord'
,
'Order'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
123
,
2
,
'tabindex'
,
'tabindex'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
124
,
2
,
'size'
,
'Size'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
125
,
2
,
'maxlenght'
,
'Maxlength'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
126
,
2
,
'note'
,
'note'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
127
,
2
,
'tooltip'
,
'Tooltip'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
128
,
2
,
'placeholder'
,
'Placeholder'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
129
,
2
,
'value'
,
'value'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
130
,
2
,
'sql1'
,
'sql1'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
'40,4'
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
103
,
'no'
),
(
131
,
2
,
'parameter'
,
'Parameter'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
'40,4'
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
103
,
'no'
),
(
132
,
2
,
'clientJs'
,
'ClientJS'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
103
,
'no'
),
(
133
,
2
,
'feGroup'
,
'feGroup'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
),
(
120
,
2
,
'checkPattern'
,
'Check Pattern'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
121
,
2
,
'onChange'
,
'JS onChange'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
122
,
2
,
'ord'
,
'Order'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
123
,
2
,
'tabindex'
,
'tabindex'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
124
,
2
,
'size'
,
'Size'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
125
,
2
,
'maxlenght'
,
'Maxlength'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
126
,
2
,
'note'
,
'note'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
127
,
2
,
'tooltip'
,
'Tooltip'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
128
,
2
,
'placeholder'
,
'Placeholder'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
129
,
2
,
'value'
,
'value'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
130
,
2
,
'sql1'
,
'sql1'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
'40,4'
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
103
,
'no'
),
(
131
,
2
,
'parameter'
,
'Parameter'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
'40,4'
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
103
,
'no'
),
(
132
,
2
,
'clientJs'
,
'ClientJS'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
103
,
'no'
),
(
133
,
2
,
'feGroup'
,
'feGroup'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
),
(
134
,
2
,
'debug'
,
'Debug'
,
'show'
,
'checkbox'
,
'native'
,
130
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
),
(
135
,
2
,
'deleted'
,
'Deleted'
,
'show'
,
'checkbox'
,
'native'
,
400
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
),
(
136
,
2
,
'modified'
,
'Modified'
,
'readonly'
,
'
inpu
t'
,
'native'
,
410
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
),
(
137
,
2
,
'created'
,
'Created'
,
'readonly'
,
'
inpu
t'
,
'native'
,
420
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
);
(
136
,
2
,
'modified'
,
'Modified'
,
'readonly'
,
'
tex
t'
,
'native'
,
410
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
),
(
137
,
2
,
'created'
,
'Created'
,
'readonly'
,
'
tex
t'
,
'native'
,
420
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
);
#
FormEditor
:
Small
...
...
@@ -220,5 +220,5 @@ INSERT INTO Form (name, title, noteInternal, tableName, permitNew, permitEdit, r
INSERT
INTO
FormElement
(
id
,
formId
,
name
,
label
,
mode
,
type
,
class
,
ord
,
size
,
maxLength
,
note
,
clientJs
,
value
,
sql1
,
sql2
,
parameter
,
feIdContainer
,
debug
)
VALUES
(
200
,
3
,
'name'
,
'Name'
,
'show'
,
'
inpu
t'
,
'native'
,
10
,
50
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
'no'
),
(
201
,
3
,
'firstName'
,
'Firstname'
,
'show'
,
'
inpu
t'
,
'native'
,
10
,
50
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
'no'
);
(
200
,
3
,
'name'
,
'Name'
,
'show'
,
'
tex
t'
,
'native'
,
10
,
50
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
'no'
),
(
201
,
3
,
'firstName'
,
'Firstname'
,
'show'
,
'
tex
t'
,
'native'
,
10
,
50
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
'no'
);
extension/qfq/tests/phpunit/fixtures/TestFormEditor.sql
View file @
d6cc4a77
...
...
@@ -64,11 +64,11 @@ CREATE TABLE IF NOT EXISTS `FormElement` (
`mode`
ENUM
(
'show'
,
'readonly'
,
'required'
,
'lock'
,
'disabled'
)
NOT
NULL
DEFAULT
'show'
,
`class`
ENUM
(
'native'
,
'action'
,
'container'
)
NOT
NULL
DEFAULT
'native'
,
`type`
ENUM
(
'checkbox'
,
'dateJQW'
,
'datetimeJQW'
,
'gridJQW'
,
'hidden'
,
'
inpu
t'
,
`type`
ENUM
(
'checkbox'
,
'dateJQW'
,
'datetimeJQW'
,
'gridJQW'
,
'hidden'
,
'
tex
t'
,
'note'
,
'password'
,
'radio'
,
'select'
,
'subrecord'
,
'upload'
,
'fieldset'
,
'pill'
,
'before_load'
,
'before_save'
,
'before_insert'
,
'before_update'
,
'before_delete'
,
'after_load'
,
'after_save'
,
'after_insert'
,
'after_update'
,
'after_delete'
,
'feGroup'
,
'sendmail'
)
NOT
NULL
DEFAULT
'
inpu
t'
,
'sendmail'
)
NOT
NULL
DEFAULT
'
tex
t'
,
`checkType`
ENUM
(
''
,
'min|max'
,
'pattern'
,
'number'
,
'email'
)
NOT
NULL
DEFAULT
''
,
`checkPattern`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
...
...
@@ -130,31 +130,31 @@ VALUES
(
1
,
'various'
,
'Various'
,
'show'
,
'pill'
,
'container'
,
30
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
0
),
(
1
,
'formelement'
,
'Formelement'
,
'show'
,
'pill'
,
'container'
,
40
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
0
),
(
1
,
'id'
,
'id'
,
'readonly'
,
'
inpu
t'
,
'native'
,
100
,
10
,
11
,
''
,
''
,
''
,
''
,
''
,
''
,
1
),
(
1
,
'name'
,
'Name'
,
'show'
,
'
inpu
t'
,
'native'
,
120
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
'autofocus=on'
,
1
),
(
1
,
'title'
,
'Title'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
1
),
(
1
,
'noteInternal'
,
'Note'
,
'show'
,
'
inpu
t'
,
'native'
,
140
,
'40,3'
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
1
),
(
1
,
'id'
,
'id'
,
'readonly'
,
'
tex
t'
,
'native'
,
100
,
10
,
11
,
''
,
''
,
''
,
''
,
''
,
''
,
1
),
(
1
,
'name'
,
'Name'
,
'show'
,
'
tex
t'
,
'native'
,
120
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
'autofocus=on'
,
1
),
(
1
,
'title'
,
'Title'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
1
),
(
1
,
'noteInternal'
,
'Note'
,
'show'
,
'
tex
t'
,
'native'
,
140
,
'40,3'
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
1
),
(
1
,
'tableName'
,
'Table'
,
'required'
,
'select'
,
'native'
,
150
,
0
,
0
,
''
,
''
,
''
,
'{{!SHOW tables}}'
,
''
,
'emptyItemAtStart'
,
1
),
(
1
,
'permitNew'
,
'Permit New'
,
'show'
,
'radio'
,
'native'
,
160
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
2
),
(
1
,
'permitEdit'
,
'Permit Edit'
,
'show'
,
'radio'
,
'native'
,
170
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
2
),
(
1
,
'permitUrlParameter'
,
'Permit Url Parameter'
,
'show'
,
'
inpu
t'
,
'native'
,
180
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
2
),
(
1
,
'permitUrlParameter'
,
'Permit Url Parameter'
,
'show'
,
'
tex
t'
,
'native'
,
180
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
2
),
(
1
,
'render'
,
'Render'
,
'show'
,
'radio'
,
'native'
,
190
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
2
),
(
1
,
'multi'
,
'Multi'
,
'show'
,
'fieldset'
,
'native'
,
210
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiMode'
,
'Multi Mode'
,
'show'
,
'radio'
,
'native'
,
220
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiSql'
,
'Multi SQL'
,
'show'
,
'
inpu
t'
,
'native'
,
230
,
'40,3'
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiDetailForm'
,
'Multi Detail Form'
,
'show'
,
'
inpu
t'
,
'native'
,
240
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiDetailFormParameter'
,
'Multi Detail Form Parameter'
,
'show'
,
'
inpu
t'
,
'native'
,
250
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiSql'
,
'Multi SQL'
,
'show'
,
'
tex
t'
,
'native'
,
230
,
'40,3'
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiDetailForm'
,
'Multi Detail Form'
,
'show'
,
'
tex
t'
,
'native'
,
240
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'multiDetailFormParameter'
,
'Multi Detail Form Parameter'
,
'show'
,
'
tex
t'
,
'native'
,
250
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'forwardMode'
,
'Forward'
,
'show'
,
'radio'
,
'native'
,
260
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'forwardPage'
,
'Forward Page'
,
'show'
,
'
inpu
t'
,
'native'
,
270
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'bsLabelColumns'
,
'BS Label Columns'
,
'show'
,
'
inpu
t'
,
'native'
,
280
,
40
,
250
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'bsInputColumns'
,
'BS Input Columns'
,
'show'
,
'
inpu
t'
,
'native'
,
290
,
40
,
250
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'bsNoteColumns'
,
'BS Note Columns'
,
'show'
,
'
inpu
t'
,
'native'
,
300
,
40
,
250
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'forwardPage'
,
'Forward Page'
,
'show'
,
'
tex
t'
,
'native'
,
270
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'bsLabelColumns'
,
'BS Label Columns'
,
'show'
,
'
tex
t'
,
'native'
,
280
,
40
,
250
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'bsInputColumns'
,
'BS Input Columns'
,
'show'
,
'
tex
t'
,
'native'
,
290
,
40
,
250
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'bsNoteColumns'
,
'BS Note Columns'
,
'show'
,
'
tex
t'
,
'native'
,
300
,
40
,
250
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'deleted'
,
'Deleted'
,
'show'
,
'checkbox'
,
'native'
,
400
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'modified'
,
'Modified'
,
'readonly'
,
'
inpu
t'
,
'native'
,
410
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'created'
,
'Created'
,
'readonly'
,
'
inpu
t'
,
'native'
,
420
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'modified'
,
'Modified'
,
'readonly'
,
'
tex
t'
,
'native'
,
410
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
'created'
,
'Created'
,
'readonly'
,
'
tex
t'
,
'native'
,
420
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
3
),
(
1
,
''
,
'FormElements'
,
'show'
,
'subrecord'
,
'native'
,
500
,
0
,
0
,
''
,
''
,
''
,
'{{!SELECT * FROM FormElement WHERE formId={{id:R0}}}}'
,
...
...
@@ -178,36 +178,36 @@ VALUES
(
103
,
2
,
'value'
,
'Value'
,
'show'
,
'pill'
,
'container'
,
20
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
'no'
),
(
104
,
2
,
'info'
,
'Info'
,
'show'
,
'pill'
,
'container'
,
20
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
'no'
),
(
110
,
2
,
'id'
,
'id'
,
'readonly'
,
'
inpu
t'
,
'native'
,
100
,
10
,
11
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
111
,
2
,
'formId'
,
'formId'
,
'readonly'
,
'
inpu
t'
,
'native'
,
120
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
110
,
2
,
'id'
,
'id'
,
'readonly'
,
'
tex
t'
,
'native'
,
100
,
10
,
11
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
111
,
2
,
'formId'
,
'formId'
,
'readonly'
,
'
tex
t'
,
'native'
,
120
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
112
,
2
,
'feIdContainer'
,
'Container'
,
'show'
,
'select'
,
'native'
,
150
,
0
,
0
,
''
,
''
,
''
,
'{{!SELECT fe.id, CONCAT(fe.class, " / ", fe.label) FROM FormElement As fe WHERE fe.formId={{id}} AND fe.class="container" ORDER BY fe.ord }}'
,
''
,
'emptyItemAtStart'
,
100
,
'no'
),
(
113
,
2
,
'enabled'
,
'Enabled'
,
'show'
,
'checkbox'
,
'native'
,
120
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
114
,
2
,
'name'
,
'Name'
,
'show'
,
'
inpu
t'
,
'native'
,
120
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
115
,
2
,
'label'
,
'Label'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
114
,
2
,
'name'
,
'Name'
,
'show'
,
'
tex
t'
,
'native'
,
120
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
115
,
2
,
'label'
,
'Label'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
116
,
2
,
'mode'
,
'Mode'
,
'show'
,
'select'
,
'native'
,
120
,
0
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
117
,
2
,
'class'
,
'Class'
,
'show'
,
'select'
,
'native'
,
120
,
0
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
118
,
2
,
'type'
,
'Type'
,
'show'
,
'select'
,
'native'
,
120
,
0
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
100
,
'no'
),
(
119
,
2
,
'checkType'
,
'Check Type'
,
'show'
,
'select'
,
'native'
,
120
,
0
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
120
,
2
,
'checkPattern'
,
'Check Pattern'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
121
,
2
,
'onChange'
,
'JS onChange'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
122
,
2
,
'ord'
,
'Order'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
123
,
2
,
'tabindex'
,
'tabindex'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
124
,
2
,
'size'
,
'Size'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
125
,
2
,
'maxlenght'
,
'Maxlength'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
126
,
2
,
'note'
,
'note'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
127
,
2
,
'tooltip'
,
'Tooltip'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
128
,
2
,
'placeholder'
,
'Placeholder'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
129
,
2
,
'value'
,
'value'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
130
,
2
,
'sql1'
,
'sql1'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
'40,4'
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
103
,
'no'
),
(
131
,
2
,
'parameter'
,
'Parameter'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
'40,4'
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
103
,
'no'
),
(
132
,
2
,
'clientJs'
,
'ClientJS'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
103
,
'no'
),
(
133
,
2
,
'feGroup'
,
'feGroup'
,
'show'
,
'
inpu
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
),
(
120
,
2
,
'checkPattern'
,
'Check Pattern'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
121
,
2
,
'onChange'
,
'JS onChange'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
122
,
2
,
'ord'
,
'Order'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
123
,
2
,
'tabindex'
,
'tabindex'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
101
,
'no'
),
(
124
,
2
,
'size'
,
'Size'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
125
,
2
,
'maxlenght'
,
'Maxlength'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
126
,
2
,
'note'
,
'note'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
127
,
2
,
'tooltip'
,
'Tooltip'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
128
,
2
,
'placeholder'
,
'Placeholder'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
129
,
2
,
'value'
,
'value'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
102
,
'no'
),
(
130
,
2
,
'sql1'
,
'sql1'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
'40,4'
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
103
,
'no'
),
(
131
,
2
,
'parameter'
,
'Parameter'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
'40,4'
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
103
,
'no'
),
(
132
,
2
,
'clientJs'
,
'ClientJS'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
103
,
'no'
),
(
133
,
2
,
'feGroup'
,
'feGroup'
,
'show'
,
'
tex
t'
,
'native'
,
130
,
40
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
),
(
134
,
2
,
'debug'
,
'Debug'
,
'show'
,
'checkbox'
,
'native'
,
130
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
),
(
135
,
2
,
'deleted'
,
'Deleted'
,
'show'
,
'checkbox'
,
'native'
,
400
,
0
,
0
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
),
(
136
,
2
,
'modified'
,
'Modified'
,
'readonly'
,
'
inpu
t'
,
'native'
,
410
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
),
(
137
,
2
,
'created'
,
'Created'
,
'readonly'
,
'
inpu
t'
,
'native'
,
420
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
);
(
136
,
2
,
'modified'
,
'Modified'
,
'readonly'
,
'
tex
t'
,
'native'
,
410
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
),
(
137
,
2
,
'created'
,
'Created'
,
'readonly'
,
'
tex
t'
,
'native'
,
420
,
40
,
20
,
''
,
''
,
''
,
''
,
''
,
''
,
104
,
'no'
);
#
FormEditor
:
Small
...
...
@@ -221,5 +221,5 @@ INSERT INTO Form (name, title, noteInternal, tableName, permitNew, permitEdit, r
INSERT
INTO
FormElement
(
id
,
formId
,
name
,
label
,
mode
,
type
,
class
,
ord
,
size
,
maxLength
,
note
,
clientJs
,
value
,
sql1
,
sql2
,
parameter
,
feIdContainer
,
debug
)
VALUES
(
200
,
3
,
'name'
,
'Name'
,
'show'
,
'
inpu
t'
,
'native'
,
10
,
50
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
'no'
),
(
201
,
3
,
'firstName'
,
'Firstname'
,
'show'
,
'
inpu
t'
,
'native'
,
10
,
50
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
'no'
);
(
200
,
3
,
'name'
,
'Name'
,
'show'
,
'
tex
t'
,
'native'
,
10
,
50
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
'no'
),
(
201
,
3
,
'firstName'
,
'Firstname'
,
'show'
,
'
tex
t'
,
'native'
,
10
,
50
,
255
,
''
,
''
,
''
,
''
,
''
,
''
,
0
,
'no'
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment