|
|
@@ -11,6 +11,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Dto\SearchDto; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Registry\TemplateRegistry; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator; |
|
|
|
use Lc\SovBundle\Container\Ticket\TicketMessageContainer; |
|
|
|
use Lc\SovBundle\Definition\ActionDefinition; |
|
|
@@ -47,6 +48,7 @@ abstract class TicketAdminController extends AbstractAdminController |
|
|
|
{ |
|
|
|
$crud = parent::configureCrud($crud); // TODO: Change the autogenerated stub |
|
|
|
$crud->setDefaultSort(array('updatedAt' => 'DESC')); |
|
|
|
$crud->overrideTemplate('crud/detail', '@LcSov/admin/ticket/detail.html.twig'); |
|
|
|
return $crud; |
|
|
|
} |
|
|
|
|
|
|
@@ -137,7 +139,7 @@ abstract class TicketAdminController extends AbstractAdminController |
|
|
|
} |
|
|
|
|
|
|
|
return $this->render( |
|
|
|
'@LcSov/admin/ticket/detail.html.twig', |
|
|
|
$context->getTemplatePath('crud/detail'), |
|
|
|
[ |
|
|
|
'form_ticket_status' => $formTicketStatus->createView(), |
|
|
|
'form_add_ticket_message' => $formAddTicketMessage->createView(), |