Selaa lähdekoodia

Merge branch 'develop' of https://gitea.laclic.fr/Laclic/CaracoleSkeleton into develop

master
Fab 3 vuotta sitten
vanhempi
commit
b364a2c5f6
2 muutettua tiedostoa jossa 16 lisäystä ja 8 poistoa
  1. +12
    -0
      config/packages/liip_imagine/base.yaml
  2. +4
    -8
      src/Controller/Admin/PageCrudController.php

+ 12
- 0
config/packages/liip_imagine/base.yaml Näytä tiedosto

@@ -4,6 +4,12 @@ liip_imagine:
driver: "gd"
filter_sets:
cache: ~
thumbnail:
quality: 90
filters:
thumbnail:
size: [60]
mode: outbound
page:
quality: 90
filters:
@@ -16,3 +22,9 @@ liip_imagine:
thumbnail:
size: [ 600, 400 ]
mode: outbound
big:
quality: 90
filters:
thumbnail:
size: [ 1600 ]
mode: outbound

+ 4
- 8
src/Controller/Admin/PageCrudController.php Näytä tiedosto

@@ -11,6 +11,8 @@ 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\ImageManagerField;
use Lc\SovBundle\Field\StatusField;

class PageCrudController extends AbstractCrudController
{
@@ -24,16 +26,10 @@ class PageCrudController extends AbstractCrudController
return [
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'),
ImageManagerField::new('image'),
StatusField::new('status'),
GalleryManagerField::new('gallery'),
TextField::new('devAlias'),

];
}


Loading…
Peruuta
Tallenna