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
62f84882
Commit
62f84882
authored
Mar 22, 2017
by
Rafael Ostertag
Browse files
Fixed
https://project.math.uzh.ch/issues/3249
parent
644e1d88
Changes
2
Show whitespace changes
Inline
Side-by-side
javascript/src/FieldTemplate.js
View file @
62f84882
...
...
@@ -54,6 +54,12 @@ var QfqNS = QfqNS || {};
n
.
expandRetainedPlaceholders
(
deserializedTemplate
,
lines
);
$target
.
append
(
deserializedTemplate
);
n
.
informFormOfChange
(
$target
);
};
n
.
informFormOfChange
=
function
(
$sourceOfChange
)
{
var
$enclosingForm
=
$sourceOfChange
.
closest
(
"
form
"
);
$enclosingForm
.
change
();
};
/**
...
...
@@ -127,6 +133,7 @@ var QfqNS = QfqNS || {};
$line
.
remove
();
n
.
reExpandLineByLine
(
$container
);
n
.
informFormOfChange
(
$container
);
};
/**
...
...
mockup/fieldtemplates.html
View file @
62f84882
...
...
@@ -54,6 +54,47 @@
<div
class=
"col-md-6 qfq-fields"
id=
"target"
data-qfq-line-template=
"#template"
>
<div
class=
"form-inline qfq-line"
>
<div
class=
"form-group"
>
<label
for=
"id1_1"
class=
"control-label"
>
Zeile (A-K) 1
</label>
<input
id=
"id1_1"
type=
"text"
class=
"form-control"
name=
"name1_1"
>
</div>
<div
class=
"form-group"
>
<label
for=
"id2_1"
class=
"control-label"
>
Zeile (1-10) 1
</label>
<input
id=
"id2_1"
type=
"text"
class=
"form-control"
name=
"name2_1"
>
</div>
<div
class=
"form-group"
>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
name=
"name3_1"
>
Zweizeilig
</label>
</div>
</div>
</div>
<div
class=
"form-inline qfq-line"
>
<div
class=
"form-group"
>
<label
for=
"id1_2"
class=
"control-label"
>
Zeile (A-K) 2
</label>
<input
id=
"id1_2"
type=
"text"
class=
"form-control"
name=
"name1_2"
>
</div>
<div
class=
"form-group"
>
<label
for=
"id2_2"
class=
"control-label"
>
Zeile (1-10) 2
</label>
<input
id=
"id2_2"
type=
"text"
class=
"form-control"
name=
"name2_2"
>
</div>
<div
class=
"form-group"
>
<div
class=
"checkbox"
>
<label>
<input
type=
"checkbox"
name=
"name3_2"
>
Zweizeilig
</label>
</div>
</div>
<div
class=
"form-group qfq-delete-button"
>
<button
type=
"button"
onclick=
"QfqNS.removeThisChild(this)"
>
Remove
</button>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
...
...
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