Commit 62f84882 authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files
parent 644e1d88
......@@ -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);
};
/**
......
......@@ -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">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment