Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kryptomania/extraformbundle
Some enhancements for symfony forms : Collections and javascripts, selects, dependants fields ....
https://github.com/kryptomania/extraformbundle
forms symfony symfony-bundle symfony3 symfony3-bundle
Last synced: about 1 month ago
JSON representation
Some enhancements for symfony forms : Collections and javascripts, selects, dependants fields ....
- Host: GitHub
- URL: https://github.com/kryptomania/extraformbundle
- Owner: Kryptomania
- License: gpl-3.0
- Created: 2017-04-24T12:32:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-25T14:56:20.000Z (over 5 years ago)
- Last Synced: 2024-10-13T06:22:19.455Z (about 1 month ago)
- Topics: forms, symfony, symfony-bundle, symfony3, symfony3-bundle
- Language: JavaScript
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
KryptoMania Extra Form Bundle
=============================This bundle provides the possibility to enhance some Symfony native form
controls like `CollectionType` or `ChoiceType`.
Installation
------------### Step1: Install with composer
Run the following composer require command:
``` bash
$ composer require kryptomania/extra-form-bundle```
### Step 2: Enable the bundleFinally, enable the bundle in the kernel:
``` php
```Important : This is a jQuery plugin, make sure to inclue jQuery file before.
Usage
-----For basic usage, in your view:
``` twig
{# ... #}
{{ form_row(form.myCollection) }}
{# ... #}
$(document).ready(function(){
$("#{{ form.myCollection.vars.id}}").sfEmbedForms();
});
```Configuration
-------------'column_header_label' => true, // lorsque les sous-formulaires sont affichés sous forme de grille, affiche les en-têtes des colones.
'single_field_label' => false, // affiche les labels individuels pour chaque champ du formulaire
'single_field_label_xs' => true, // affiche les labels individues lorsque la résolution est au niveau xs (768px en suivant la norme bootstrap )
'entry_css_class' => 'row', // Pour chaque sous-formulaire quelle classe utiliser pour le wrapper
'entry_actions_css_class' => 'form-group text-right col-xs-12', // Pour les actions sur chaque item
'column_css_class' => array(), // les classes css de chaque champ de formulaire (affichage en grille)