clubmaster/formextra

ClubMaster form extra.


Keywords
form, extra, clubmaster
License
Beerware

Documentation

In order to use the module:

composer.phar require clubmaster/formextra

When installed add the following to your AppKernel.php file:

new Club\FormExtraBundle\ClubFormExtraBundle(),

If you want to use the forms, remember to add this to your config.yml:

Twig Configuration

twig: debug: "%kernel.debug%" strict_variables: "%kernel.debug%" form: resources: - "ClubFormExtraBundle:Default:fields.html.twig"

Of you can just add the following to the top of your template: {% form_theme form 'ClubFormExtraBundle:Default:fields.html.twig' %}

Remember if you use the tinymce form, you will properly want to disble form validation:

Added html slider:

  • Demo 1
  • Demo 2
  • Demo 3

That will add a slideshow for you.

TYPEAHEAD

To use typeahead, your controller must follow this pattern:

$result = array( array( 'value' => 'Meh' ) );

new JsonResponse($result);

Stylesheet

JavaScript