Pārlūkot izejas kodu

StatusField

master
Guillaume pirms 3 gadiem
vecāks
revīzija
636f2d9673
1 mainītis faili ar 2 papildinājumiem un 7 dzēšanām
  1. +2
    -7
      src/Controller/Admin/PageCrudController.php

+ 2
- 7
src/Controller/Admin/PageCrudController.php Parādīt failu

@@ -11,6 +11,7 @@ use Lc\SovBundle\Controller\Admin\AbstractCrudController;
use Lc\SovBundle\Field\CKEditorField;
use Lc\SovBundle\Field\FileManagerField;
use Lc\SovBundle\Field\GalleryManagerField;
use Lc\SovBundle\Field\StatusField;

class PageCrudController extends AbstractCrudController
{
@@ -25,15 +26,9 @@ class PageCrudController extends AbstractCrudController
TextField::new('title'),
CKEditorField::new('description'),
FileManagerField::new('image'),
ChoiceField::new('status')
->setChoices(['En ligne' => 1, 'Hors ligne' => 0])
->setFormTypeOption('expanded', false)
->setFormTypeOption('multiple', false)
->setCustomOption('widget', false)
->setTemplatePath('@LcSov/adminlte/crud/field/status.html.twig'),
StatusField::new('status'),
GalleryManagerField::new('gallery'),
TextField::new('devAlias'),

];
}


Notiek ielāde…
Atcelt
Saglabāt