Przeglądaj źródła

Peaufinage gestion Merchant & Section

ideas
Guillaume 2 lat temu
rodzic
commit
76b3bee96a
3 zmienionych plików z 3 dodań i 3 usunięć
  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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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 Wyświetl plik

@@ -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

Ładowanie…
Anuluj
Zapisz