contributte / forms-multiplier

:repeat: Form multiplier & replicator for Nette Framework
https://contributte.org/packages/contributte/forms-multiplier.html
MIT License
26 stars 20 forks source link

latte 3 #77

Closed MartkCz closed 1 year ago

MartkCz commented 1 year ago

Related issue: https://github.com/contributte/forms-multiplier/issues/76

Macros {btnRemove} and {btnCreate} was changed to {multiplier:remove} and {multiplier:add}. Imho they're more apt names.

Syntactic sugar for {mutiplier:add}: {multiplier:add multiplier:5} instead of {btnCreate $form[multiplier]:5}

f3l1x commented 1 year ago

Looks great 👍

lulco commented 1 year ago

@f3l1x this causes error in my apps. I have only latte.latteFactory with type Nette\Bridges\ApplicationLatte\ILatteFactory (latte 2.11.x).

Imho it is BC break and new major version should be released

f3l1x commented 1 year ago

@MartkCz Can you please add support for Latte 2? It should check if there is Nette\Bridges\ApplicationLatte\ILatteFactory I think.