venca-x/tb3formrenderer

Nette addon for form render Twitter Bootstrap 3

v1.2.1 2023-12-23 06:40 UTC

This package is auto-updated.

Last update: 2024-10-23 08:16:04 UTC


README

Build Status Latest Stable Version Latest Unstable Version Total Downloads License

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