return $this->andWhere('.oldUrls LIKE :oldUrl')->setParameter('oldUrl', '%'.$oldUrl.'%'); | return $this->andWhere('.oldUrls LIKE :oldUrl')->setParameter('oldUrl', '%'.$oldUrl.'%'); | ||||
} | } | ||||
public function resetRelationsJoin(): void | |||||
{ | |||||
} | |||||
/* | /* | ||||
* DEVALIAS | * DEVALIAS | ||||
*/ | */ |
public function createDefaultQuery(RepositoryQueryInterface $query = null): RepositoryQueryInterface | public function createDefaultQuery(RepositoryQueryInterface $query = null): RepositoryQueryInterface | ||||
{ | { | ||||
$query = $this->createQuery($query); | $query = $this->createQuery($query); | ||||
$query->resetRelationsJoin(); | |||||
$this->filtersDefault($query); | $this->filtersDefault($query); | ||||
$this->relationsDefault($query); | $this->relationsDefault($query); | ||||
$this->orderByDefault($query); | $this->orderByDefault($query); |
.hidden { | .hidden { | ||||
display: none; | display: none; | ||||
} | |||||
} | |||||
.badge.stripped{background-image: url('../img/stripped.png');} |
{% include '@LcSov/admin/ticket/field/lastmessage.html.twig' %} | {% include '@LcSov/admin/ticket/field/lastmessage.html.twig' %} | ||||
</td> | </td> | ||||
<td> | <td> | ||||
<a class="btn-sm btn-success" data-toggle="tooltip" title="{{ 'detail'|sov_trans_admin_action('Ticket') }}" | |||||
<a class="btn-sm btn-success" data-toggle="tooltip" title="{{ 'detail'|sov_trans_admin_action }}" | |||||
href="{{ ea_url_short("App\\Controller\\Ticket\\TicketAdminController", 'detail', ticket.id) }}"> | href="{{ ea_url_short("App\\Controller\\Ticket\\TicketAdminController", 'detail', ticket.id) }}"> | ||||
<i class="fas fa-eye"></i> | <i class="fas fa-eye"></i> | ||||
</a> | </a> |
{% for entity in field.value %} | {% for entity in field.value %} | ||||
<span class="badge badge-secondary">{{ entity }}</span> | |||||
{% if field.customOption('crudControllerFqcn') is not null and entity is not null%} | |||||
<a href="{{ ea_url_short(field.customOption('crudControllerFqcn'), 'edit', entity.id) }}"> | |||||
<span class="badge badge-secondary"> | |||||
{{ entity }} | |||||
</span> | |||||
</a> | |||||
{% else %} | |||||
<span class="badge badge-secondary">{{ entity }}</span> | |||||
{% endif %} | |||||
{% endfor %} | {% endfor %} |
$this->translator = $translator; | $this->translator = $translator; | ||||
} | } | ||||
public function transAction($action): string | |||||
public function transAction($action, $params=[]): string | |||||
{ | { | ||||
return $this->trans('action.' . $action); | |||||
return $this->trans('action.' . $action, $params); | |||||
} | } | ||||
public function transMenu($menu, $params = []): string | public function transMenu($menu, $params = []): string |
return $this->translatorAdmin->transMenu($menuName, $params);; | return $this->translatorAdmin->transMenu($menuName, $params);; | ||||
} | } | ||||
public function transAdminAction($actionName) | |||||
public function transAdminAction($actionName, $params = []) | |||||
{ | { | ||||
return $this->translatorAdmin->transAction($actionName);; | |||||
return $this->translatorAdmin->transAction($actionName, $params);; | |||||
} | } | ||||
public function transAdminTitle($pageName, $entityClass = null, $params = []) | public function transAdminTitle($pageName, $entityClass = null, $params = []) |