Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
2dcdf14b
Commit
2dcdf14b
authored
Mar 01, 2017
by
Carsten Rose
Browse files
CODING.md, Index.rst: cosmetic.
parent
35da2fdf
Changes
4
Hide whitespace changes
Inline
Side-by-side
doc/CODING.md
View file @
2dcdf14b
...
...
@@ -52,7 +52,7 @@ LOAD
is creatd during form load - individually per browser tab.
*
Faking the STORE_TYPO3 for API calls:
*
The PHP code api/save.php, api/load.php is called directly, without any TYPO3 Framework. Therefore the Typo3 information
'pageId', 'feUser
*', 'beUser*
', 'ttContentUid', ... is not
directly
available.
'pageId', 'feUser
*', 'beUser*
', 'ttContentUid', ... is not available.
*
*Form load*
: an additional hidden Formelement '_sipForTypo3Vars' will be created with a subset of the current
STORE_TYPO3 values. The workaround with the SIP is usefull, cause the same form can be shown on different places (QFQ records) -
this is not very likely, but might happen. The 'on the fly rendered' SIP helps to deliver the status.
...
...
extension/Documentation/AdministratorManual/Index.rst
View file @
2dcdf14b
...
...
@@ -111,6 +111,7 @@ Setup a *report* to manage all *forms*: Create a Typo3 page and insert a content
}
}
.. _config-qfq-ini:
config.qfq.ini
--------------
...
...
extension/Documentation/UsersManual/Index.rst
View file @
2dcdf14b
...
...
@@ -9,6 +9,7 @@
..
.. --------------------------------------------------
.. External Links: `Bootstrap <http://getbootstrap.com/>`_:
.. Add Images: https://wiki.typo3.org/ReST_Syntax#Images
..
.. -*- coding: utf-8 -*- with BOM.
...
...
@@ -79,7 +80,7 @@ QFQ Keywords (Bodytext)
+-------------------+---------------------------------------------------------------------------------+
| <level>.althead | If <level>.sql is empty, these token will be rendered |
+-------------------+---------------------------------------------------------------------------------+
| debugShowBodyText | If ='1' and config.ini:*showDebugInfo=yes*
:
shows a tooltip with bodytext
|
| debugShowBodyText | If ='1' and config.
qfq.
ini:*showDebugInfo=yes*
-
shows a tooltip with bodytext |
+-------------------+---------------------------------------------------------------------------------+
.. _debug:
...
...
@@ -1075,8 +1076,9 @@ Checkboxes can be rendered in mode:
* *No preselection*:
* If there is a default configured on a table column, such a value is selected by default. If the user should actively
choose an option, the 'preselection' can be omitted by specifying an explicit definition on the FormElement field `value`::
* If a form is in 'new' mode and if there is a default value configured on a table column, such a value is shown by default.
There might be situations, where the user should be forced to select a value (e.g. specifying the gender). An unwanted
default value can be suppressed by specifying an explicit definition on the FormElement field `value`::
{{<columnname>:RZ}}
...
...
@@ -1641,7 +1643,7 @@ column on the right side will be rendered.
The used default column (=bootstrap grid) width is *3,6,3* for *label, input, note*.
* The system wide default can be changed via config.qfq.ini :ref:`config
.
qfq
.
ini` - the new settings are the default
* The system wide default can be changed via config.qfq.ini :ref:`config
-
qfq
-
ini` - the new settings are the default
settings for all forms.
* Per *Form* settings can be done in the *Form* parameter field. They overwrite the system wide default.
* Per *FormElement* settings can be done in the *FormElement* parameter field. They overwrite the *Form* setting.
...
...
extension/qfq/sql/formEditor.sql
View file @
2dcdf14b
...
...
@@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS `Form` (
`permitNew`
ENUM
(
'sip'
,
'logged_in'
,
'logged_out'
,
'always'
,
'never'
)
NOT
NULL
DEFAULT
'sip'
,
`permitEdit`
ENUM
(
'sip'
,
'logged_in'
,
'logged_out'
,
'always'
,
'never'
)
NOT
NULL
DEFAULT
'sip'
,
`render`
ENUM
(
'
plain
'
,
'table'
,
'
bootstrap
'
)
NOT
NULL
DEFAULT
'bootstrap'
,
`render`
ENUM
(
'
bootstrap
'
,
'table'
,
'
plain
'
)
NOT
NULL
DEFAULT
'bootstrap'
,
`requiredParameter`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`showButton`
SET
(
'new'
,
'delete'
,
'close'
,
'save'
)
NOT
NULL
DEFAULT
'new,delete,close,save'
,
`multiMode`
ENUM
(
'none'
,
'horizontal'
,
'vertical'
)
NOT
NULL
DEFAULT
'none'
,
...
...
@@ -55,52 +55,52 @@ CREATE TABLE IF NOT EXISTS `Form` (
#
DROP
TABLE
IF
EXISTS
`FormElement`
;
CREATE
TABLE
IF
NOT
EXISTS
`FormElement`
(
`id`
INT
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`formId`
INT
(
11
)
NOT
NULL
,
`feIdContainer`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
,
`dynamicUpdate`
ENUM
(
'yes'
,
'no'
)
NOT
NULL
DEFAULT
'no'
,
`id`
INT
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`formId`
INT
(
11
)
NOT
NULL
,
`feIdContainer`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
,
`dynamicUpdate`
ENUM
(
'yes'
,
'no'
)
NOT
NULL
DEFAULT
'no'
,
`enabled`
ENUM
(
'yes'
,
'no'
)
NOT
NULL
DEFAULT
'yes'
,
`enabled`
ENUM
(
'yes'
,
'no'
)
NOT
NULL
DEFAULT
'yes'
,
`name`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`label`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`name`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`label`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`mode`
ENUM
(
'show'
,
'required'
,
'readonly'
,
'hidden'
)
NOT
NULL
DEFAULT
'show'
,
`modeSql`
TEXT
NOT
NULL
,
`class`
ENUM
(
'native'
,
'action'
,
'container'
)
NOT
NULL
DEFAULT
'native'
,
`mode`
ENUM
(
'show'
,
'required'
,
'readonly'
,
'hidden'
)
NOT
NULL
DEFAULT
'show'
,
`modeSql`
TEXT
NOT
NULL
,
`class`
ENUM
(
'native'
,
'action'
,
'container'
)
NOT
NULL
DEFAULT
'native'
,
`type`
ENUM
(
'checkbox'
,
'date'
,
'datetime'
,
'dateJQW'
,
'datetimeJQW'
,
'extra'
,
'gridJQW'
,
'text'
,
'editor'
,
'time'
,
'note'
,
'password'
,
'radio'
,
'select'
,
'subrecord'
,
'upload'
,
'fieldset'
,
'pill'
,
'templateGroup'
,
'beforeLoad'
,
'beforeSave'
,
'beforeInsert'
,
'beforeUpdate'
,
'beforeDelete'
,
'afterLoad'
,
'afterSave'
,
'afterInsert'
,
'afterUpdate'
,
'afterDelete'
,
'sendMail'
)
NOT
NULL
DEFAULT
'text'
,
`subrecordOption`
SET
(
'edit'
,
'delete'
,
'new'
)
NOT
NULL
DEFAULT
''
,
'afterSave'
,
'afterInsert'
,
'afterUpdate'
,
'afterDelete'
,
'sendMail'
)
NOT
NULL
DEFAULT
'text'
,
`subrecordOption`
SET
(
'edit'
,
'delete'
,
'new'
)
NOT
NULL
DEFAULT
''
,
`checkType`
ENUM
(
'alnumx'
,
'digit'
,
'numerical'
,
'email'
,
'min|max'
,
'min|max date'
,
'pattern'
,
'allbut'
,
'all'
)
NOT
NULL
DEFAULT
'alnumx'
,
`checkPattern`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`checkPattern`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`onChange`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`onChange`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`ord`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
,
`tabindex`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
,
`ord`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
,
`tabindex`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
,
`size`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`maxLength`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`bsLabelColumns`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`bsInputColumns`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`bsNoteColumns`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`rowLabelInputNote`
SET
(
'row'
,
'label'
,
'/label'
,
'input'
,
'/input'
,
'note'
,
'/note'
,
'/row'
)
NOT
NULL
DEFAULT
'row,label,/label,input,/input,note,/note,/row'
,
`note`
TEXT
NOT
NULL
,
`tooltip`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`placeholder`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`size`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`maxLength`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`bsLabelColumns`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`bsInputColumns`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`bsNoteColumns`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`rowLabelInputNote`
SET
(
'row'
,
'label'
,
'/label'
,
'input'
,
'/input'
,
'note'
,
'/note'
,
'/row'
)
NOT
NULL
DEFAULT
'row,label,/label,input,/input,note,/note,/row'
,
`note`
TEXT
NOT
NULL
,
`tooltip`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`placeholder`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`value`
TEXT
NOT
NULL
,
`sql1`
TEXT
NOT
NULL
,
`parameter`
TEXT
NOT
NULL
,
`clientJs`
TEXT
NOT
NULL
,
`value`
TEXT
NOT
NULL
,
`sql1`
TEXT
NOT
NULL
,
`parameter`
TEXT
NOT
NULL
,
`clientJs`
TEXT
NOT
NULL
,
`feGroup`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`deleted`
ENUM
(
'yes'
,
'no'
)
NOT
NULL
DEFAULT
'no'
,
`modified`
TIMESTAMP
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`created`
DATETIME
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
,
`feGroup`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`deleted`
ENUM
(
'yes'
,
'no'
)
NOT
NULL
DEFAULT
'no'
,
`modified`
TIMESTAMP
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`created`
DATETIME
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
,
PRIMARY
KEY
(
`id`
),
KEY
`formId`
(
`formId`
),
...
...
@@ -132,7 +132,7 @@ WHERE name LIKE 'form' OR name LIKE 'formElement';
#
#
FormEditor
:
Form
INSERT
INTO
Form
(
id
,
name
,
title
,
noteInternal
,
tableName
,
permitNew
,
permitEdit
,
render
,
multiSql
,
parameter
)
VALUES
(
1
,
'form'
,
'Form Editor: {{SELECT id, " / ", name FROM Form WHERE id = {{r:S0}}}}'
,
'
Please secure the f
or
m
'
,
(
1
,
'form'
,
'Form Editor: {{SELECT id, " / ", name FROM Form WHERE id = {{r:S0}}}}'
,
'
FormElement Edit
or'
,
'Form'
,
'sip'
,
'sip'
,
'bootstrap'
,
''
,
'maxVisiblePill=5
\n
class=container-fluid'
);
#
FormEditor
:
FormElements
for
'form'
...
...
@@ -156,8 +156,8 @@ VALUES
(
1
,
'tableName'
,
'Table'
,
'required'
,
'select'
,
'all'
,
'native'
,
150
,
0
,
0
,
''
,
''
,
''
,
'{{!SHOW tables}}'
,
'emptyItemAtStart'
,
1
,
''
,
''
,
''
),
(
1
,
'requiredParameter'
,
'Required Parameter'
,
'show'
,
'text'
,
'all'
,
'native'
,
200
,
0
,
255
,
''
,
''
,
''
,
''
,
''
,
2
,
''
,
''
,
''
),
(
1
,
'permitNew'
,
'Permit New'
,
'show'
,
'radio'
,
'all'
,
'native'
,
210
,
0
,
3
,
''
,
''
,
''
,
''
,
''
,
2
,
''
,
''
,
''
),
(
1
,
'permitEdit'
,
'Permit Edit'
,
'show'
,
'radio'
,
'all'
,
'native'
,
220
,
0
,
3
,
''
,
''
,
''
,
''
,
''
,
2
,
''
,
''
,
''
),
(
1
,
'permitNew'
,
'Permit New'
,
'show'
,
'radio'
,
'all'
,
'native'
,
210
,
0
,
10
,
''
,
''
,
''
,
''
,
''
,
2
,
''
,
''
,
''
),
(
1
,
'permitEdit'
,
'Permit Edit'
,
'show'
,
'radio'
,
'all'
,
'native'
,
220
,
0
,
10
,
''
,
''
,
''
,
''
,
''
,
2
,
''
,
''
,
''
),
(
1
,
'render'
,
'Render'
,
'show'
,
'radio'
,
'all'
,
'native'
,
230
,
0
,
3
,
''
,
''
,
''
,
''
,
''
,
2
,
''
,
''
,
''
),
(
1
,
'showButton'
,
'Show button'
,
'show'
,
'checkbox'
,
'all'
,
'native'
,
240
,
0
,
5
,
''
,
''
,
''
,
''
,
'checkBoxMode = multi
\n
orientation=vertical'
,
2
,
''
,
''
,
''
),
...
...
Write
Preview
Markdown
is supported
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