├── Balloon └── Bundle │ └── FormBuilderBundle │ ├── Tests │ ├── Controller │ │ ├── FormFieldControllerTest.php │ │ └── FormControllerTest.php │ ├── bootstrap.php │ ├── Form │ │ └── BuilderTest.php │ └── DependencyInjection │ │ └── BalloonFormBuilderExtensionTest.php │ ├── Resources │ ├── doc │ │ ├── edit.png │ │ ├── list.png │ │ └── answer.png │ ├── config │ │ ├── twig.yml │ │ ├── routing.yml │ │ └── form.yml │ ├── views │ │ ├── FormField │ │ │ └── create.html.twig │ │ ├── Form │ │ │ ├── create.html.twig │ │ │ ├── list.html.twig │ │ │ ├── answer.html.twig │ │ │ └── edit.html.twig │ │ └── layout.html.twig │ └── public │ │ └── bootstrap.min.css │ ├── BalloonFormBuilderBundle.php │ ├── phpunit.xml.dist │ ├── Model │ ├── FormAnswerInterface.php │ ├── FormFieldAnswerInterface.php │ ├── FormInterface.php │ └── FormFieldInterface.php │ ├── Form │ ├── Factory.php │ ├── Manager.php │ ├── Promise.php │ ├── Respond.php │ ├── Renderer.php │ ├── Storage.php │ └── Builder.php │ ├── Twig │ └── FormExtension.php │ ├── DependencyInjection │ ├── BalloonFormBuilderExtension.php │ └── Configuration.php │ ├── Entity │ ├── FormAnswer.php │ ├── Form.php │ ├── FormFieldAnswer.php │ └── FormField.php │ └── Controller │ ├── FormFieldController.php │ └── FormController.php ├── .gitmodules ├── composer.json ├── LICENSE └── README.md /Balloon/Bundle/FormBuilderBundle/Tests/Controller/FormFieldControllerTest.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Balloon/Bundle/FormBuilderBundle/Resources/doc/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wisembly/FormBuilderBundle/HEAD/Balloon/Bundle/FormBuilderBundle/Resources/doc/edit.png -------------------------------------------------------------------------------- /Balloon/Bundle/FormBuilderBundle/Resources/doc/list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wisembly/FormBuilderBundle/HEAD/Balloon/Bundle/FormBuilderBundle/Resources/doc/list.png -------------------------------------------------------------------------------- /Balloon/Bundle/FormBuilderBundle/Resources/doc/answer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wisembly/FormBuilderBundle/HEAD/Balloon/Bundle/FormBuilderBundle/Resources/doc/answer.png -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "vendor/symfony"] 2 | path = vendor/symfony 3 | url = https://github.com/symfony/symfony.git 4 | [submodule "vendor/Twig"] 5 | path = vendor/Twig 6 | url = https://github.com/fabpot/Twig.git 7 | -------------------------------------------------------------------------------- /Balloon/Bundle/FormBuilderBundle/Resources/config/twig.yml: -------------------------------------------------------------------------------- 1 | parameters: 2 | balloon_form_twig_extension.class: Balloon\Bundle\FormBuilderBundle\Twig\FormExtension 3 | 4 | services: 5 | balloon_form_twig_extension: 6 | class: %balloon_form_twig_extension.class% 7 | arguments: [%balloon_form_config%] 8 | tags: [{ name: 'twig.extension' }] 9 | -------------------------------------------------------------------------------- /Balloon/Bundle/FormBuilderBundle/Tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | register(); 10 | -------------------------------------------------------------------------------- /Balloon/Bundle/FormBuilderBundle/Resources/views/FormField/create.html.twig: -------------------------------------------------------------------------------- 1 | {% extends "BalloonFormBuilderBundle::layout.html.twig" %} 2 | 3 | {% block content %} 4 |
11 | {% endblock %} 12 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "balloon/formbuilderbundle", 3 | "type": "Bundle", 4 | "description": "Store your custom forms as Doctrine entities", 5 | "keywords": ["Symfony2", "Bundle", "Forms", "FormBuilder"], 6 | "license": "GPL", 7 | "authors": [ 8 | { 9 | "name": "Jules Boussekeyt" 10 | } 11 | ], 12 | "require": { 13 | "php": ">=5.3.0" 14 | }, 15 | "autoload": { 16 | "psr-0": { "Balloon\\Bundle\\FormBuilderBundle": "" } 17 | } 18 | } -------------------------------------------------------------------------------- /Balloon/Bundle/FormBuilderBundle/BalloonFormBuilderBundle.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * This source file is subject to the MIT license that is bundled 9 | * with this source code in the file LICENSE. 10 | */ 11 | 12 | namespace Balloon\Bundle\FormBuilderBundle; 13 | 14 | use Symfony\Component\HttpKernel\Bundle\Bundle; 15 | 16 | /*u* 17 | * BalloonFormBuilderBundle 18 | * 19 | * @author Jules BoussekeytYour form has no field for the moment.
7 | 15 | {% endblock %} 16 | -------------------------------------------------------------------------------- /Balloon/Bundle/FormBuilderBundle/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 || {{ field.options.label }} | 19 | {% endfor %} 20 | 21 | 22 | {% for i,answer in answers %} 23 |
|---|
| {{ field.scalarValue }} | 26 | {% endfor %} 27 |
List forms
110 | 111 | 112 |  113 |Edit a form
114 | 115 |  116 |Answer to a form
117 | 118 | ## Contributors 119 | 120 | creator [gordonslondon](http://github.com/gordonslondon) 121 | maintener [guillaumepotier] 122 | -------------------------------------------------------------------------------- /Balloon/Bundle/FormBuilderBundle/Entity/FormFieldAnswer.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * This source file is subject to the MIT license that is bundled 9 | * with this source code in the file LICENSE. 10 | */ 11 | 12 | namespace Balloon\Bundle\FormBuilderBundle\Entity; 13 | 14 | use Balloon\Bundle\FormBuilderBundle\Model\FormAnswerInterface; 15 | use Balloon\Bundle\FormBuilderBundle\Model\FormFieldAnswerInterface; 16 | use Balloon\Bundle\FormBuilderBundle\Model\FormFieldInterface; 17 | use Doctrine\ORM\Mapping as ORM; 18 | 19 | /** 20 | * FormFieldAnswer 21 | * 22 | * @ORM\Table() 23 | * @ORM\Entity 24 | * 25 | * @author Jules Boussekeyt