bootstrap 4 inline form elements

matc1
Member | 19
+
0
-

Hi everybody i need to create a table like form structure, with 3 fields for every single line.
I use Standalone forms with boostrap 4 templates (“$form->onRender[] = ‘makeBootstrap4’” like your examples)
How i can create this structure please?
thanks

matc1
Member | 19
+
0
-

dkorpar wrote:

https://github.com/…ms-bootstrap supports bootstrap grid system
https://github.com/…master/.docs#grid

Thank's a lot!

matc1
Member | 19
+
0
-

dkorpar wrote:

https://github.com/…ms-bootstrap supports bootstrap grid system
https://github.com/…master/.docs#grid

Hi, excuse me, i try this examples but i don't see anything on browser, i use stand alone form.
I use php 7.3.

<?
require_once ‘vendor/autoload.php’;
use Contributte\FormsBootstrap\BootstrapForm;
use Contributte\FormsBootstrap\BootstrapRenderer;
use Contributte\FormsBootstrap\Enums\RenderMode;
use Contributte\FormsBootstrap\BootstrapUtils;
use Nette\Application\UI\Presenter;

$form = new BootstrapForm;
$form->setRenderer(new BootstrapRenderer(RenderMode::INLINE));
$form->addError(‘form-wide error’);
$form->addText(‘text’, ‘text input’);
?>

Thanks

dkorpar
Member | 135
+
0
-

Hm, sadly this is not really supported as you need full framework.
https://github.com/…master/.docs#…

Although this should work:

echo $form->getRenderer()->render($form);