From 75caff77f1bb36203e5e627666b08adc80a78f77 Mon Sep 17 00:00:00 2001 From: Thomas Peterson Date: Tue, 9 Dec 2025 17:17:05 +0100 Subject: [PATCH] Backup --- .../views/backend/list/index.html.twig | 221 ++++++++++-------- .../views/backend/list/index.html.twig | 23 +- 2 files changed, 139 insertions(+), 105 deletions(-) diff --git a/src/new/src/PSC/Shop/ContactBundle/Resources/views/backend/list/index.html.twig b/src/new/src/PSC/Shop/ContactBundle/Resources/views/backend/list/index.html.twig index 2785db8e5..9c672ea4f 100755 --- a/src/new/src/PSC/Shop/ContactBundle/Resources/views/backend/list/index.html.twig +++ b/src/new/src/PSC/Shop/ContactBundle/Resources/views/backend/list/index.html.twig @@ -1,97 +1,134 @@ -{% extends 'backend_base.html.twig' %} +{% extends 'backend_tailwind_base.html.twig' %} +{% form_theme form 'tailwind_formtheme.html.twig' %} {% trans_default_domain 'core_contact_list' %} -{% block body %} -
-
-
-

- - {{ 'customers'|trans }} > - {{ 'list'|trans }} -

-
+ +{% block header %} +
+
+

+ + + + {{ 'customers'|trans }} +

-
-
- -
-
- {{ form_start(form, { 'attr': {'class': 'searchForm'}}) }} -
- -
-
- {{ form_widget(form.term, {attr: {class:'form-control'}}) }} - - - -
-
-
- - {{ form_rest(form) }} - - {{ form_end(form) }} - - - - - - - - - - - - - - - - - - - - - {% for contact in pagination %} - - - - - - - - - - - - - - - {% endfor %} - -
{{ knp_pagination_sortable(pagination, 'Uid', 'contact.uid') }}{{ knp_pagination_sortable(pagination, 'Loginname'|trans, 'contact.username') }}{{ knp_pagination_sortable(pagination, 'generated'|trans, 'contact.createdAt') }}{{ knp_pagination_sortable(pagination, 'changed'|trans, 'contact.updatedAt') }}{{ knp_pagination_sortable(pagination, 'firstname'|trans, 'contact.selffirstname') }}{{ knp_pagination_sortable(pagination, 'lastname'|trans, 'contact.lastname') }}{{ knp_pagination_sortable(pagination, 'street'|trans, 'contact.street') }}/{{ knp_pagination_sortable(pagination, 'housenumber'|trans, 'contact.houseNumber') }}{{ knp_pagination_sortable(pagination, 'zip'|trans, 'contact.zip') }}{{ knp_pagination_sortable(pagination, 'city'|trans, 'contact.city') }}{{ 'virtual'|trans }}{{ 'shops'|trans }}
{{ contact.id }}{{ contact.username }}{{ contact.createdAt|date('d.m.Y') }}{{ contact.updatedAt|date('d.m.Y') }}{{ contact.firstname }}{{ contact.lastname }}{{ contact.street }} {{ contact.houseNumber }}{{ contact.zip }}{{ contact.city }}{% if contact.virtual == 1 %}{{ 'yes'|trans }}{% else %}{{ 'no'|trans }}{% endif %}{% if contact.shops|length > 1 %} - - {{ 'yes'|trans }} - - {% for shop in contact.shops %} - {{ shop.title }} - {% endfor %} - {% else %} - {{ 'no'|trans }} - {% endif %} -
- -
+
{% endblock %} + +{% block body %} +
+
+
+ {{ form_start(form, { 'attr': {'class': ''}}) }} +
+ +
+
+
+
+ + + +
+ {{ form_widget(form.term, {attr: { + class:'w-full pr-4 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-psc-500 focus:border-psc-500 transition-all text-sm', + placeholder: 'Kunden suchen...', + style: 'padding-left: 2.75rem !important;' + }}) }} +
+ +
+
+
+ {{ form_rest(form) }} + {{ form_end(form) }} +
+ +
+ + + + + + + + + + + + + + + + + + + {% for contact in pagination %} + + + + + + + + + + + + + + + {% endfor %} + +
{{ knp_pagination_sortable(pagination, 'Uid', 'contact.uid') }}{{ knp_pagination_sortable(pagination, 'Loginname'|trans, 'contact.username') }}{{ knp_pagination_sortable(pagination, 'generated'|trans, 'contact.createdAt') }}{{ knp_pagination_sortable(pagination, 'changed'|trans, 'contact.updatedAt') }}{{ knp_pagination_sortable(pagination, 'firstname'|trans, 'contact.selffirstname') }}{{ knp_pagination_sortable(pagination, 'lastname'|trans, 'contact.lastname') }}{{ knp_pagination_sortable(pagination, 'street'|trans, 'contact.street') }}/{{ knp_pagination_sortable(pagination, 'housenumber'|trans, 'contact.houseNumber') }}{{ knp_pagination_sortable(pagination, 'zip'|trans, 'contact.zip') }}{{ knp_pagination_sortable(pagination, 'city'|trans, 'contact.city') }}{{ 'virtual'|trans }}{{ 'shops'|trans }}Aktionen
{{ contact.id }} + {{ contact.username }} + {{ contact.createdAt|date('d.m.Y') }}{{ contact.updatedAt|date('d.m.Y') }}{{ contact.firstname }}{{ contact.lastname }}{{ contact.street }} {{ contact.houseNumber }}{{ contact.zip }}{{ contact.city }} + {% if contact.virtual == 1 %} + {{ 'yes'|trans }} + {% else %} + {{ 'no'|trans }} + {% endif %} + + {% if contact.shops|length > 1 %} +
+ {% for shop in contact.shops %} + {{ shop.title }} + {% endfor %} +
+ {% else %} + {{ 'no'|trans }} + {% endif %} +
+ +
+
+ +
+ {{ knp_pagination_render(pagination, 'tailwind_pagination.html.twig', {}, { + 'sortableTemplate': 'tailwind_sortable.html.twig' + }) }} +
+
+
+{% endblock %} diff --git a/src/new/src/PSC/Shop/OrderBundle/Resources/views/backend/list/index.html.twig b/src/new/src/PSC/Shop/OrderBundle/Resources/views/backend/list/index.html.twig index 7e93108b7..5acaa34d5 100755 --- a/src/new/src/PSC/Shop/OrderBundle/Resources/views/backend/list/index.html.twig +++ b/src/new/src/PSC/Shop/OrderBundle/Resources/views/backend/list/index.html.twig @@ -134,27 +134,24 @@ {% endfor %}
-