2017 © Pedro Peláez
 

symfony-bundle form-extensions-bundle

Add additional form types to symfony2

image

symfony2admingenerator/form-extensions-bundle

Add additional form types to symfony2

  • Friday, December 29, 2017
  • by cedriclombardot
  • Repository
  • 10 Watchers
  • 13 Stars
  • 11,217 Installations
  • JavaScript
  • 1 Dependents
  • 2 Suggesters
  • 14 Forks
  • 13 Open issues
  • 38 Versions
  • 5 % Grown

The README.md

FormExtensions knpbundles.com

Latest Stable Version Total Downloads, (*1)

Symfony2 form extensions for Admingenerator project inspired by genemu/GenemuFormBundle., (*2)

Documentation

For a full list of form types and extensions (and related notes) see documentation., (*3)


Installation

Add this to your composer.json:, (*4)

"require": {
    "symfony2admingenerator/form-extensions-bundle": "^2.0"
}

For Symfony version lower than 2.7 or Twig lower than 1.12 add the following to your composer.json:, (*5)

"require": {
    "symfony2admingenerator/form-extensions-bundle": "v2.0-beta.21"
}

And then enable the bundle in your AppKernel.php:, (*6)

<?php
// AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Admingenerator\FormBundle\AdmingeneratorFormBundle(),
        new Admingenerator\FormExtensionsBundle\AdmingeneratorFormExtensionsBundle(),
        // AdmingeneratorGeneratorBundle is optional, however if you're useing it
        // make sure it is loaded AFTER AdmingeneratorFormExtensionsBundle
        new Admingenerator\GeneratorBundle\AdmingeneratorGeneratorBundle(),
    );
}
?>

To make symfony2admingenerator/form-extensions-bundle forms work, you need to edit your base template, and include static and dynamic stylesheets and javascripts., (*7)

For Admingenerator users:, (*8)

```html+django {% extends 'AdmingeneratorGeneratorBundle::base_admin.html.twig' %}, (*9)

{% block stylesheets %} {{ parent() }}, (*10)

{% include '@AdmingeneratorFormExtensions/stylesheets.html.twig' %}
{% if form is defined and form is not empty %}
    {{ form_css(form) }}
{% endif %}

{% endblock %}, (*11)

{% block javascripts %} {{ parent() }}, (*12)

{% include '@AdmingeneratorFormExtensions/javascripts.html.twig' %}
{% if form is defined and form is not empty %}
    {{ form_js(form) }}
{% endif %}

{% endblock %}, (*13)


For others: ```html+django {% block stylesheets %} {% include '@AdmingeneratorFormExtensions/stylesheets.html.twig' %} {% if form is defined and form is not empty %} {{ form_css(form) }} {% endif %} {% endblock %} {% block javascripts %} {% include '@AdmingeneratorFormExtensions/javascripts.html.twig' %} {% if form is defined and form is not empty %} {{ form_js(form) }} {% endif %} {% endblock %}

Note that the templates above are only usable if you've configured assetic for you project (with the correct filters enabled, uglifyjs2 and uglifycss). This bundle also offers a view without filters and without assetic. Simple append _assetic_basic or assetic_less to the template name., (*14)

Configure assetic packages (only if you use base.html.twig template)

Symfony <2.7:, (*15)

framework:
    templating:
        packages:
            formextensions_css:
                version: 1.0
                version_format: "%%1$s?v%%2$s"
            formextensions_js:
                version: 1.0
                version_format: "%%1$s?v%%2$s"

Symfony 2.7 or higher:, (*16)

framework:
    assets:
        packages:
            formextensions_css:
                version: 1.0
                version_format: "%%1$s?v%%2$s"
            formextensions_js:
                version: 1.0
                version_format: "%%1$s?v%%2$s"

Translators needed!

We need your support to translate forms messages :) If you want to help open a pull request and submit a package for your language., (*17)

License

For license information read carefully LICENSE file., (*18)

The Versions

09/12 2017

v2.2.1

2.2.1.0

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski

31/08 2017

v2.2.0

2.2.0.0

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski

15/03 2017

v2.1.2

2.1.2.0

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski

01/03 2017

v2.1.1

2.1.1.0

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski

23/02 2017

v2.1.0

2.1.0.0

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski

22/02 2017

dev-update-dependencies

dev-update-dependencies

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski

12/05 2016

v2.0.2

2.0.2.0

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski

20/02 2016

v2.0.1

2.0.1.0

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski

30/01 2016

v2.0

2.0.0.0

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski

10/01 2016

v2.0-beta.24

2.0.0.0-beta24

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski

06/01 2016

v2.0-beta.23

2.0.0.0-beta23

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski

23/11 2015

v2.0-beta.22

2.0.0.0-beta22

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski

18/04 2015

dev-fix-dependencies

dev-fix-dependencies

Add additional form types to symfony2

  Sources   Download

MIT and Apache-2.0

The Requires

 

by Piotr Gołębiewski