Browse Source

Peaufinage gestion Merchant & Section

ideas
Guillaume 3 years ago
parent
commit
76b3bee96a
3 changed files with 3 additions and 3 deletions
  1. +2
    -2
      Controller/Section/SectionAdminController.php
  2. +0
    -1
      Field/Address/AddressField.php
  3. +1
    -0
      Resources/translations/admin.fr.yaml

+ 2
- 2
Controller/Section/SectionAdminController.php View File



namespace Lc\CaracoleBundle\Controller\Section; namespace Lc\CaracoleBundle\Controller\Section;


use Doctrine\ORM\EntityManagerInterface;
use EasyCorp\Bundle\EasyAdminBundle\Field\ChoiceField; use EasyCorp\Bundle\EasyAdminBundle\Field\ChoiceField;
use EasyCorp\Bundle\EasyAdminBundle\Field\FormField; use EasyCorp\Bundle\EasyAdminBundle\Field\FormField;
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField;
[ [
FormField::addPanel('general'), FormField::addPanel('general'),
TextField::new('title'), TextField::new('title'),
//AssociationField::new('merchant'),
ChoiceField::new('cycle') ChoiceField::new('cycle')
->setRequired(true) ->setRequired(true)
->setChoices( ->setChoices(
->hideOnIndex(), ->hideOnIndex(),
CKEditorField::new('description') CKEditorField::new('description')
->hideOnIndex(), ->hideOnIndex(),
StatusField::new('status'),
BooleanField::new('isDefault', 'Section par défaut'), BooleanField::new('isDefault', 'Section par défaut'),
StatusField::new('status'),
], ],
$panel $panel
); );

+ 0
- 1
Field/Address/AddressField.php View File

->hideOnIndex() ->hideOnIndex()
->setProperty($propertyName) ->setProperty($propertyName)
->setLabel($label) ->setLabel($label)
//->setTemplatePath('@LcSov/adminlte/crud/field/toggle.html.twig')
->setFormType(AddressType::class); ->setFormType(AddressType::class);
} }



+ 1
- 0
Resources/translations/admin.fr.yaml View File

label_plurial: Sections label_plurial: Sections
fields: fields:
cycle: Cycle de vente cycle: Cycle de vente
isDefault: Section par défaut
TaxRate: TaxRate:
label: Règle de taxe label: Règle de taxe
label_plurial: Règles de taxes label_plurial: Règles de taxes

Loading…
Cancel
Save