diff --git a/src/new/src/PSC/Shop/NewsBundle/Resources/views/backend/list/index.html.twig b/src/new/src/PSC/Shop/NewsBundle/Resources/views/backend/list/index.html.twig index 6c507f6d4..2b948222b 100755 --- a/src/new/src/PSC/Shop/NewsBundle/Resources/views/backend/list/index.html.twig +++ b/src/new/src/PSC/Shop/NewsBundle/Resources/views/backend/list/index.html.twig @@ -1,59 +1,58 @@ -{% extends 'backend_base.html.twig' %} +{% extends 'backend_tailwind_base.html.twig' %} {% trans_default_domain 'core_news_list' %} +{% block header %} +
+

{{ 'News'|trans }} {{ 'List'|trans }}

+
+
+ {{ 'Addnews'|trans }} +
+{% endblock %} + + {% block body %} -
-
-
-

- - {{'News'|trans}} > - {{'List'|trans}} -

+
+
+
+
+
-
- -
-
- - - - - - - - - - - - - {% for news in pagination %} - - - - - - - - - {% endfor %} - -
{{ knp_pagination_sortable(pagination, 'Uid'|trans, 'news.uid') }}{{ knp_pagination_sortable(pagination, 'active'|trans, 'news.enable') }}{{ knp_pagination_sortable(pagination, 'Name'|trans, 'news.title') }}{{ knp_pagination_sortable(pagination, 'Introduction'|trans, 'news.introduction') }}{{ knp_pagination_sortable(pagination, 'Sortdate'|trans, 'news.sortDate') }}
{{ news.uid }}{% if news.enable %}{{'yes'|trans}}{% else %}{{'no'|trans}}{% endif %}{{ news.title }}{{ news.introduction }}{{ news.sortDate|date('d.m.Y') }} - - -
- -
+
+ + + + + + + + + + + + + {% for news in pagination %} + + + + + + + + + {% endfor %} + +
{{ knp_pagination_sortable(pagination, 'Uid'|trans, 'news.uid') }}{{ knp_pagination_sortable(pagination, 'active'|trans, 'news.enable') }}{{ knp_pagination_sortable(pagination, 'Name'|trans, 'news.title') }}{{ knp_pagination_sortable(pagination, 'Introduction'|trans, 'news.introduction') }}{{ knp_pagination_sortable(pagination, 'Sortdate'|trans, 'news.sortDate') }}
{{ news.uid }}{% if news.enable %}{{'yes'|trans}}{% else %}{{'no'|trans}}{% endif %}{{ news.title }}{{ news.introduction }}{{ news.sortDate|date('d.m.Y') }} + + +
+
-{% endblock %} \ No newline at end of file +
+{% endblock %} diff --git a/src/new/src/PSC/Shop/QueueBundle/Type/Mail.php b/src/new/src/PSC/Shop/QueueBundle/Type/Mail.php index 9d768b060..03c0b44c1 100755 --- a/src/new/src/PSC/Shop/QueueBundle/Type/Mail.php +++ b/src/new/src/PSC/Shop/QueueBundle/Type/Mail.php @@ -394,9 +394,18 @@ class Mail implements QueueInterface, ConfigurableElementInterface if ($html) { $message->html($html->render($params)); } + $this->_logService->createLogEntry($shop, new Contact(), LogEntry::INFO, PSCShopQueueBundle::class, $queue->getName(), "Mail send", [ + 'message' => $message->getTextBody(), + 'from' => $from->render($params), + 'to' => $to->render($params), + 'subject' => $subject->render($params) + ]); $this->_mailer->send($message); } catch (\Exception $e) { + $this->_logService->createLogEntry($shop, new Contact(), LogEntry::ERROR, PSCShopQueueBundle::class, $queue->getName(), "Request Mail error", [ + 'error' => $e->getMessage() + ]); $this->_error = $e->getMessage(); return false; } @@ -441,8 +450,17 @@ class Mail implements QueueInterface, ConfigurableElementInterface $message->html($html->render($params)); } + $this->_logService->createLogEntry($shop, new Contact(), LogEntry::INFO, PSCShopQueueBundle::class, $queue->getName(), "Mail send", [ + 'message' => "Nicht verfügbar da Passwort enhalten", + 'from' => $from->render($params), + 'to' => $to->render($params), + 'subject' => $subject->render($params) + ]); $this->_mailer->send($message); } catch (\Exception $e) { + $this->_logService->createLogEntry($shop, new Contact(), LogEntry::ERROR, PSCShopQueueBundle::class, $queue->getName(), "Request Mail error", [ + 'error' => $e->getMessage() + ]); $this->_error = $e->getMessage(); return false; }