ソースを参照

[Backend] Produits : essais édition avancée

feature/tableau_edition_avancee
Guillaume 4年前
コミット
d93b5acd3b
2個のファイルの変更4行の追加3行の削除
  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 ファイルの表示

@@ -11,6 +11,8 @@
{% set action_href = path('easyadmin', request_parameters|merge({ action: action.name, id: item_id })) %}
{% elseif 'route' == action.type %}
{% 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 %}

{{ include(action.template, {

+ 2
- 3
ShopBundle/Resources/views/backend/default/list.html.twig ファイルの表示

@@ -86,12 +86,11 @@
{% set _fields_visible_by_user = fields|filter((metadata, field) => easyadmin_is_granted(metadata.permission)) %}
{% set _number_of_hidden_results = 0 %}
{% 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="card card-outline card-primary">
<div class="card-header">
{% block card_header %}

<h2 class="card-title text-lg ">
{% block paginator_nb_results %}
{#{{ "list.title"|trans({'%label%' : _entity_config['label']|lower }) }}#}
@@ -283,7 +282,7 @@
{% else %}
{# 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 }}">
<tr id="tr-entity-id-{{ _item_id }}" data-id="{{ _item_id }}">
{% if _has_batch_actions %}
<td><input type="checkbox" class="form-batch-checkbox"
value="{{ _item_id }}"></td>

読み込み中…
キャンセル
保存