forms-multiplier
forms-multiplier copied to clipboard
:repeat: Form multiplier & replicator for Nette Framework
45ed76a7ed22c9b97048441eccd4a7fb2f8f2d6f started filtering components to `Control`s, to appease PHPStan, since `Container::validate()` only accepts `Control[]`. But `Multiplier` does not actually have `Control`s as direct children (other than the ‘Add’ `Submitter`s), so...
Hello I'm trying to use a multiplier in a data editing form. According to the records in the database, the appropriate number of Multiplier elements must be displayed. Unfortunately, I...
Tested with version 3.2.0. ```php $budgets = $form->addMultiplier('budgets', function(Container $budget, Form $form): void { $budget->addText('price', 'Cena') ->setMaxLength(10) ->setRequired() ->addRule($form::FLOAT) ->addRule($form::MIN, NULL, 1); }); ``` E.g. for the value "10 000,00"...
I have a registration for a team race, which allows the teams consisting of two to five people. For this, the `minCopies` and `maxCopies` parameters work great. But now I...
Ahoj, snažím se propojit bootstrap-forms a multiplier, ale nedaří se mi. Existuje nějaká možnost jak toto propojit, abych mohl v multiplieru používat $row->addCell(x)? Všechny mé pokusy končí v tracy s...
When I need to add more than one multiplier into the form, I need to have them with different names: ```php $emails = $this->addMultiplier('emails', function(Container $container): void { $container->addText('email', 'Email');...
Čau, mám dotaz snažím se přijít na to jak správně z Action metody nastavit multiplieru defaultní hodnoty tak jako se klasicky dělá. viz... ``` $this['eventTermForm']->setDefaults([ 'terms_id' => $terms->terms_id, 'event_id' =>...
This partially reverts commit 39725d333355b2a1ef21dac3948909cf1e5d4744, only keeping the part relevant for nested support and a PHPUnit deprecation fix. The commit introduced a regression in `testGroupManualRenderWithButtons` so this will minimize the...
Hi, I use nested multiplier in another multiplier, where both multipliers (inner and outer) have been set the copy number to 1 (default) and I found 2 bugs: - The...