venca-x / tb3formrenderer
Nette addon for form render Twitter Bootstrap 3
v1.2.1
2023-12-23 06:40 UTC
Requires
- php: >= 8.0
- nette/forms: ^3.0
Requires (Dev)
- latte/latte: ^3.0
- nette/application: ^3.0
- nette/bootstrap: ^3.0
- nette/di: ^3.0
- nette/robot-loader: ^4.0
- nette/tester: ^2.0
- tracy/tracy: ^2.4
This package is auto-updated.
Last update: 2024-10-23 08:16:04 UTC
README
Nette addon for form render Twitter Bootstrap 3
This package is dpericated. Use: nette-form-renderer
Installation
Add the bundle to your dependencies:
composer require venca-x/tb3formrenderer:~1.0.0
Configuration
$form = new Form(); $form->setRenderer( new \Nette\Forms\Rendering\TB3FormRenderer() ); /* //horizontal form $renderer = $form->getRenderer(); $renderer->wrappers['form']['orientation'] = 'form-horizontal'; //$renderer->wrappers['form']['class'] = 'col-md-6 col-md-offset-3'; */ $form->addSubmit( 'create', 'Přidat novinku' ) ->setAttribute('class', 'btn btn-primary');
Versions
1.2.0 - 23.12.2023
- PHP version must be at least 8.0
- Removing dependency on Nette/Object