Skip to content

Option sortable doesn't work #161

@rpostolov

Description

@rpostolov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions