You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File is generate: Bundle/Resources/config/Post.yml (Example Entity is Post)
Not to include an action on the crud comment index.
entityName: 'Post'#Entity nameentity: 'Acme\DemoBundle\Entity\Post'#Ubicacionrepository: 'AcmeDemoBundle:Post'#Repositoriopaginate: true #The default is always true. To disable pagination add this line with false.#Rutas para enrutamientoindex: 'admin_post'#If I comment this line not shown in the actionsview_index: 'AcmeDemoBundle:post:index.html.twig'new: 'admin_post_new'#If I comment this line not shown in the indexcreate: 'admin_post_create'view_new: 'AcmeDemoBundle:post:new.html.twig'edit: 'admin_post_edit'#If I comment this line not shown in the index and showupdate: 'admin_post_update'view_edit: 'AcmeDemoBundle:post:edit.html.twig'show: 'admin_post_show'view_show: 'AcmeDemoBundle:post:show.html.twig'delete: 'admin_post_delete'#If I comment this line not shown in the edit and showexport: 'admin_post_export'#Use sonata exportexport_pdf: #If the content exceeds the width of the page you can set the font size. If set false not added title_fontSize: 14# Default is 14 table_fontSize: 12# Default is 12sessionFilter: 'PostControllerFilter'#If I comment this line does not use session. To remove the filter Filtertype comment line in the Controller generatedsaveAndAdd: true #If true then add the button to save and add anothervalidator: false #If true added by JS validation on formssite_view_layout: null #Optional example 'AppBundle::layout.html.twig'parameter_root: null #Opcional if necessary load the configuration in the view with the function admincrud_config() from another bundle you can set your value root: Configuration - treeBuilder - root#ajax_enabled_disabled: 'path_ajax_enabled_disabled' #Optional if you need to customizefieldsindex: #Fields displayed in the index lista.id:
label: 'Code'#Labelname: 'Id'#Field nametype: 'integer'#Types: 'string', 'datetime', 'datetimetz', 'date', 'time', 'boolean', 'boolean_view', 'ONE_TO_MANY', 'MANY_TO_MANY', 'vich_file', 'money'class: 'hidden-xs'#Disabled column in mobileexport: true #Exports the fielda.entities: #Option to display ONE_TO_MANY or MANY_TO_MANY in table format by adding the following configuration...type: 'ONE_TO_MANY'#or 'MANY_TO_MANY'fields:
Label1: field1 #Ej. TitleColumn: FieldNameLabel2: field2Label3: field3actions: #If you do not want actions do not add the lineshow: path_show #Add action show (route to show), if you do not need comment line.edit: path_edit #Add action edit (route to edit), if you do not need to comment line....a.image:
...type: 'vich_file'#Type for preview imagefile: 'imageFile'#Field @Vich\UploadableField of the entityexport: false #Setear falsea.money:
...type: 'money'currency_style: 'currency'currency_type: 'double'...fieldsshow_title: #Add if you need to concatenate a label and a field of the entity in the titlelabel: 'ID'name: 'Id'fieldsshow: #Fields displayed in the show Entitya.id:
label: 'Codigo'#Labelname: 'Id'#Field nametype: 'integer'#Types: 'string', 'text', 'datetime', 'datetimetz', 'date', 'time', 'boolean', 'ONE_TO_MANY', 'MANY_TO_MANY', 'vich_file', 'vich_file_many, 'money'class: 'col-lg-8 col-md-6 col-sm-12'#or other class. Default is col-12#closerow: true #this close row for the separators of col (http://getbootstrap.com/)separator: '<br>'#optional tag html by ONE_TO_MANY || MANY_TO_MANYa.image:
...type: 'vich_file'#Type for preview imagefile: 'imageFile'#Field @Vich\UploadableField of the entity...a.images:
...type: 'vich_file_many'#Type for the preview image collectionfile: 'imageFile'#Field @Vich\UploadableField of the related entityfile_name: 'imageName'#The field where the name or path is saved image# file_class: 'col-md-1' #The default is 'col-md-1'# imagine_filter: 'my_thumb_list' #Optionally filter can be used for example 'my_thumb_list' listing...a.money:
...type: 'money'currency_style: 'currency'currency_type: 'double'...a.button:
label: 'Action'title: 'Action to execute'path: 'router_name'type: 'button'icon: 'glyphicon glyphicon-wrench'...
Default not escape twig {{ value|raw }}
Documentation for the money field is used localizedcurrency: TwigExtensions .