Procházet zdrojové kódy

[Backend] Easyadmin refactoring

develop
Fab před 3 roky
rodič
revize
0c72796dfb
17 změnil soubory, kde provedl 14 přidání a 5 odebrání
  1. +0
    -0
      ShopBundle/Resources/views/backend/default/field/association.html.twig
  2. +0
    -0
      ShopBundle/Resources/views/backend/default/field/association_users.html.twig
  3. +0
    -0
      ShopBundle/Resources/views/backend/default/field/badge.html.twig
  4. +0
    -0
      ShopBundle/Resources/views/backend/default/field/children.html.twig
  5. +0
    -0
      ShopBundle/Resources/views/backend/default/field/date.html.twig
  6. +0
    -0
      ShopBundle/Resources/views/backend/default/field/datetime.html.twig
  7. +0
    -0
      ShopBundle/Resources/views/backend/default/field/day.html.twig
  8. +0
    -0
      ShopBundle/Resources/views/backend/default/field/options_translatable.html.twig
  9. +0
    -0
      ShopBundle/Resources/views/backend/default/field/price.html.twig
  10. +0
    -0
      ShopBundle/Resources/views/backend/default/field/product_family_available_quantity.html.twig
  11. +0
    -0
      ShopBundle/Resources/views/backend/default/field/product_family_total_product_ordered.html.twig
  12. +5
    -0
      ShopBundle/Resources/views/backend/default/field/supplier.html.twig
  13. +0
    -0
      ShopBundle/Resources/views/backend/default/field/ticket_last_message.html.twig
  14. +0
    -0
      ShopBundle/Resources/views/backend/default/field/ticket_status.html.twig
  15. +0
    -0
      ShopBundle/Resources/views/backend/default/field/toggle.html.twig
  16. +0
    -0
      ShopBundle/Resources/views/backend/default/field/total.html.twig
  17. +9
    -5
      ShopBundle/Resources/views/backend/default/list.html.twig

ShopBundle/Resources/views/backend/default/list-fields/list_association.html.twig → ShopBundle/Resources/views/backend/default/field/association.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/list_association_users.html.twig → ShopBundle/Resources/views/backend/default/field/association_users.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/field_badge.html.twig → ShopBundle/Resources/views/backend/default/field/badge.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/list_children.html.twig → ShopBundle/Resources/views/backend/default/field/children.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/field_date.html.twig → ShopBundle/Resources/views/backend/default/field/date.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/field_datetime.html.twig → ShopBundle/Resources/views/backend/default/field/datetime.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/list_day.html.twig → ShopBundle/Resources/views/backend/default/field/day.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/field_options_translatable.html.twig → ShopBundle/Resources/views/backend/default/field/options_translatable.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/field_price.html.twig → ShopBundle/Resources/views/backend/default/field/price.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/field_product_family_available_quantity.html.twig → ShopBundle/Resources/views/backend/default/field/product_family_available_quantity.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/field_product_family_total_product_ordered.html.twig → ShopBundle/Resources/views/backend/default/field/product_family_total_product_ordered.html.twig Zobrazit soubor


+ 5
- 0
ShopBundle/Resources/views/backend/default/field/supplier.html.twig Zobrazit soubor

@@ -0,0 +1,5 @@

{% if link_parameters is defined %}

<a href="{{ path('easyadmin', link_parameters|merge({entity: 'Supplier', referer: '' })) }}">{{ value|easyadmin_truncate }}</a>
{% endif %}

ShopBundle/Resources/views/backend/default/list-fields/field_ticket_last_message.html.twig → ShopBundle/Resources/views/backend/default/field/ticket_last_message.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/field_ticket_status.html.twig → ShopBundle/Resources/views/backend/default/field/ticket_status.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/field_toggle.html.twig → ShopBundle/Resources/views/backend/default/field/toggle.html.twig Zobrazit soubor


ShopBundle/Resources/views/backend/default/list-fields/field_total.html.twig → ShopBundle/Resources/views/backend/default/field/total.html.twig Zobrazit soubor


+ 9
- 5
ShopBundle/Resources/views/backend/default/list.html.twig Zobrazit soubor

@@ -27,7 +27,7 @@
{% set _has_filters = _entity_config.list.filters|default(false) %}

{% block body_id 'easyadmin-list-' ~ _entity_config.name %}
{#{% block body_class 'list list-' ~ _entity_config.name|lower %}#}
{# {% block body_class 'list list-' ~ _entity_config.name|lower %} #}

{% block content_title %}
{% apply spaceless %}
@@ -42,7 +42,7 @@
{% endblock %}

{% block global_actions %}
{#{% if easyadmin_action_is_enabled_for_list_view('new', _entity_config.name) %}
{# {% if easyadmin_action_is_enabled_for_list_view('new', _entity_config.name) %}
{% set _action = easyadmin_get_action_for_list_view('new', _entity_config.name) %}
{% block new_action %}
<div class="button-action">
@@ -54,7 +54,7 @@
</a>
</div>
{% endblock new_action %}
{% endif %}#}
{% endif %} #}
{% endblock global_actions %}

{% block batch_actions %}
@@ -94,7 +94,7 @@

<h2 class="card-title text-lg ">
{% 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 %}
<span data-toggle="tooltip" title="{{ "list.nbResultsFiltered"|trans }}"
class="badge badge-info">{{ paginator.nbResults }} <i
@@ -306,6 +306,7 @@
{# the empty string concatenation is needed when the primary key is an object (e.g. an Uuid object) #}
{% set _item_id = '' ~ attribute(item, _entity_config.primary_key_field_name) %}
<tr data-id="{{ _item_id }}">

{% if _has_batch_actions %}
<td><input type="checkbox" class="form-batch-checkbox"
value="{{ _item_id }}"></td>
@@ -324,6 +325,9 @@
{{ easyadmin_render_field_for_list_view(_entity_config.name, item, metadata) }}
</a>
{% else %}
{# {% if metadatafieldName =="supplier" %}
{{ dump(metadata) }}
{% endif %}#}
{{ easyadmin_render_field_for_list_view(_entity_config.name, item, metadata) }}
{% endif %}
</td>
@@ -430,7 +434,7 @@
<script src="{{ asset('bundles/lcshop/js/backend/plugin/daterange/daterangepicker.js') }}"></script>
<script src="{{ asset('bundles/lcshop/js/backend/plugin/datatables/jquery.highlight.js') }}"></script>
<script src="{{ asset('bundles/lcshop/js/backend/plugin/autocomplete/bootstrap-autocomplete.min.js') }}"></script>
{#<script src="{{ asset('bundles/lcshop/js/backend/plugin/datatables/responsive.bootstrap4.min.js') }}"></script>#}
{# <script src="{{ asset('bundles/lcshop/js/backend/plugin/datatables/responsive.bootstrap4.min.js') }}"></script> #}
{% endblock %}

{% block script_javascript %}

Načítá se…
Zrušit
Uložit