GithubHelp home page GithubHelp logo

fejese / infiniteformbundle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from infinite-networks/infiniteformbundle

0.0 3.0 0.0 277 KB

A collection of useful form types and extensions for Symfony2.

PHP 92.31% JavaScript 4.41% Twig 3.27%

infiniteformbundle's Introduction

InfiniteFormBundle

A collection of useful form types and extensions for Symfony.

See the form demo project for working examples.

Installation

Installation instructions can be found here.

PolyCollection

The PolyCollection form type allows you to create a collection type on a property where the relationship is to a polymorphic object structure like Doctrine2's Single or Multi table inheritance.

For example, if you had an Invoice entity that had a relationship to an entity that was using Doctrine inheritance InvoiceLine and you wanted to define multiple InvoiceLine types depending on what you wanted to invoice like InvoiceProductLine, InvoiceShippingLine and InvoiceDiscountLine you could use this form type to achieve a form collection that would support all 4 types of InvoiceLine inside the same collection.

For more information see the PolyCollection Documentation.

Collection Helper

InfiniteFormBundle supplies some helper javascript for working with form collections. It supports both the standard Symfony2 collection type and the PolyCollection type supplied by this bundle.

For more information see the Collection Helper Documentation.

CheckboxGrid

The CheckboxGrid form type allows editing many-to-many relationships with a grid of checkboxes. It has handy shortcuts for Doctrine entities but can also be used with arrays of regular objects.

For example, a company might sell multiple products, and operate in different areas. Any of its salesmen could sell any combination of products in areas. The salesman form needs a table of checkboxes where the rows are products and the columns are areas (or vice versa!)

For more information see the CheckboxGrid Documentation.

EntitySearch

EntitySearchType is an alternative to Symfony's built-in EntityType. Instead of loading all entities into a drop-down list, it renders a single text field that loads autocomplete suggestions through an AJAX callback.

AJAX callback not included.

For more information see the EntitySearch Documentation.

Attachment

AttachmentType is an alternative to Symfony's built-in FileType.

For more information see the Attachment Documentation.

Twig Helper

InfiniteFormBundle comes with a Twig extension that adds form specific helpers for use when rendering templates.

For more information see the Twig Helper.

infiniteformbundle's People

Contributors

broiniac avatar dave-newson avatar fejese avatar gab3sz avatar jmclean avatar king2500 avatar kleinkind avatar matejvelikonja avatar merk avatar murilolobato avatar patie avatar rodnaph avatar stof avatar thomasbeaujean avatar toaotc avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.