symfony2admingenerator / AvocodeFormExtensionsBundle

(old-legacy) Symfony2 form extensions for Admingenerator project (also working standalone!)
Other
48 stars 31 forks source link

Option sortable doesn't work #161

Open rpostolov opened 9 years ago

rpostolov commented 9 years ago

Hi,

I have a problem with the sortable option.

Someone can give me some help please ?

Here is my configuration :

images:
        label:            '1 Picture Minimum and 5 Pictures Maximum - Maximum 3 Mo / picture - PNG or JPG'
        dbType:           collection
        formType:         afe_collection_upload
        addFormOptions:
            attr:
              accept: "image/jpeg, image/png"  # http://stackoverflow.com/questions/11832930/html-input-file-accept-attribute-file-type-csv/11834872#11834872
            primary_key:          id
            nameable:             false
            sortable:             true
            sortable_field:       position
            editable:             [ path, position ]
            type:                 \Tranoi\DesignerInscritBundle\Form\Type\ImageAdmin\EditType
            maxNumberOfFiles:     5
            maxFileSize:          5000000
            minFileSize:          1000
            acceptFileTypes:      /(\.|\/)(gif|jpe?g|png)$/i
            loadImageFileTypes:   /^image\/(gif|jpe?g|png)$/i
            loadImageMaxFileSize: 2500000
            previewMaxWidth:      100
            previewMaxHeight:     100
            previewAsCanvas:      true
            previewFilter:        thumb_gallery_images_admin_list
            prependFiles:         true
            allow_add:            true
            allow_delete:         true
            error_bubbling:       false
            options:
                data_class:       Tranoi\DesignerInscritBundle\Entity\Image

Thanks

ioleo commented 9 years ago

And what is the problem? Are there any JS errors in the console?