contributte / forms-multiplier

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

Grouping form submit with multiplier buttons #24

Closed llsm closed 6 years ago

llsm commented 6 years ago

Hi, i have whole form submit button after multiplier buttons and form renders them all (buttons) together in one group instead separetly, is there any workaround besides manual form render?

I have tried to use form groups, but that messed up multipliers adding new fields order. Which probably second issue ; )

MartkCz commented 6 years ago

It depends on form renderer. You must rewrite DefaultFormRenderer class

llsm commented 6 years ago

Thanks for reply and great component. Yes, thats one option. On the other hand, this problem will occur probably with all renderers, for example i use Boostrap 4 renderer from aleswita, which of course has the same problem as Nette default one. From my perspective Multiplier creates this problem and should solve it on its own, because this behavior will hardly be desireable for anyone.

MartkCz commented 6 years ago

Multiplier doesn't affect rendering only changes the number of components. If you add 2 buttons in a row

$form->addSubmit('first');
$form->addSubmit('second');

Renderers (default and from aleswita) renders them in a row.