@@ -18,7 +18,7 @@ abstract class AbstractCrudController extends EaAbstractCrudController | |||
{ | |||
if (in_array(TranslatableInterface::class, class_implements($this->getEntityFqcn()))) { | |||
$actions->update(Crud::PAGE_INDEX, Action::EDIT, function (Action $action) { | |||
return $action->setTemplatePath('@Sov/crud/action/translatable.html.twig'); | |||
return $action->setTemplatePath('@LcSov/crud/action/translatable.html.twig'); | |||
}); | |||
} | |||
@@ -29,12 +29,12 @@ abstract class AbstractCrudController extends EaAbstractCrudController | |||
{ | |||
return $crud | |||
->overrideTemplates([ | |||
'crud/edit' => '@Sov/crud/edit.html.twig', | |||
'crud/new' => '@Sov/crud/new.html.twig' | |||
'crud/edit' => '@LcSov/crud/edit.html.twig', | |||
'crud/new' => '@LcSov/crud/new.html.twig' | |||
]) | |||
// don't forget to add EasyAdmin's form theme at the end of the list | |||
// (otherwise you'll lose all the styles for the rest of form fields) | |||
->setFormThemes(['@Sov/crud/form_theme.html.twig', '@FOSCKEditor/Form/ckeditor_widget.html.twig']); | |||
->setFormThemes(['@LcSov/crud/form_theme.html.twig', '@FOSCKEditor/Form/ckeditor_widget.html.twig']); | |||
} | |||
@@ -48,7 +48,7 @@ abstract class AbstractCrudController extends EaAbstractCrudController | |||
// the argument of these methods is passed to the asset() Twig function | |||
// CSS assets are added just before the closing </head> element | |||
// and JS assets are added just before the closing </body> element | |||
->addJsFile('bundles/lcadmin/js/utils.js'); | |||
->addJsFile('bundles/lc_sov/js/utils.js'); | |||
} | |||
/* |
@@ -15,7 +15,7 @@ class DashboardController extends AbstractDashboardController | |||
public function index(): Response | |||
{ | |||
return $this->render('@Sov/dashboard.html.twig'); | |||
return $this->render('@LcSov/dashboard.html.twig'); | |||
} | |||
public function configureDashboard(): Dashboard |
@@ -9,7 +9,7 @@ use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; | |||
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; | |||
class SovExtension extends Extension implements PrependExtensionInterface | |||
class LcSovExtension extends Extension implements PrependExtensionInterface | |||
{ | |||
@@ -24,7 +24,7 @@ class CollectionField implements FieldInterface | |||
return (new self()) | |||
->setProperty($propertyName) | |||
->setLabel($label) | |||
->setTemplatePath('@Sov/crud/field/collection.html.twig') | |||
->setTemplatePath('@LcSov/crud/field/collection.html.twig') | |||
->setFormType(CollectionType::class) | |||
->addCssClass('field-collection') | |||
->addJsFiles('bundles/lcadmin/js/form-type-collection-array.js') |
@@ -22,7 +22,7 @@ final class FileManagerField implements FieldInterface | |||
return (new self()) | |||
->setProperty($propertyName) | |||
->setLabel($label) | |||
->setTemplatePath('@Sov/crud/field/image.html.twig') | |||
->setTemplatePath('@LcSov/crud/field/image.html.twig') | |||
->addJsFiles('bundles/lcadmin/js/form-type-file-manager.js') | |||
->setFormType(FileManagerType::class) | |||
->addCssClass('field-text') |
@@ -24,7 +24,7 @@ class GalleryManagerField implements FieldInterface | |||
return (new self()) | |||
->setProperty($propertyName) | |||
->setLabel($label) | |||
->setTemplatePath('@Sov/crud/field/collection.html.twig') | |||
->setTemplatePath('@LcSov/crud/field/collection.html.twig') | |||
->setFormType(CollectionType::class) | |||
->addCssClass('field-collection') | |||
->addJsFiles('bundles/lcadmin/js/form-type-collection.js') |
@@ -2,14 +2,14 @@ | |||
namespace Lc\SovBundle; | |||
use Lc\SovBundle\DependencyInjection\SovExtension; | |||
use Lc\SovBundle\DependencyInjection\LcSovExtension; | |||
use Symfony\Component\HttpKernel\Bundle\Bundle; | |||
class SovBundle extends Bundle | |||
class LcSovBundle extends Bundle | |||
{ | |||
public function getContainerExtension() | |||
{ | |||
return new SovExtension(); | |||
return new LcSovExtension(); | |||
} | |||
} |
@@ -4,5 +4,5 @@ | |||
{% block body_javascript %} | |||
{{ parent() }} | |||
{% include '@Sov/crud/filemanager/file-manager-modal.html.twig' %} | |||
{% include '@LcSov/crud/filemanager/file-manager-modal.html.twig' %} | |||
{% endblock %} |
@@ -4,6 +4,6 @@ | |||
{% block body_javascript %} | |||
{{ parent() }} | |||
{% include '@Sov/crud/filemanager/file-manager-modal.html.twig' %} | |||
{% include '@LcSov/crud/filemanager/file-manager-modal.html.twig' %} | |||
{% endblock %} | |||