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

@@ -2,6 +2,7 @@

namespace Lc\CaracoleBundle\Controller\Section;

use Doctrine\ORM\EntityManagerInterface;
use EasyCorp\Bundle\EasyAdminBundle\Field\ChoiceField;
use EasyCorp\Bundle\EasyAdminBundle\Field\FormField;
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField;
@@ -25,7 +26,6 @@ abstract class SectionAdminController extends AbstractAdminController
[
FormField::addPanel('general'),
TextField::new('title'),
//AssociationField::new('merchant'),
ChoiceField::new('cycle')
->setRequired(true)
->setChoices(
@@ -44,8 +44,8 @@ abstract class SectionAdminController extends AbstractAdminController
->hideOnIndex(),
CKEditorField::new('description')
->hideOnIndex(),
StatusField::new('status'),
BooleanField::new('isDefault', 'Section par défaut'),
StatusField::new('status'),
],
$panel
);

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

@@ -19,7 +19,6 @@ final class AddressField implements FieldInterface
->hideOnIndex()
->setProperty($propertyName)
->setLabel($label)
//->setTemplatePath('@LcSov/adminlte/crud/field/toggle.html.twig')
->setFormType(AddressType::class);
}


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

@@ -56,6 +56,7 @@ entity:
label_plurial: Sections
fields:
cycle: Cycle de vente
isDefault: Section par défaut
TaxRate:
label: Règle de taxe
label_plurial: Règles de taxes

Loading…
Cancel
Save