Selaa lähdekoodia

Peaufinage gestion Merchant & Section

ideas
Guillaume 3 vuotta sitten
vanhempi
commit
76b3bee96a
3 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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…
Peruuta
Tallenna