@@ -3,6 +3,9 @@ | |||
namespace App\Controller\Admin; | |||
use App\Entity\Site\Page; | |||
use EasyCorp\Bundle\EasyAdminBundle\Config\Action; | |||
use EasyCorp\Bundle\EasyAdminBundle\Config\Actions; | |||
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; | |||
use Lc\SovBundle\Controller\Admin\AbstractCrudController; | |||
use Lc\SovBundle\Field\CKEditorField; |
@@ -3,13 +3,27 @@ | |||
namespace App\Controller\Common; | |||
use App\Entity\Common\TaxRate; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\NumberField; | |||
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; | |||
use Lc\CaracoleBundle\Controller\Common\TaxRateCrudController as AbstractUserCrudController; | |||
use Lc\SovBundle\Field\CKEditorField; | |||
use Lc\SovBundle\Field\GalleryManagerField; | |||
use Lc\SovBundle\Field\ImageManagerField; | |||
use Lc\SovBundle\Field\StatusField; | |||
class TaxRateCrudController extends AbstractUserCrudController | |||
{ | |||
public static function getEntityFqcn(): string | |||
{ | |||
return TaxRate::class; | |||
} | |||
public static function getEntityFqcn(): string | |||
{ | |||
return TaxRate::class; | |||
} | |||
public function configureFields(string $pageName): iterable | |||
{ | |||
return [ | |||
TextField::new('title')->setLabel('Titre'), | |||
NumberField::new('value')->setLabel('Valeur'), | |||
]; | |||
} | |||
} |
@@ -24,6 +24,7 @@ Encore | |||
'adminlte-css': path.join(__dirname, 'node_modules/admin-lte/build/scss/adminlte.scss'), | |||
'fontawesome-css': path.join(__dirname, 'node_modules/admin-lte/plugins/fontawesome-free/css/all.css'), | |||
'adminlte-plugin': path.join(__dirname, 'node_modules/admin-lte/plugins/'), | |||
'toastr': path.join(__dirname, 'node_modules/toastr'), | |||
/*'adminlte': path.resolve(__dirname, './node_modules/admin-lte/dist/js/adminlte.min.js'), | |||
'adminltePlugin': path.resolve(__dirname, './node_modules/admin-lte/plugins/'), | |||
@@ -42,6 +43,7 @@ Encore | |||
* and one CSS file (e.g. app.css) if your JavaScript imports CSS. | |||
*/ | |||
.addEntry('adminlte-common', './Lc/SovBundle/Resources/assets/app/adminlte/common/app.common.js') | |||
.addEntry('adminlte-index', './Lc/SovBundle/Resources/assets/app/adminlte/index/app.index.js') | |||
.addEntry('adminlte-field-filemanager', './Lc/SovBundle/Resources/assets/app/adminlte/field/filemanager/app.filemanager.js') | |||
.addEntry('adminlte-field-collection', './Lc/SovBundle/Resources/assets/app/adminlte/field/collection/app.collection.js') | |||