Actions
Feature #17086
closedMultiple Forms on a page
Start date:
09.10.2023
Due date:
% Done:
0%
Estimated time:
Discuss:
Prio Planung:
No
Vote:
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.
Related issues
Updated by Benjamin Baer 9 months ago
$(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)
Updated by Benjamin Baer 9 months ago
- Status changed from In Progress to Ready to sync (develop)
- Assignee changed from Benjamin Baer to Carsten Rose
Updated by Carsten Rose 8 months ago
- Related to Feature #16061: Modal Dialog Form added
Actions