Skip to content
GitLab
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
f1b89abd
Commit
f1b89abd
authored
Feb 11, 2016
by
Carsten Rose
Browse files
api: templates for load/save.
BuildFormBootstrap: Save Button prepared. AbstarcFromBuild: form.id specified
parent
432b6ba4
Changes
4
Hide whitespace changes
Inline
Side-by-side
api/load.php
→
extension/qfq/
api/load.php
View file @
f1b89abd
File moved
api/save.php
→
extension/qfq/
api/save.php
View file @
f1b89abd
...
...
@@ -4,4 +4,6 @@
* User: ep
* Date: 12/23/15
* Time: 6:16 PM
*/
\ No newline at end of file
*/
echo
'Hello World'
;
\ No newline at end of file
extension/qfq/qfq/AbstractBuildForm.php
View file @
f1b89abd
...
...
@@ -174,6 +174,9 @@ abstract class AbstractBuildForm {
*/
public
function
getFormTagAtrributes
()
{
//TODO: ttconetn id eintragen
// $attribute['id'] = $this->store->getVar(STORE_TYPO3,'1234');
$attribute
[
'id'
]
=
1234
;
$attribute
[
'method'
]
=
'post'
;
$attribute
[
'action'
]
=
$this
->
getActionUrl
();
$attribute
[
'target'
]
=
'_top'
;
...
...
extension/qfq/qfq/BuildFormBootstrap.php
View file @
f1b89abd
...
...
@@ -171,14 +171,14 @@ class BuildFormBootstrap extends AbstractBuildForm {
<div class="col-md-2 ">
<div class="btn-toolbar pull-right" role="toolbar">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-ok"></span></button>
<button type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-remove"></span></button>
<button
id="save-button"
type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-ok"></span></button>
<button
id="close-button"
type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-remove"></span></button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-trash"></span></button>
<button
id="delete-button"
type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-trash"></span></button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-plus"></span></button>
<button
id="new-button"
type="button" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-plus"></span></button>
</div>
</div>
</div>
...
...
@@ -223,6 +223,20 @@ BUTTONS;
var qfqPageState = new QfqNS.PageState();
var qfqPage = new QfqNS.QfqPage({pageState: qfqPageState});
$("#save-button").click(function() {
$.post("typo3conf/ext/qfq/qfq/api/save.php_", $("#1234").serialize())
.done(function() {
alert("success");
})
.fail(function() {
console.log("failure");
});
});
$("#close-button").click(function() {
window.location="http://nzz.ch";
});
$('[data-toggle="tooltip"]').tooltip();
});
</script>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment