Developed with love by KnpLabs Hire us for your project!
0

FormBuilderBundle

by Wisembly

Store your custom forms as Doctrine entities

/!\This bundle has not been updated to Symfony 2.1-RC2+ and is no longer maintained by Balloon/!\

Let your users create dynamic forms and store them in the database.

Features:

  • Create forms
  • Add fields (register custom fields)
  • Answer to a form
  • View form results

Requirements :

For Symfony 2.1-RC1, use 1.1 tag

For a Symfony 2.0 compliant version, use 1.0 tag

Installation (for 2.0 and 2.1-RC1 use, without composer)

Clone the project:

$ git submodule add -f git://github.com/Balloon/FormBuilderBundle.git vendor/bundles/Balloon/Bundle/FormBuilderBundle

Register the bundle in app/AppKernel.php:

<?php

    public function registerBundles()
    {
        return array(
            // ..
            new Balloon\Bundle\FormBuilderBundle\BalloonFormBuilderBundle(),
            // ..
        );
    }

Register the namespace in your app/autoload.php:

<?php

$loader->registerNamespaces(array(
    // ...
    'Balloon\\Bundle\\FormBuilderBundle' => __DIR__.'/../vendor/bundles',
    // ...
));

Add this section to your app/config/config.yml file:

balloon_form_builder:
    fields:
        field:
            label:      ~
            required:   false
            max_length: ~
        choice:
            label:      ~
            multiple:   false
            expanded:   false
            choices:    {}
        country:
            label:      ~
        language:
            label:      ~
        timezone:
            label:      ~
        datetime:
            label:      ~
        date:
            label:      ~
        time:
            label:      ~
        checkbox:
            label:      ~

Add this section to your app/config/routing.yml file:

balloon_form_builder:
    resource: "@BalloonFormBuilderBundle/Resources/config/routing.yml"
    prefix:   /form

Init assets:

$ ./app/console assets:install web --symlink

And if you haven't a dedicated virtual host, add this to app/config/config.yml:

framwork:
    templating:
        assets_base_urls: "/balloon-form"

Your done now go to /app_dev.php/form

Screenshots

list form
List forms

edit form
Edit a form

answer form
Answer to a form

Contributors

creator gordonslondon
maintener [guillaumepotier]

Copyright (c) 2011 Balloon

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.