pcdummy/ajaxcomplete-bundle

Symfony AjaxCompleteBundle

Installs: 109

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2013-07-19 08:56 UTC

This package is not auto-updated.

Last update: 2024-04-21 02:48:24 UTC


README

This bundle adds 2 new ajax enabled widgets for the sonata-admin.

###pcdummy_ajaxcomplete_m2m [pcdummy_ajaxcomplete_m2m]

Requirements

  • Symfony 2.1
  • Sonata/DoctrineORMAdminBundle dev-master

TODO

  • Secure the Ajax Backend
  • Check/Add configureable routes for the ajax backend

Installation

  • Add "pcdummy/ajaxcomplete-bundle" "dev-master" to your composer.json.
  • Add it to your AppKernel.php
new Pcdummy\AjaxCompleteBundle\PcdummyAjaxCompleteBundle(),
  • Register the widgets with twig:
  twig:
    form:
      resources:
        - PcdummyAjaxCompleteBundle::fields.html.twig
  • Now you can use it in your admin like this:
  ->add('printer_manufacturer', 'pcdummy_ajaxcomplete', array('entity' => "PcdummyPrinterBundle:Manufacturer", 'property' => "name", 'maxRows' => 15))
  ->add('catridges', 'pcdummy_ajaxcomplete_m2m', array(
      'required' => false,
      'expanded' => true,
      'multiple' => true,
  ))

LICENSE

MIT