Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
1d943848
Commit
1d943848
authored
8 years ago
by
Carsten Rose
Browse files
Options
Downloads
Patches
Plain Diff
Manual.rst: extended description & example to templateGroup.
parent
4aa9a901
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extension/Documentation/Manual.rst
+13
-8
13 additions, 8 deletions
extension/Documentation/Manual.rst
with
13 additions
and
8 deletions
extension/Documentation/Manual.rst
+
13
−
8
View file @
1d943848
...
@@ -1192,8 +1192,8 @@ beside every *templateGroup*. The first copy of a templateGroup can't be removed
...
@@ -1192,8 +1192,8 @@ beside every *templateGroup*. The first copy of a templateGroup can't be removed
* *tgAddText*: Text shown on the button. Default: `Add`.
* *tgAddText*: Text shown on the button. Default: `Add`.
* *tgRemoveClass*: Class of the 'remove' button. Default: `btn btn-default`.
* *tgRemoveClass*: Class of the 'remove' button. Default: `btn btn-default`.
* *tgRemoveText*: Text shown on the button. Default: `Remove`.
* *tgRemoveText*: Text shown on the button. Default: `Remove`.
* *tgClass*: Class wrapped around every copy of the *templateGroup*.
E.g. the class `qfq-child-margin-top` adds a
* *tgClass*: Class wrapped around every copy of the *templateGroup*.
margin between two copies of the *templateGroup*. Default: empty
E.g. the class `qfq-child-margin-top` adds a
margin between two copies of the *templateGroup*. Default: empty
Multiple *templateGroups* per form are allowed.
Multiple *templateGroups* per form are allowed.
...
@@ -1201,6 +1201,8 @@ The name of the native FormElements, inside the templateGroup, which represents
...
@@ -1201,6 +1201,8 @@ The name of the native FormElements, inside the templateGroup, which represents
`%d`. E.g. the columns `grade1`, `grade2`, `grade3` needs a *FormElement.name* = `grade%d`. The counting will always start with 1.
`%d`. E.g. the columns `grade1`, `grade2`, `grade3` needs a *FormElement.name* = `grade%d`. The counting will always start with 1.
The placeholder `%d` can also be used in the *FormElement.label*
The placeholder `%d` can also be used in the *FormElement.label*
Example of styling the Add/ Delete Button: :ref:`example_class_template_group`
Class: Native
Class: Native
-------------
-------------
...
@@ -2359,17 +2361,20 @@ Relation: `Person.id = Address.personId`
...
@@ -2359,17 +2361,20 @@ Relation: `Person.id = Address.personId`
* `sqlInsert={{INSERT INTO Note (note) VALUES ('{{note:F:allbut:s}}') }}`
* `sqlInsert={{INSERT INTO Note (note) VALUES ('{{note:F:allbut:s}}') }}`
* `sqlUpdate={{UPDATE Note SET note='{{note:F:allbut:s}}' WHERE id={{slaveId:V}} }}`
* `sqlUpdate={{UPDATE Note SET note='{{note:F:allbut:s}}' WHERE id={{slaveId:V}} }}`
.. _example_class_template_group:
Icons Template Group
Icons Template Group
^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^
* FormElement.parameter
This example will display grafics instead of text 'add' and 'remove'. Also there is a distance between the templateGroups.
::
* FormElement.parameter
::
tgAddClass=btn alert-success
tgClass = qfq-child-margin-top
tgAddText=<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
tgAddClass = btn alert-success
tgRemoveClass=btn btn-danger alert-danger
tgAddText = <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
tgRemoveText=<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
tgRemoveClass = btn btn-danger alert-danger
tgRemoveText = <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
Chart
Chart
^^^^^
^^^^^
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment