Implementation of form renderer in Nette Forms for framework Bootstrap.

It is available for Bootstrap version 3 and 4.

Usage

When you creating new form set it like this:

<?php
$form = new \Nette\Forms\Form;

// for actual stable version of Bootstrap (currently Bootstrap 4)
$form->setRenderer(new \Fazette\Renderers\Bootstrap);

// for Bootstrap 3
$form->setRenderer(new \Fazette\Renderers\Bootstrap3);

// for Bootstrap 4
$form->setRenderer(new \Fazette\Renderers\Bootstrap4);

Examples