https://github.com/jochumdev/ajaxcompletebundle
Adds some ajax to sonata-doctrine-orm-admin
https://github.com/jochumdev/ajaxcompletebundle
Last synced: 10 months ago
JSON representation
Adds some ajax to sonata-doctrine-orm-admin
- Host: GitHub
- URL: https://github.com/jochumdev/ajaxcompletebundle
- Owner: jochumdev
- Created: 2013-03-01T15:45:40.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-19T08:57:01.000Z (almost 13 years ago)
- Last Synced: 2025-06-21T21:36:35.836Z (12 months ago)
- Language: PHP
- Size: 104 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PcdummyAjaxCompleteBundle - adds some ajax to sonata-doctrine-orm-admin
===============================================
This bundle adds 2 new ajax enabled widgets for the sonata-admin.
###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
``` php
new Pcdummy\AjaxCompleteBundle\PcdummyAjaxCompleteBundle(),
```
* Register the widgets with twig:
``` php
twig:
form:
resources:
- PcdummyAjaxCompleteBundle::fields.html.twig
```
* Now you can use it in your admin like this:
``` php
->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