Browse Source

Mis à jour import & correctif

develop
Fabien Normand 3 years ago
parent
commit
3f70a44cbd
2 changed files with 5 additions and 2 deletions
  1. +3
    -1
      Controller/Ticket/TicketAdminController.php
  2. +2
    -1
      Resources/views/admin/ticket/detail.html.twig

+ 3
- 1
Controller/Ticket/TicketAdminController.php View File

@@ -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(),

+ 2
- 1
Resources/views/admin/ticket/detail.html.twig View File

@@ -7,6 +7,7 @@

{% block main %}
<div class="row">

<div class="col-4">
{% embed '@LcSov/adminlte/embed/infobox.html.twig' %}
{% block color %}blue{% endblock %}
@@ -31,7 +32,7 @@
{% endblock %}
{% endembed %}

{{ macro.infobox('Date',ticket.createdAt|date('d/m/Y'), "yellow", "fa fa-calendar") }}
{{ macro.infobox('Date',ticket.createdAt|date('d/m/Y H:i'), "yellow", "fa fa-calendar") }}
{{ macro.infobox('Catégorie',ticket_container.solver.getTypeLabel(ticket)|trans({},'admin'), "green", "fa fa-archive") }}
</div>
<div class="col-8">

Loading…
Cancel
Save