Coder Social home page Coder Social logo

genemuformbundle's Introduction

#FormBundle

Build Status

Installation

Installation is quick and easy, 3 steps process

  1. Install GenemuFormBundle
  2. Enable the bundle
  3. Initialize assets

Step 1: Install GenemuFormBundle

Add the following dependency to your composer.json file:

{
    "require": {
        "_some_packages": "...",

        "genemu/form-bundle": "2.1.*" => for Symfony 2.1 and 2.2

        "genemu/form-bundle": "2.2.*" => for Symfony 2.3
    }
}

Step 2: Enable the bundle

Finally, enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Genemu\Bundle\FormBundle\GenemuFormBundle(),
    );
}

Step 3: Initialize assets

$ php app/console assets:install web/

Form types

Select2 (view demo):

View configuration

Captcha GD

View configuration

ReCaptcha (Google library):

View configuration

Tinymce (download):

View configuration

JQueryUi (download):

You can use jcrop to uploadify. You send the image and crop or apply filter.

View configuration

Image (view demo):

View configuration

Colorpicker (view demo):

View configuration

Rating (view demo):

View configuration

Plain

A Form type that just renders the field as a p tag. This is useful for forms where certain field need to be shown but not editable.

The type name is genemu_plain.

Tips

Prototype usage within form collections

Template

You use GenemuFormBundle and you seen that it does not work! Maybe you have forgotten form_javascript or form_stylesheet.

The principle is to separate the javascript, stylesheet and html. This allows better integration of web pages.

View a template example form view

Note

There are maybe some bugs in those implementations, this package is just an idea of form types which can be very useful for your Symfony2 projects.

genemuformbundle's People

Contributors

bamarni avatar genemu avatar ibizaman avatar willdurand avatar gaelb80 avatar pluff avatar wedgesama avatar poisonousjohn avatar soullivaneuh avatar tomadam avatar joelwurtz avatar phiamo avatar zhil avatar vdroznik avatar tvlooy avatar romaricdrigon avatar lumbendil avatar pandur avatar jpierront avatar christickner avatar ryabenko-pro avatar tyomo4ka avatar fabiencrassat avatar xmontana avatar viliam-husar avatar thedevilonline avatar fixe avatar sescandell avatar strate avatar pentium133 avatar

Watchers

James Cloos avatar Matt Keeble 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.