GithubHelp home page GithubHelp logo

r4cker / genemuformbundle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from genemu/genemuformbundle

1.0 1.0 0.0 1.13 MB

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

genemuformbundle's Introduction

#FormBundle

Build Status

Installation

Installation is quick and easy, 5 steps process

  1. Download GenemuFormBundle
  2. Configure the Autoloader
  3. Enable the bundle
  4. Minimal configuration
  5. Initilize assets

Step 1: Download GenemuFormBundle

Check your Symfony2 version.

Symfony2 branch v2.*

Symfony2 branch master

Step 2: Configure the Autoloader

If it is the first Genemu bundle you install in your Symfony 2 project, you need to add the Genemu namespace to your autoloader:

<?php
// app/autoload.php

$loader->registerNamespaces(array(
    // ...
    'Genemu' => __DIR__.'/../vendor/bundles',
));

Step 3: 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 4: Minimal configuration

# app/config/config.yml

genemu_form: ~

Step 5: Initialize assets

$ php app/console assets:install web/

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

FormType

Cpatcha GD

View configuration

ReCaptcha (Google librairie):

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

Chosen (view demo):

View configuration

Tokeninput (view demo):

Note: you have to apply path to js script before: https://github.com/loopj/jquery-tokeninput/pull/172/files.

Configuration is almost the same as Autocomplete.

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.

Note

There is maybe bugs in this implementations, this package is just an idea of a form field type which can be very useful for the Symfony2 project.

genemuformbundle's People

Contributors

genemu avatar willdurand avatar pluff avatar bamarni avatar poisonousjohn avatar pandur avatar zhil avatar chmat avatar ballisticpain avatar pentium133 avatar viliam-husar avatar phiamo avatar tyomo4ka avatar

Stargazers

 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.