Feature #17086
closed
Added by Benjamin Baer 9 months ago.
Updated 6 months ago.
Description
- Currently there is only one form per page
- Forms are insatiated from PHP in Javascript directly.
- New:
- Forms have data properties with the required urls / sips in their outermost container
- Forms will be loaded automatically by the client with parameter from those properties
- Allows for various things, such as on demand form loading via modal, opening forms without site change or just have multiple forms open where it makes sense.
- Tracker changed from Support to Feature
- Description updated (diff)
$(function () {
'use strict';
QfqNS.Log.level = 0;
var qfqPage = new QfqNS.QfqPage({
tabsId: 'qfqTabs',
formId: 'qfq-form-6523eaaa1dae4',
submitTo: 'https://jes.math.uzh.ch/typo3conf/ext/qfq/Classes/Api/save.php',
dirtyUrl: 'https://jes.math.uzh.ch/typo3conf/ext/qfq/Classes/Api/dirty.php',
deleteUrl: 'https://jes.math.uzh.ch/typo3conf/ext/qfq/Classes/Api/delete.php?id=59&s=6523eaaa207bf',
typeAheadUrl: 'https://jes.math.uzh.ch/typo3conf/ext/qfq/Classes/Api/typeahead.php',
refreshUrl: 'https://jes.math.uzh.ch/typo3conf/ext/qfq/Classes/Api/load.php',
fileUploadTo: 'https://jes.math.uzh.ch/typo3conf/ext/qfq/Classes/Api/file.php?action=upload',
fileDeleteUrl: 'https://jes.math.uzh.ch/typo3conf/ext/qfq/Classes/Api/file.php?action=delete'
});
var qfqRecordList = new QfqNS.QfqRecordList('https://jes.math.uzh.ch/typo3conf/ext/qfq/Classes/Api/delete.php');
})
to
<div class="qfq-form"
data-formId="qfq-form-6523eaaa1dae4"
data-tabsId="qfqTabs"
data-submitTo="..."
...
data-logLevel="0"
>
qfqPage -> qfqPages[]? could break tests (but probably every change here will break frontend tests)
- Status changed from In Progress to Ready to sync (develop)
- Assignee changed from Benjamin Baer to Carsten Rose
- Target version changed from 24.10.0 to 24.1.0.rc1
- Status changed from Ready to sync (develop) to Closed
Also available in: Atom
PDF