Skip to content

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

Notifications You must be signed in to change notification settings

Codevate/GenemuFormBundle

 
 

Repository files navigation

FormBundle

Forked version of the genemu/form-bundle which is compatible with PHP7 and Symfony 3.4.

Installation

Installation is quick and easy 3 step process:

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

Step 1: Install GenemuFormBundle

To use this version of the Genemu Form Bundle, add the following to your composer.json:

"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/Codevate/GenemuFormBundle"
        }
],

And then require the bundle itself:

"require": {
        "php": ">=7.1",
        "symfony/symfony": "~3.4",
        "genemu/form-bundle": "dev-master",
        ...
},

Afterwards you should be able to run composer update to download this version of the bundle.

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 bin/console assets:install web/

Form types

Select2 (view demo):

View configuration

Captcha GD

View configuration

ReCaptcha (Google library):

View configuration

JQueryUi (download):

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 89.6%
  • HTML 10.4%