| @@ 54-71 (lines=18) @@ | ||
| 51 | * |
|
| 52 | * @return void |
|
| 53 | */ |
|
| 54 | protected function configureListFields(ListMapper $listMapper) |
|
| 55 | { |
|
| 56 | $listMapper |
|
| 57 | ->addIdentifier('title') |
|
| 58 | ->add('description') |
|
| 59 | ->add('performance') |
|
| 60 | ->add('employee') |
|
| 61 | ->add( |
|
| 62 | '_action', |
|
| 63 | 'actions', |
|
| 64 | [ |
|
| 65 | 'actions' => [ |
|
| 66 | 'show' => [], |
|
| 67 | 'edit' => [], |
|
| 68 | 'delete' => [], |
|
| 69 | ], |
|
| 70 | ] |
|
| 71 | ) |
|
| 72 | ; |
|
| 73 | } |
|
| 74 | ||
| @@ 113-129 (lines=17) @@ | ||
| 110 | * |
|
| 111 | * @return void |
|
| 112 | */ |
|
| 113 | protected function configureListFields(ListMapper $listMapper) |
|
| 114 | { |
|
| 115 | $listMapper |
|
| 116 | ->add('mainPicture', 'string', ['template' => '::SonataAdmin/thumbnail.html.twig']) |
|
| 117 | ->addIdentifier('title') |
|
| 118 | ->add('createdAt') |
|
| 119 | ->add( |
|
| 120 | '_action', |
|
| 121 | 'actions', |
|
| 122 | [ |
|
| 123 | 'actions' => [ |
|
| 124 | 'edit' => [], |
|
| 125 | 'delete' => [], |
|
| 126 | ], |
|
| 127 | ] |
|
| 128 | ) |
|
| 129 | ||
| 130 | ; |
|
| 131 | } |
|
| 132 | ||
| @@ 82-95 (lines=14) @@ | ||
| 79 | * |
|
| 80 | * @return void |
|
| 81 | */ |
|
| 82 | protected function configureListFields(ListMapper $listMapper) |
|
| 83 | { |
|
| 84 | $listMapper |
|
| 85 | ->add('performance') |
|
| 86 | ->add('dateTime') |
|
| 87 | ->add('venue') |
|
| 88 | ->add('_action', 'actions', [ |
|
| 89 | 'actions' => [ |
|
| 90 | 'edit' => [], |
|
| 91 | 'delete' => [], |
|
| 92 | ], |
|
| 93 | ]) |
|
| 94 | ; |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * @param DatagridMapper $datagridMapper |
|