GithubHelp home page GithubHelp logo

misterglass / genemuformbundle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from genemu/genemuformbundle

0.0 1.0 0.0 1.42 MB

Extra Form : Captcha GD, Tinymce, Recaptcha, JQueryDate, JQueryAutocomplete, JQuerySlider, JQueryFile, JQueryImage

PHP 100.00%

genemuformbundle's Introduction

#FormBundle

Build Status

Branches

Bundle minor versions are based on Symfony ones :

  • 2.0 provides compatibility with Symfony 2.0
  • 2.1 provides compatibility with Symfony 2.1
  • 2.2 provides compatibility with Symfony 2.2

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.*"
    }
}

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

attilabukor avatar ballisticpain avatar bamarni avatar chmat avatar christickner avatar fixe avatar gaelb80 avatar genemu avatar ibizaman avatar lumbendil avatar pandur avatar pentium133 avatar phiamo avatar pluff avatar poisonousjohn avatar tomadam avatar tvlooy avatar tyomo4ka avatar viliam-husar avatar willdurand avatar xmontana avatar zhil avatar

Watchers

 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.