use Symfony\Component\Form\FormEvents; | use Symfony\Component\Form\FormEvents; | ||||
use Symfony\Component\HttpFoundation\JsonResponse; | use Symfony\Component\HttpFoundation\JsonResponse; | ||||
use Symfony\Component\HttpFoundation\Response; | use Symfony\Component\HttpFoundation\Response; | ||||
use Symfony\Component\HttpFoundation\Session\SessionInterface; | |||||
use Symfony\Component\Security\Core\Security; | use Symfony\Component\Security\Core\Security; | ||||
use Symfony\Contracts\Translation\TranslatorInterface; | use Symfony\Contracts\Translation\TranslatorInterface; | ||||
protected $mailUtils ; | protected $mailUtils ; | ||||
protected $translator; | protected $translator; | ||||
protected $utilsProcess; | protected $utilsProcess; | ||||
protected $session; | |||||
protected $filtersForm = null; | protected $filtersForm = null; | ||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, | public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, | ||||
MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator) | |||||
MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator, SessionInterface $session) | |||||
{ | { | ||||
$this->security = $security; | $this->security = $security; | ||||
$this->userManager = $userManager; | $this->userManager = $userManager; | ||||
$this->mailUtils = $utilsManager->getMailUtils() ; | $this->mailUtils = $utilsManager->getMailUtils() ; | ||||
$this->utilsProcess = $utilsManager->getUtilsProcess() ; | $this->utilsProcess = $utilsManager->getUtilsProcess() ; | ||||
$this->translator = $translator; | $this->translator = $translator; | ||||
$this->session = $session; | |||||
} | } | ||||
public function createCustomForm($class, $action, $parameters, $data = true, $options = array()) | public function createCustomForm($class, $action, $parameters, $data = true, $options = array()) | ||||
if ($this->filtersForm->isSubmitted() && $this->filtersForm->isValid()) { | if ($this->filtersForm->isSubmitted() && $this->filtersForm->isValid()) { | ||||
foreach ($listFields as $field) { | foreach ($listFields as $field) { | ||||
if ($this->filtersForm->has($field['property'])) { | |||||
if ($this->filtersForm->has($field['property'])) { | |||||
switch ($field['dataType']) { | switch ($field['dataType']) { | ||||
case 'option': | case 'option': | ||||
case 'integer': | case 'integer': | ||||
return $this->executeDynamicMethod('render<EntityName>Template', ['list', $this->entity['templates']['list'], $parameters]); | return $this->executeDynamicMethod('render<EntityName>Template', ['list', $this->entity['templates']['list'], $parameters]); | ||||
} | } | ||||
protected function getListParam($param, $default =null){ | |||||
$entityName = $this->entity['name']; | |||||
$sessionParam = $entityName.$param; | |||||
//CUSTOM | |||||
if($param == 'maxResults'){ | |||||
$val = $this->entity['list']['max_results']; | |||||
}else{ | |||||
$val = $this->request->query->get($param, $default); | |||||
} | |||||
if(isset($_GET[$param])){ | |||||
$val = $this->request->query->get($param); | |||||
$this->session->set($sessionParam, $val); | |||||
}else if($this->session->get($sessionParam)){ | |||||
$val = $this->session->get($sessionParam); | |||||
$this->request->query->set($param, $val); | |||||
} | |||||
return $val; | |||||
} | |||||
protected function listAction() | |||||
{ | |||||
$this->dispatch(EasyAdminEvents::PRE_LIST); | |||||
$fields = $this->entity['list']['fields']; | |||||
$paginator = $this->findAll($this->entity['class'], $this->getListParam('page', 1), $this->getListParam('maxResults'), $this->getListParam('sortField'), $this->getListParam('sortDirection'), $this->entity['list']['dql_filter']); | |||||
$this->dispatch(EasyAdminEvents::POST_LIST, ['paginator' => $paginator]); | |||||
$parameters = [ | |||||
'paginator' => $paginator, | |||||
'fields' => $fields, | |||||
'batch_form' => $this->createBatchForm($this->entity['name'])->createView(), | |||||
'delete_form_template' => $this->createDeleteForm($this->entity['name'], '__id__')->createView(), | |||||
]; | |||||
return $this->executeDynamicMethod('render<EntityName>Template', ['list', $this->entity['templates']['list'], $parameters]); | |||||
} | |||||
public function sortAction() | public function sortAction() | ||||
{ | { |
use Lc\ShopBundle\Services\UtilsManager; | use Lc\ShopBundle\Services\UtilsManager; | ||||
use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; | use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; | ||||
use Symfony\Component\HttpFoundation\BinaryFileResponse; | use Symfony\Component\HttpFoundation\BinaryFileResponse; | ||||
use Symfony\Component\HttpFoundation\Session\SessionInterface; | |||||
use Symfony\Component\HttpFoundation\StreamedResponse; | use Symfony\Component\HttpFoundation\StreamedResponse; | ||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | ||||
use Symfony\Component\Security\Core\Security; | use Symfony\Component\Security\Core\Security; | ||||
{ | { | ||||
protected $documentRepository ; | protected $documentRepository ; | ||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator) | |||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator, SessionInterface $session) | |||||
{ | { | ||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator); | |||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator, $session); | |||||
$this->documentRepository = $this->em->getRepository($this->em->getClassMetadata(DocumentInterface::class)->getName()) ; | $this->documentRepository = $this->em->getRepository($this->em->getClassMetadata(DocumentInterface::class)->getName()) ; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | |||||
} |
use Lc\ShopBundle\Services\UtilsManager; | use Lc\ShopBundle\Services\UtilsManager; | ||||
use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; | use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; | ||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; | use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; | ||||
use Symfony\Component\HttpFoundation\Session\SessionInterface; | |||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | ||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | ||||
use Symfony\Component\Security\Core\Security; | use Symfony\Component\Security\Core\Security; | ||||
{ | { | ||||
protected $parameterBag ; | protected $parameterBag ; | ||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, | |||||
MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator, | |||||
ParameterBagInterface $parameterBag) | |||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator, SessionInterface $session, ParameterBagInterface $parameterBag) | |||||
{ | { | ||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator, $session); | |||||
$this->parameterBag = $parameterBag ; | $this->parameterBag = $parameterBag ; | ||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator); | |||||
} | } | ||||
public function sendTestAction() | public function sendTestAction() | ||||
$newsletter = $this->getNewsletter() ; | $newsletter = $this->getNewsletter() ; | ||||
$news = $this->getNews() ; | $news = $this->getNews() ; | ||||
$users = $this->em->getRepository($this->em->getClassMetadata(UserInterface::class)->getName())->findAllByNewsletter($newsletter) ; | $users = $this->em->getRepository($this->em->getClassMetadata(UserInterface::class)->getName())->findAllByNewsletter($newsletter) ; | ||||
$countUsers = count($users) ; | $countUsers = count($users) ; | ||||
$packageMessagesArray = []; | $packageMessagesArray = []; | ||||
} | } | ||||
} | } | ||||
} | |||||
} |
use Symfony\Bridge\Doctrine\Form\Type\EntityType; | use Symfony\Bridge\Doctrine\Form\Type\EntityType; | ||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType; | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||||
use Symfony\Component\HttpFoundation\Response; | use Symfony\Component\HttpFoundation\Response; | ||||
use Symfony\Component\HttpFoundation\Session\SessionInterface; | |||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | ||||
use Symfony\Component\Security\Core\Security; | use Symfony\Component\Security\Core\Security; | ||||
use Symfony\Contracts\Translation\TranslatorInterface; | use Symfony\Contracts\Translation\TranslatorInterface; | ||||
protected $creditUtils; | protected $creditUtils; | ||||
protected $mailUtils; | protected $mailUtils; | ||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator) | |||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator, SessionInterface $session) | |||||
{ | { | ||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator, $session); | |||||
$this->creditUtils = $utilsManager->getCreditUtils(); | $this->creditUtils = $utilsManager->getCreditUtils(); | ||||
$this->mailUtils = $utilsManager->getMailUtils(); | $this->mailUtils = $utilsManager->getMailUtils(); | ||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator); | |||||
} | } | ||||
protected function createListQueryBuilder($entityClass, $sortDirection, $sortField = null, $dqlFilter = null) | protected function createListQueryBuilder($entityClass, $sortDirection, $sortField = null, $dqlFilter = null) |
use Symfony\Component\Form\Extension\Core\Type\NumberType; | use Symfony\Component\Form\Extension\Core\Type\NumberType; | ||||
use Symfony\Component\Form\FormError; | use Symfony\Component\Form\FormError; | ||||
use Symfony\Component\HttpFoundation\Response; | use Symfony\Component\HttpFoundation\Response; | ||||
use Symfony\Component\HttpFoundation\Session\SessionInterface; | |||||
use Symfony\Component\Security\Core\Security; | use Symfony\Component\Security\Core\Security; | ||||
use Symfony\Contracts\Translation\TranslatorInterface; | use Symfony\Contracts\Translation\TranslatorInterface; | ||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; | use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; | ||||
private $parameterBag ; | private $parameterBag ; | ||||
private $productFamilyUtils ; | private $productFamilyUtils ; | ||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, | |||||
MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator, | |||||
ParameterBagInterface $parameterBag) | |||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator, SessionInterface $session, ParameterBagInterface $parameterBag) | |||||
{ | { | ||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator); | |||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator, $session); | |||||
$this->parameterBag = $parameterBag ; | $this->parameterBag = $parameterBag ; | ||||
$this->productFamilyUtils = $utilsManager->getProductFamilyUtils() ; | $this->productFamilyUtils = $utilsManager->getProductFamilyUtils() ; | ||||
} | } |
use Lc\ShopBundle\Services\UtilsManager; | use Lc\ShopBundle\Services\UtilsManager; | ||||
use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; | use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; | ||||
use Symfony\Component\HttpFoundation\Response; | use Symfony\Component\HttpFoundation\Response; | ||||
use Symfony\Component\HttpFoundation\Session\SessionInterface; | |||||
use Symfony\Component\Security\Core\Security; | use Symfony\Component\Security\Core\Security; | ||||
use Symfony\Contracts\Translation\TranslatorInterface; | use Symfony\Contracts\Translation\TranslatorInterface; | ||||
protected $ticketUtils; | protected $ticketUtils; | ||||
protected $userUtils; | protected $userUtils; | ||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator) | |||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator, SessionInterface $session) | |||||
{ | { | ||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator, $session); | |||||
$this->ticketUtils = $utilsManager->getTicketUtils(); | $this->ticketUtils = $utilsManager->getTicketUtils(); | ||||
$this->userUtils = $utilsManager->getUserUtils(); | $this->userUtils = $utilsManager->getUserUtils(); | ||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator); | |||||
} | } | ||||
public function persistTicketEntity($entity, $form) | public function persistTicketEntity($entity, $form) |
use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; | use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; | ||||
use Symfony\Bridge\Doctrine\Form\Type\EntityType; | use Symfony\Bridge\Doctrine\Form\Type\EntityType; | ||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType; | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||||
use Symfony\Component\HttpFoundation\Session\SessionInterface; | |||||
use Symfony\Component\Security\Core\Security; | use Symfony\Component\Security\Core\Security; | ||||
use Symfony\Contracts\Translation\TranslatorInterface; | use Symfony\Contracts\Translation\TranslatorInterface; | ||||
{ | { | ||||
protected $creditUtils; | protected $creditUtils; | ||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator) | |||||
public function __construct(Security $security, UserManagerInterface $userManager, EntityManagerInterface $em, MailjetTransport $mailjetTransport, UtilsManager $utilsManager, TranslatorInterface $translator, SessionInterface $session) | |||||
{ | { | ||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator); | |||||
parent::__construct($security, $userManager, $em, $mailjetTransport, $utilsManager, $translator, $session); | |||||
$this->creditUtils = $utilsManager->getCreditUtils(); | $this->creditUtils = $utilsManager->getCreditUtils(); | ||||
} | } | ||||
public function addCreditHistoryAction(){ | public function addCreditHistoryAction(){ |
min-width: 170px; | min-width: 170px; | ||||
} | } | ||||
/* Sortable */ | |||||
/*************************** PAGINATION *******************************/ | |||||
/* line 152, ../../sass/backend/custom.scss */ | |||||
.pagination { | |||||
justify-content: center; | |||||
} | |||||
/* line 153, ../../sass/backend/custom.scss */ | |||||
.disabled .page-link { | |||||
color: #343a40; | |||||
} | |||||
/* line 154, ../../sass/backend/custom.scss */ | /* line 154, ../../sass/backend/custom.scss */ | ||||
.disabled .page-link:hover, .page-link.current:hover { | |||||
background-color: #fff; | |||||
cursor: default; | |||||
} | |||||
/* Sortable */ | |||||
/* line 159, ../../sass/backend/custom.scss */ | |||||
.ui-sortable-helper { | .ui-sortable-helper { | ||||
display: table; | display: table; | ||||
} | } | ||||
/* line 155, ../../sass/backend/custom.scss */ | |||||
/* line 160, ../../sass/backend/custom.scss */ | |||||
.ui-state-highlight { | .ui-state-highlight { | ||||
background: #eee; | background: #eee; | ||||
} | } | ||||
/* line 156, ../../sass/backend/custom.scss */ | |||||
/* line 161, ../../sass/backend/custom.scss */ | |||||
.lc-sortable div:last-child { | .lc-sortable div:last-child { | ||||
display: none; | display: none; | ||||
} | } | ||||
.lc-ckfinder-wrap .lc-ckfinder-button{width: 100%; bottom: 0px; left: 0; position: absolute;} | .lc-ckfinder-wrap .lc-ckfinder-button{width: 100%; bottom: 0px; left: 0; position: absolute;} | ||||
*/ | */ | ||||
/* VUES JS */ | /* VUES JS */ | ||||
/* line 171, ../../sass/backend/custom.scss */ | |||||
/* line 176, ../../sass/backend/custom.scss */ | |||||
.nav-item .btn { | .nav-item .btn { | ||||
padding-right: 15px; | padding-right: 15px; | ||||
position: relative; | position: relative; | ||||
} | } | ||||
/* line 172, ../../sass/backend/custom.scss */ | |||||
/* line 177, ../../sass/backend/custom.scss */ | |||||
.nav-item .btn .invalid-form { | .nav-item .btn .invalid-form { | ||||
display: none; | display: none; | ||||
position: absolute; | position: absolute; | ||||
font-size: 1.2rem; | font-size: 1.2rem; | ||||
} | } | ||||
/* line 173, ../../sass/backend/custom.scss */ | |||||
/* line 178, ../../sass/backend/custom.scss */ | |||||
.nav-item.has-invalid .btn .invalid-form { | .nav-item.has-invalid .btn .invalid-form { | ||||
display: inline-block; | display: inline-block; | ||||
z-index: 2; | z-index: 2; | ||||
} | } | ||||
/* ProductFamily */ | /* ProductFamily */ | ||||
/* line 178, ../../sass/backend/custom.scss */ | |||||
/* line 183, ../../sass/backend/custom.scss */ | |||||
.field-unit-quantity { | .field-unit-quantity { | ||||
border-bottom: 2px dotted #eee; | border-bottom: 2px dotted #eee; | ||||
padding-bottom: 10px; | padding-bottom: 10px; | ||||
margin-bottom: 20px; | margin-bottom: 20px; | ||||
} | } | ||||
/* line 179, ../../sass/backend/custom.scss */ | |||||
/* line 184, ../../sass/backend/custom.scss */ | |||||
.field-reduction-apply { | .field-reduction-apply { | ||||
border-top: 2px dotted #eee; | border-top: 2px dotted #eee; | ||||
padding-top: 10px; | padding-top: 10px; | ||||
margin-top: 20px; | margin-top: 20px; | ||||
} | } | ||||
/* line 181, ../../sass/backend/custom.scss */ | |||||
/* line 186, ../../sass/backend/custom.scss */ | |||||
.new-productfamily #nav-params, | .new-productfamily #nav-params, | ||||
.edit-productfamily #nav-params { | .edit-productfamily #nav-params { | ||||
margin-bottom: 30px; | margin-bottom: 30px; | ||||
} | } | ||||
/* line 186, ../../sass/backend/custom.scss */ | |||||
/* line 191, ../../sass/backend/custom.scss */ | |||||
.new-productfamily #nav-params .btn, | .new-productfamily #nav-params .btn, | ||||
.edit-productfamily #nav-params .btn { | .edit-productfamily #nav-params .btn { | ||||
margin-left: 20px; | margin-left: 20px; | ||||
} | } | ||||
/* line 191, ../../sass/backend/custom.scss */ | |||||
/* line 196, ../../sass/backend/custom.scss */ | |||||
.new-productfamily #product-categories .row, | .new-productfamily #product-categories .row, | ||||
.edit-productfamily #product-categories .row { | .edit-productfamily #product-categories .row { | ||||
padding: 10px; | padding: 10px; | ||||
} | } | ||||
/* line 196, ../../sass/backend/custom.scss */ | |||||
/* line 201, ../../sass/backend/custom.scss */ | |||||
.new-productfamily #product-categories .form-group, | .new-productfamily #product-categories .form-group, | ||||
.edit-productfamily #product-categories .form-group { | .edit-productfamily #product-categories .form-group { | ||||
width: 100%; | width: 100%; | ||||
padding: 4px; | padding: 4px; | ||||
} | } | ||||
/* line 202, ../../sass/backend/custom.scss */ | |||||
/* line 207, ../../sass/backend/custom.scss */ | |||||
.new-productfamily #product-categories .children, | .new-productfamily #product-categories .children, | ||||
.edit-productfamily #product-categories .children { | .edit-productfamily #product-categories .children { | ||||
margin-left: 20px; | margin-left: 20px; | ||||
width: 100%; | width: 100%; | ||||
} | } | ||||
/* line 208, ../../sass/backend/custom.scss */ | |||||
/* line 213, ../../sass/backend/custom.scss */ | |||||
.new-productfamily ul.products, | .new-productfamily ul.products, | ||||
.edit-productfamily ul.products { | .edit-productfamily ul.products { | ||||
padding: 0px; | padding: 0px; | ||||
list-style-type: none; | list-style-type: none; | ||||
} | } | ||||
/* line 214, ../../sass/backend/custom.scss */ | |||||
/* line 219, ../../sass/backend/custom.scss */ | |||||
.new-productfamily ul.products li.product, | .new-productfamily ul.products li.product, | ||||
.edit-productfamily ul.products li.product { | .edit-productfamily ul.products li.product { | ||||
padding: 0px; | padding: 0px; | ||||
position: relative; | position: relative; | ||||
} | } | ||||
/* line 221, ../../sass/backend/custom.scss */ | |||||
/* line 226, ../../sass/backend/custom.scss */ | |||||
.new-productfamily ul.products li.add, | .new-productfamily ul.products li.add, | ||||
.edit-productfamily ul.products li.add { | .edit-productfamily ul.products li.add { | ||||
text-align: right; | text-align: right; | ||||
} | } | ||||
/* line 226, ../../sass/backend/custom.scss */ | |||||
/* line 231, ../../sass/backend/custom.scss */ | |||||
.autoresize textarea { | .autoresize textarea { | ||||
height: auto; | height: auto; | ||||
min-height: 38px; | min-height: 38px; | ||||
} | } | ||||
/* line 228, ../../sass/backend/custom.scss */ | |||||
/* line 233, ../../sass/backend/custom.scss */ | |||||
.field-price .input-group.buyingPrice input, .field-price .input-group.buyingPrice .input-group-text { | .field-price .input-group.buyingPrice input, .field-price .input-group.buyingPrice .input-group-text { | ||||
font-weight: bold; | font-weight: bold; | ||||
border-color: #222; | border-color: #222; | ||||
} | } | ||||
/* line 229, ../../sass/backend/custom.scss */ | |||||
/* line 234, ../../sass/backend/custom.scss */ | |||||
.field-price .input-group.buyingPriceByRefUnit input, .field-price .input-group.buyingPriceByRefUnit .input-group-text { | .field-price .input-group.buyingPriceByRefUnit input, .field-price .input-group.buyingPriceByRefUnit .input-group-text { | ||||
font-weight: bold; | font-weight: bold; | ||||
border-color: #222; | border-color: #222; | ||||
} | } | ||||
/* line 230, ../../sass/backend/custom.scss */ | |||||
/* line 235, ../../sass/backend/custom.scss */ | |||||
.field-price .input-group.priceWithTax input, .field-price .input-group.priceWithTax .input-group-text { | .field-price .input-group.priceWithTax input, .field-price .input-group.priceWithTax .input-group-text { | ||||
font-weight: bold; | font-weight: bold; | ||||
border-color: #222; | border-color: #222; | ||||
} | } | ||||
/* line 231, ../../sass/backend/custom.scss */ | |||||
/* line 236, ../../sass/backend/custom.scss */ | |||||
.field-price .input-group.priceByRefUnitWithTax input, .field-price .input-group.priceByRefUnitWithTax .input-group-text { | .field-price .input-group.priceByRefUnitWithTax input, .field-price .input-group.priceByRefUnitWithTax .input-group-text { | ||||
font-weight: bold; | font-weight: bold; | ||||
border-color: #222; | border-color: #222; | ||||
} | } | ||||
/* line 232, ../../sass/backend/custom.scss */ | |||||
/* line 237, ../../sass/backend/custom.scss */ | |||||
.input-group.multiplyingFactor input, .input-group.multiplyingFactor .input-group-text { | .input-group.multiplyingFactor input, .input-group.multiplyingFactor .input-group-text { | ||||
font-weight: bold; | font-weight: bold; | ||||
border-color: #222; | border-color: #222; | ||||
} | } | ||||
/* ORDER */ | /* ORDER */ | ||||
/* line 238, ../../sass/backend/custom.scss */ | |||||
/* line 243, ../../sass/backend/custom.scss */ | |||||
.table-order-summary { | .table-order-summary { | ||||
width: 100%; | width: 100%; | ||||
} | } | ||||
/* line 241, ../../sass/backend/custom.scss */ | |||||
/* line 246, ../../sass/backend/custom.scss */ | |||||
.order-product-item.redelivery { | .order-product-item.redelivery { | ||||
background: rgba(18, 104, 253, 0.38) !important; | background: rgba(18, 104, 253, 0.38) !important; | ||||
} | } | ||||
/*.select2-container--bootstrap .select2-selection{max-width: none;}*/ | /*.select2-container--bootstrap .select2-selection{max-width: none;}*/ | ||||
/*.order-product-item{margin: 15px 0; padding: 0;}*/ | /*.order-product-item{margin: 15px 0; padding: 0;}*/ | ||||
/* Product */ | /* Product */ | ||||
/* line 246, ../../sass/backend/custom.scss */ | |||||
/* line 251, ../../sass/backend/custom.scss */ | |||||
.product-form-modal { | .product-form-modal { | ||||
display: none; | display: none; | ||||
} | } | ||||
/* line 247, ../../sass/backend/custom.scss */ | |||||
/* line 252, ../../sass/backend/custom.scss */ | |||||
.product-form.modal .form-check-label { | .product-form.modal .form-check-label { | ||||
font-style: italic; | font-style: italic; | ||||
color: #666; | color: #666; | ||||
text-align: left; | text-align: left; | ||||
} | } | ||||
/* line 248, ../../sass/backend/custom.scss */ | |||||
/* line 253, ../../sass/backend/custom.scss */ | |||||
.products-collection-table .inherited { | .products-collection-table .inherited { | ||||
color: #888; | color: #888; | ||||
font-style: italic; | font-style: italic; | ||||
font-weight: initial; | font-weight: initial; | ||||
} | } | ||||
/* line 249, ../../sass/backend/custom.scss */ | |||||
/* line 254, ../../sass/backend/custom.scss */ | |||||
.products-collection-table td { | .products-collection-table td { | ||||
position: relative; | position: relative; | ||||
} | } | ||||
/* line 250, ../../sass/backend/custom.scss */ | |||||
/* line 255, ../../sass/backend/custom.scss */ | |||||
.card-body.p-0 .products-collection-table tbody > tr > td:first-of-type, .card-body.p-0 .products-collection-table tbody > tr > th:first-of-type, .card-body.p-0 .products-collection-table thead > tr > td:first-of-type, .card-body.p-0 .products-collection-table thead > tr > th:first-of-type { | .card-body.p-0 .products-collection-table tbody > tr > td:first-of-type, .card-body.p-0 .products-collection-table tbody > tr > th:first-of-type, .card-body.p-0 .products-collection-table thead > tr > td:first-of-type, .card-body.p-0 .products-collection-table thead > tr > th:first-of-type { | ||||
padding-left: 0.35rem; | padding-left: 0.35rem; | ||||
} | } | ||||
/* line 251, ../../sass/backend/custom.scss */ | |||||
/* line 256, ../../sass/backend/custom.scss */ | |||||
.products-collection-table .btn-empty-field { | .products-collection-table .btn-empty-field { | ||||
position: absolute; | position: absolute; | ||||
right: 3px; | right: 3px; | ||||
padding: 0px; | padding: 0px; | ||||
} | } | ||||
/* line 252, ../../sass/backend/custom.scss */ | |||||
/* line 257, ../../sass/backend/custom.scss */ | |||||
#lc-product-family-edit .products-collection-table { | #lc-product-family-edit .products-collection-table { | ||||
table-layout: fixed; | table-layout: fixed; | ||||
/* background-clip: padding-box;*/ | /* background-clip: padding-box;*/ | ||||
border-collapse: collapse; | border-collapse: collapse; | ||||
} | } | ||||
/* line 253, ../../sass/backend/custom.scss */ | |||||
/* line 258, ../../sass/backend/custom.scss */ | |||||
#lc-product-family-edit .products-collection-table th { | #lc-product-family-edit .products-collection-table th { | ||||
font-size: 13px; | font-size: 13px; | ||||
border-left: 1px solid #dee2e6; | border-left: 1px solid #dee2e6; | ||||
position: relative; | position: relative; | ||||
} | } | ||||
/* line 254, ../../sass/backend/custom.scss */ | |||||
/* line 259, ../../sass/backend/custom.scss */ | |||||
#lc-product-family-edit .products-collection-table tfoot th { | #lc-product-family-edit .products-collection-table tfoot th { | ||||
border-top: 2px solid #dee2e6; | border-top: 2px solid #dee2e6; | ||||
} | } | ||||
/* line 255, ../../sass/backend/custom.scss */ | |||||
/* line 260, ../../sass/backend/custom.scss */ | |||||
#lc-product-family-edit .products-collection-table th span { | #lc-product-family-edit .products-collection-table th span { | ||||
white-space: initial; | white-space: initial; | ||||
} | } | ||||
/* line 256, ../../sass/backend/custom.scss */ | |||||
/* line 261, ../../sass/backend/custom.scss */ | |||||
#lc-product-family-edit .products-collection-table th:last-child { | #lc-product-family-edit .products-collection-table th:last-child { | ||||
border-right: 1px solid #dee2e6; | border-right: 1px solid #dee2e6; | ||||
} | } | ||||
/* line 257, ../../sass/backend/custom.scss */ | |||||
/* line 262, ../../sass/backend/custom.scss */ | |||||
#lc-product-family-edit .products-collection-table td { | #lc-product-family-edit .products-collection-table td { | ||||
border-left: 1px solid #dee2e6; | border-left: 1px solid #dee2e6; | ||||
text-align: center; | text-align: center; | ||||
border-bottom: 1px solid #dee2e6; | border-bottom: 1px solid #dee2e6; | ||||
} | } | ||||
/* line 258, ../../sass/backend/custom.scss */ | |||||
/* line 263, ../../sass/backend/custom.scss */ | |||||
#lc-product-family-edit .products-collection-table td:last-child { | #lc-product-family-edit .products-collection-table td:last-child { | ||||
border-right: 1px solid #dee2e6; | border-right: 1px solid #dee2e6; | ||||
white-space: nowrap; | white-space: nowrap; | ||||
} | } | ||||
/* line 259, ../../sass/backend/custom.scss */ | |||||
/* line 264, ../../sass/backend/custom.scss */ | |||||
#lc-product-family-edit .btn-add-product { | #lc-product-family-edit .btn-add-product { | ||||
margin: 20px 0; | margin: 20px 0; | ||||
float: right; | float: right; | ||||
} | } | ||||
/* line 260, ../../sass/backend/custom.scss */ | |||||
/* line 265, ../../sass/backend/custom.scss */ | |||||
#lc-product-family-edit .inherited { | #lc-product-family-edit .inherited { | ||||
color: #888; | color: #888; | ||||
font-style: italic; | font-style: italic; | ||||
font-weight: initial; | font-weight: initial; | ||||
} | } | ||||
/* line 261, ../../sass/backend/custom.scss */ | |||||
/* line 266, ../../sass/backend/custom.scss */ | |||||
#lc-product-family-edit .products-collection-table td .value { | #lc-product-family-edit .products-collection-table td .value { | ||||
min-width: 80%; | min-width: 80%; | ||||
margin: auto; | margin: auto; | ||||
cursor: pointer; | cursor: pointer; | ||||
} | } | ||||
/* line 262, ../../sass/backend/custom.scss */ | |||||
/* line 267, ../../sass/backend/custom.scss */ | |||||
#lc-product-family-edit .products-collection-table td .modal { | #lc-product-family-edit .products-collection-table td .modal { | ||||
text-align: left; | text-align: left; | ||||
} | } | ||||
/* line 263, ../../sass/backend/custom.scss */ | |||||
/* line 268, ../../sass/backend/custom.scss */ | |||||
table.products-collection-table th.main-info, td.buyingPrice, td.multiplyingFactor, td.priceWithTax { | table.products-collection-table th.main-info, td.buyingPrice, td.multiplyingFactor, td.priceWithTax { | ||||
background: #eeeeee; | background: #eeeeee; | ||||
background-clip: padding-box; | background-clip: padding-box; | ||||
text-decoration: underline; | text-decoration: underline; | ||||
} | } | ||||
/* line 265, ../../sass/backend/custom.scss */ | |||||
/* line 270, ../../sass/backend/custom.scss */ | |||||
table.products-collection-table tr.disabled { | table.products-collection-table tr.disabled { | ||||
opacity: 0.5; | opacity: 0.5; | ||||
} | } | ||||
/* line 266, ../../sass/backend/custom.scss */ | |||||
/* line 271, ../../sass/backend/custom.scss */ | |||||
.table-striped tbody .tr-sep { | .table-striped tbody .tr-sep { | ||||
border-top: 2px solid #888; | border-top: 2px solid #888; | ||||
} | } | ||||
/* DeliveryZone */ | /* DeliveryZone */ | ||||
/* line 270, ../../sass/backend/custom.scss */ | |||||
/* line 275, ../../sass/backend/custom.scss */ | |||||
#autocomplete-cities { | #autocomplete-cities { | ||||
position: relative; | position: relative; | ||||
} | } | ||||
/* line 274, ../../sass/backend/custom.scss */ | |||||
/* line 279, ../../sass/backend/custom.scss */ | |||||
#autocomplete-cities .ui-autocomplete { | #autocomplete-cities .ui-autocomplete { | ||||
left: 30%; | left: 30%; | ||||
top: 41px; | top: 41px; | ||||
margin-left: 18px; | margin-left: 18px; | ||||
} | } | ||||
/* line 280, ../../sass/backend/custom.scss */ | |||||
/* line 285, ../../sass/backend/custom.scss */ | |||||
.head-reminders { | .head-reminders { | ||||
margin-top: 15px; | margin-top: 15px; | ||||
} | } | ||||
/* TABLEAU DE BORD */ | /* TABLEAU DE BORD */ | ||||
/* line 283, ../../sass/backend/custom.scss */ | |||||
/* line 288, ../../sass/backend/custom.scss */ | |||||
.todo-list > li { | .todo-list > li { | ||||
position: relative; | position: relative; | ||||
} | } | ||||
/* line 284, ../../sass/backend/custom.scss */ | |||||
/* line 289, ../../sass/backend/custom.scss */ | |||||
.todo-list > li .text { | .todo-list > li .text { | ||||
margin-left: 30px; | margin-left: 30px; | ||||
} | } | ||||
/* line 285, ../../sass/backend/custom.scss */ | |||||
/* line 290, ../../sass/backend/custom.scss */ | |||||
.todo-list > li .tools { | .todo-list > li .tools { | ||||
position: absolute; | position: absolute; | ||||
top: 4px; | top: 4px; | ||||
right: 15px; | right: 15px; | ||||
} | } | ||||
/* line 287, ../../sass/backend/custom.scss */ | |||||
/* line 292, ../../sass/backend/custom.scss */ | |||||
#addTicketMessageForm { | #addTicketMessageForm { | ||||
margin-top: 30px; | margin-top: 30px; | ||||
border-top: 2px dotted #eee; | border-top: 2px dotted #eee; | ||||
padding-top: 30px; | padding-top: 30px; | ||||
} | } | ||||
/* line 289, ../../sass/backend/custom.scss */ | |||||
/* line 294, ../../sass/backend/custom.scss */ | |||||
#dashboard .list-btn-statistic { | #dashboard .list-btn-statistic { | ||||
display: flex; | display: flex; | ||||
flex-wrap: wrap; | flex-wrap: wrap; | ||||
justify-content: center; | justify-content: center; | ||||
} | } | ||||
/* line 290, ../../sass/backend/custom.scss */ | |||||
/* line 295, ../../sass/backend/custom.scss */ | |||||
#dashboard .btn-statistic { | #dashboard .btn-statistic { | ||||
width: 120px; | width: 120px; | ||||
height: 70px; | height: 70px; | ||||
line-height: 1rem; | line-height: 1rem; | ||||
} | } | ||||
/* line 291, ../../sass/backend/custom.scss */ | |||||
/* line 296, ../../sass/backend/custom.scss */ | |||||
#dashboard .btn-statistic small { | #dashboard .btn-statistic small { | ||||
margin-bottom: 10px; | margin-bottom: 10px; | ||||
display: block; | display: block; | ||||
} | } | ||||
/* line 292, ../../sass/backend/custom.scss */ | |||||
/* line 297, ../../sass/backend/custom.scss */ | |||||
#dashboard .btn-statistic .value { | #dashboard .btn-statistic .value { | ||||
display: block; | display: block; | ||||
} | } | ||||
/* line 294, ../../sass/backend/custom.scss */ | |||||
/* line 299, ../../sass/backend/custom.scss */ | |||||
#dashboard #range_date_interval { | #dashboard #range_date_interval { | ||||
margin-bottom: 20px; | margin-bottom: 20px; | ||||
} | } | ||||
/* line 295, ../../sass/backend/custom.scss */ | |||||
/* line 300, ../../sass/backend/custom.scss */ | |||||
#dashboard #range_date_interval label { | #dashboard #range_date_interval label { | ||||
float: left; | float: left; | ||||
margin-right: 20px; | margin-right: 20px; | ||||
} | } | ||||
/* line 296, ../../sass/backend/custom.scss */ | |||||
/* line 301, ../../sass/backend/custom.scss */ | |||||
#dashboard #range_date_interval .form-check { | #dashboard #range_date_interval .form-check { | ||||
float: left; | float: left; | ||||
margin-right: 10px; | margin-right: 10px; | ||||
} | } | ||||
/* line 297, ../../sass/backend/custom.scss */ | |||||
/* line 302, ../../sass/backend/custom.scss */ | |||||
#dashboard .table-condensed .btn, #dashboard .table-condensed .btn-sm { | #dashboard .table-condensed .btn, #dashboard .table-condensed .btn-sm { | ||||
white-space: nowrap; | white-space: nowrap; | ||||
} | } | ||||
/* Tickets */ | /* Tickets */ | ||||
/* line 303, ../../sass/backend/custom.scss */ | |||||
/* line 308, ../../sass/backend/custom.scss */ | |||||
#ticket-list .btn-sm { | #ticket-list .btn-sm { | ||||
display: block; | display: block; | ||||
} | } | ||||
/* line 309, ../../sass/backend/custom.scss */ | |||||
/* line 314, ../../sass/backend/custom.scss */ | |||||
#toast-container { | #toast-container { | ||||
width: 350px; | width: 350px; | ||||
} | } | ||||
/* line 310, ../../sass/backend/custom.scss */ | |||||
/* line 315, ../../sass/backend/custom.scss */ | |||||
.toast { | .toast { | ||||
float: right; | float: right; | ||||
} | } | ||||
/* line 312, ../../sass/backend/custom.scss */ | |||||
/* line 317, ../../sass/backend/custom.scss */ | |||||
#toast-container:before:hover { | #toast-container:before:hover { | ||||
opacity: 1; | opacity: 1; | ||||
cursor: pointer; | cursor: pointer; | ||||
} | } | ||||
/* line 316, ../../sass/backend/custom.scss */ | |||||
/* line 321, ../../sass/backend/custom.scss */ | |||||
#toast-close-all { | #toast-close-all { | ||||
border: 0; | border: 0; | ||||
position: absolute; | position: absolute; |
#switch-merchant { | #switch-merchant { | ||||
min-width: 170px ; | min-width: 170px ; | ||||
} | } | ||||
/*************************** PAGINATION *******************************/ | |||||
.pagination{justify-content: center;} | |||||
.disabled .page-link{color: #343a40;} | |||||
.disabled .page-link:hover, .page-link.current:hover{background-color: #fff; cursor: default;} | |||||
/* Sortable */ | /* Sortable */ | ||||
-webkit-box-shadow: 0 0 12px #999; | -webkit-box-shadow: 0 0 12px #999; | ||||
box-shadow: 0 0 12px #999; | box-shadow: 0 0 12px #999; | ||||
} | } | ||||
<td>{{ ticket.subject }}</td> | <td>{{ ticket.subject }}</td> | ||||
<td> | <td> | ||||
{% set value = ticket.status %} | {% set value = ticket.status %} | ||||
{% include '@LcShop/backend/default/list-fields/field_ticket_status.html.twig' %} | |||||
{% include '@LcShop/backend/default/field/ticket_status.html.twig' %} | |||||
</td> | </td> | ||||
<td> | <td> | ||||
{% set item = ticket %} | {% set item = ticket %} | ||||
{% include '@LcShop/backend/default/list-fields/field_ticket_last_message.html.twig' %} | |||||
{% include '@LcShop/backend/default/field/ticket_last_message.html.twig' %} | |||||
</td> | </td> | ||||
<td> | <td> | ||||
<a class="btn-sm btn-success" href="{{ path('easyadmin', {id: ticket.id, entity: 'Ticket', action: 'show'}) }}"> | <a class="btn-sm btn-success" href="{{ path('easyadmin', {id: ticket.id, entity: 'Ticket', action: 'show'}) }}"> |
{% trans_default_domain 'EasyAdminBundle' %} | |||||
{% set _paginator_request_parameters = _request_parameters|merge({'referer': null}) %} | |||||
{% if paginator.haveToPaginate %} | |||||
<div class="list-pagination"> | |||||
<div class="row"> | |||||
<div class="col-sm-3 hidden-xs list-pagination-counter"> | |||||
{{ 'paginator.counter'|trans({ '%start%': paginator.currentPageOffsetStart, '%end%': paginator.currentPageOffsetEnd, '%results%': paginator.nbResults})|raw }} | |||||
</div> | |||||
<div class="col-xs-12 col-sm-9"> | |||||
<ul class="pagination list-pagination-paginator {{ 1 == paginator.currentPage ? 'first-page' : '' }} {{ paginator.hasNextPage ? '' : 'last-page' }}"> | |||||
{% if 1 == paginator.currentPage %} | |||||
<li class="disabled"> | |||||
<span class="page-link "> | |||||
<i class="fa fa-angle-double-left"></i> | |||||
</span> | |||||
</li> | |||||
{% else %} | |||||
<li> | |||||
<a class="page-link" | |||||
href="{{ path('easyadmin', _paginator_request_parameters|merge({ page: 1 }) ) }}"> | |||||
<i class="fa fa-angle-double-left"></i> | |||||
</a> | |||||
</li> | |||||
{% endif %} | |||||
{% if paginator.hasPreviousPage %} | |||||
<li> | |||||
<a class="page-link" | |||||
href="{{ path('easyadmin', _paginator_request_parameters|merge({ page: paginator.previousPage }) ) }}"> | |||||
<i class="fa fa-angle-left"></i> | |||||
</a> | |||||
</li> | |||||
{% else %} | |||||
<li class="disabled"> | |||||
<span class="page-link"> | |||||
<i class="fa fa-angle-left"></i> | |||||
</span> | |||||
</li> | |||||
{% endif %} | |||||
{# BEGIN DISPLAYING PAGE NUMBERS #} | |||||
{# the number of pages that are displayed around the active page #} | |||||
{% set nearbyPagesLimit = 8 %} | |||||
{% if paginator.currentPage > 1 %} | |||||
{% for i in range(paginator.currentPage-nearbyPagesLimit, paginator.currentPage-1) if ( i > 0 ) %} | |||||
<li > | |||||
<a class="page-link" | |||||
href="{{ path('easyadmin', _paginator_request_parameters|merge({ page: i }) ) }}">{{ i }}</a> | |||||
</li> | |||||
{% endfor %} | |||||
{% endif %} | |||||
<li> | |||||
<a class="current page-link">{{ paginator.currentPage }}</a> | |||||
</li> | |||||
{% if paginator.currentPage < paginator.nbPages %} | |||||
{% for i in range(paginator.currentPage+1, paginator.currentPage + nearbyPagesLimit) if ( i <= paginator.nbPages ) %} | |||||
<li> | |||||
<a class="page-link" | |||||
href="{{ path('easyadmin', _paginator_request_parameters|merge({ page: i }) ) }}">{{ i }}</a> | |||||
</li> | |||||
{% endfor %} | |||||
{% endif %} | |||||
{# END DISPLAYING PAGE NUMBERS #} | |||||
{% if paginator.hasNextPage %} | |||||
<li> | |||||
<a class="page-link" | |||||
href="{{ path('easyadmin', _paginator_request_parameters|merge({ page: paginator.nextPage }) ) }}"> | |||||
<i class="fa fa-angle-right"></i> | |||||
</a> | |||||
</li> | |||||
{% else %} | |||||
<li class="disabled"> | |||||
<span class="page-link"> | |||||
<i class="fa fa-angle-right"></i> | |||||
</span> | |||||
</li> | |||||
{% endif %} | |||||
{% if paginator.currentPage < paginator.nbPages %} | |||||
<li> | |||||
<a class="page-link" | |||||
href="{{ path('easyadmin', _paginator_request_parameters|merge({ page: paginator.nbPages }) ) }}"> | |||||
<i class="fa fa-angle-double-right"></i> | |||||
</a> | |||||
</li> | |||||
{% else %} | |||||
<li class="disabled"> | |||||
<span class="page-link"> | |||||
<i class="fa fa-angle-double-right"></i> | |||||
</span> | |||||
</li> | |||||
{% endif %} | |||||
</ul> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
{% endif %} |
{% if link_parameters is defined %} | {% if link_parameters is defined %} | ||||
<a href="{{ path('easyadmin', link_parameters|merge({entity: 'Supplier', referer: '' })) }}">{{ value|easyadmin_truncate }}</a> | |||||
<a href="{{ path('easyadmin', link_parameters|merge({entity: 'Supplier', referer: '' })) }}">{{ value|easyadmin_truncate }}</a> | |||||
{% endif %} | {% endif %} |
sortField: app.request.get('sortField'), | sortField: app.request.get('sortField'), | ||||
sortDirection: app.request.get('sortDirection'), | sortDirection: app.request.get('sortDirection'), | ||||
page: app.request.get('page', 1), | page: app.request.get('page', 1), | ||||
maxResults: app.request.get('maxResults', _entity_config.list.max_results), | |||||
filters: app.request.get('filters', []), | filters: app.request.get('filters', []), | ||||
referer: null | referer: null | ||||
}) %} | }) %} | ||||
{% block card_header %} | {% block card_header %} | ||||
<h2 class="card-title text-lg "> | <h2 class="card-title text-lg "> | ||||
<div class="btn-group"> | |||||
{% set itemsPerPage = [10,20,30,50,100,200] %} | |||||
{% for itemPerPage in itemsPerPage %} | |||||
<a href="{{ path('easyadmin', _request_parameters|merge({ maxResults: itemPerPage, page : "1" })) }}" | |||||
class="btn btn-sm {{ paginator.maxPerPage == itemPerPage ? 'btn-outline-secondary' : 'btn-secondary'}}">{{ itemPerPage }}</a> | |||||
{% endfor %} | |||||
</div> | |||||
{% block paginator_nb_results %} | {% block paginator_nb_results %} | ||||
{# {{ "list.title"|trans({'%label%' : _entity_config['label']|lower }) }} #} | {# {{ "list.title"|trans({'%label%' : _entity_config['label']|lower }) }} #} | ||||
{% if paginator.nbResultsTotal != paginator.nbResults %} | {% if paginator.nbResultsTotal != paginator.nbResults %} | ||||
{{ easyadmin_render_field_for_list_view(_entity_config.name, item, metadata) }} | {{ easyadmin_render_field_for_list_view(_entity_config.name, item, metadata) }} | ||||
</a> | </a> | ||||
{% else %} | {% else %} | ||||
{# {% if metadatafieldName =="supplier" %} | |||||
{# {% if metadatafieldName =="supplier" %} | |||||
{{ dump(metadata) }} | {{ dump(metadata) }} | ||||
{% endif %}#} | |||||
{% endif %} #} | |||||
{{ easyadmin_render_field_for_list_view(_entity_config.name, item, metadata) }} | {{ easyadmin_render_field_for_list_view(_entity_config.name, item, metadata) }} | ||||
{% endif %} | {% endif %} | ||||
</td> | </td> | ||||
<script type="text/javascript"> | <script type="text/javascript"> | ||||
$(document).ready(function () { | $(document).ready(function () { | ||||
const toggles = document.querySelectorAll('.custom-switch input[type="checkbox"]'); | const toggles = document.querySelectorAll('.custom-switch input[type="checkbox"]'); | ||||
for (i = 0; i < toggles.length; i++) { | for (i = 0; i < toggles.length; i++) { |