Browse Source

[Backend] Produits : essais édition avancée

feature/tableau_edition_avancee
Guillaume 4 years ago
parent
commit
d93b5acd3b
2 changed files with 4 additions and 3 deletions
  1. +2
    -0
      ShopBundle/Resources/views/backend/default/block/actions.html.twig
  2. +2
    -3
      ShopBundle/Resources/views/backend/default/list.html.twig

+ 2
- 0
ShopBundle/Resources/views/backend/default/block/actions.html.twig View File

{% set action_href = path('easyadmin', request_parameters|merge({ action: action.name, id: item_id })) %} {% set action_href = path('easyadmin', request_parameters|merge({ action: action.name, id: item_id })) %}
{% elseif 'route' == action.type %} {% elseif 'route' == action.type %}
{% set action_href = path(action.name, request_parameters|merge({ action: action.name, id: item_id })) %} {% set action_href = path(action.name, request_parameters|merge({ action: action.name, id: item_id })) %}
{% elseif 'advanced_editing' == action.type %}
{% set action_href = path('easyadmin', request_parameters|merge({ action: action.action, id: item_id })) %}
{% endif %} {% endif %}


{{ include(action.template, { {{ include(action.template, {

+ 2
- 3
ShopBundle/Resources/views/backend/default/list.html.twig View File

{% set _fields_visible_by_user = fields|filter((metadata, field) => easyadmin_is_granted(metadata.permission)) %} {% set _fields_visible_by_user = fields|filter((metadata, field) => easyadmin_is_granted(metadata.permission)) %}
{% set _number_of_hidden_results = 0 %} {% set _number_of_hidden_results = 0 %}
{% set _list_item_actions = easyadmin_get_actions_for_list_item(_entity_config.name) %} {% set _list_item_actions = easyadmin_get_actions_for_list_item(_entity_config.name) %}
<div class="row">
<div class="row" id="{% block list_id %}{% endblock %}">
<div class="col-12"> <div class="col-12">
<div class="card card-outline card-primary"> <div class="card card-outline card-primary">
<div class="card-header"> <div class="card-header">
{% block card_header %} {% block card_header %}

<h2 class="card-title text-lg "> <h2 class="card-title text-lg ">
{% block paginator_nb_results %} {% block paginator_nb_results %}
{#{{ "list.title"|trans({'%label%' : _entity_config['label']|lower }) }}#} {#{{ "list.title"|trans({'%label%' : _entity_config['label']|lower }) }}#}
{% else %} {% else %}
{# the empty string concatenation is needed when the primary key is an object (e.g. an Uuid object) #} {# 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) %} {% set _item_id = '' ~ attribute(item, _entity_config.primary_key_field_name) %}
<tr data-id="{{ _item_id }}">
<tr id="tr-entity-id-{{ _item_id }}" data-id="{{ _item_id }}">
{% if _has_batch_actions %} {% if _has_batch_actions %}
<td><input type="checkbox" class="form-batch-checkbox" <td><input type="checkbox" class="form-batch-checkbox"
value="{{ _item_id }}"></td> value="{{ _item_id }}"></td>

Loading…
Cancel
Save