Form as a component with its own template

Notice: This thread is very old.

6 years ago

medhi
Bronze Partner | 190
+
+2
-

Hi,

because the newest trend is to create forms as components (if you want to use them more than once), here is complete example, how to do it.

https://gist.github.com/…9897ed1851a9

6 years ago

medhi
Bronze Partner | 190
+
0
-

And after some time, I see, that this way is soooo complicated. Quite better is example of Sign In form in Nette Sandbox, because it doesn't use any interface. But i allows you to have own tamplate just this way: https://github.com/…ign/in.latte#L6

Which is also little bit unfriendly.

So I appeal Nette Gurus™ to think and help us – common people – to have possibility to use forms in some much pleasant way!