Project

General

Profile

Actions

Feature #17086

closed

Multiple Forms on a page

Added by Benjamin Baer 9 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Carsten Rose
Target version:
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

Related to QFQ - Feature #16061: Modal Dialog FormNewCarsten Rose22.04.2023

Actions
Actions #1

Updated by Benjamin Baer 9 months ago

  • Tracker changed from Support to Feature
Actions #2

Updated by Benjamin Baer 9 months ago

  • Description updated (diff)
Actions #3

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)

Actions #4

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
Actions #5

Updated by Carsten Rose 8 months ago

Actions #6

Updated by Carsten Rose 6 months ago

  • Target version changed from 24.10.0 to 24.1.0.rc1
Actions #7

Updated by Carsten Rose 6 months ago

  • Status changed from Ready to sync (develop) to Closed
Actions

Also available in: Atom PDF