src/Eccube/Resource/template/admin/Product/index.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends '@admin/default_frame.twig' %}
  9. {% set menus = ['product', 'product_master'] %}
  10. {% block title %}{{ 'admin.product.product_list'|trans }}{% endblock %}
  11. {% block sub_title %}{{ 'admin.product.product_management'|trans }}{% endblock %}
  12. {% form_theme searchForm '@admin/Form/bootstrap_4_layout.html.twig' %}
  13. {% block javascript %}
  14.     <script>
  15.         $(function() {
  16.             $('#bulkDelete').on('click', function() {
  17.                 var modal = $('#bulkDeleteModal');
  18.                 // 削除中のUI変更処理
  19.                 modal.find('button').attr('disabled', 'disabled');
  20.                 $('.modal-body p', modal).text("{{ 'admin.product.permanently_delete__in_progress'|trans }}");
  21.                 $('.progress', modal).show();
  22.                 var checkedList = $('input[type=checkbox][data-delete-url]:checked');
  23.                 var totalCount = checkedList.length;
  24.                 var currentCount = 0;
  25.                 var promises = checkedList.map(function() {
  26.                     return $.ajax({
  27.                         'url': $(this).data('delete-url'),
  28.                         'type': 'delete',
  29.                         'data': {'_token': $(this).attr('token-for-anchor')}
  30.                     }).always(function() {
  31.                         $('.progress-bar', modal).css('width', (++currentCount / totalCount * 100) + '%');
  32.                     });
  33.                 });
  34.                 var addError = function(errorMessage) {
  35.                     $('<li><span class="badge bg-danger">ERROR</span> </li>')
  36.                         .append($('<span></span>').text(errorMessage))
  37.                         .appendTo('#bulkErrors');
  38.                 };
  39.                 $.when.apply($, promises)
  40.                     .done(function() {
  41.                         // 削除できなかった場合はエラーメッセージを表示
  42.                         var args = promises.length === 1 ? [arguments[0]] : [].slice.call(arguments).map(function(result) {
  43.                             return result[0];
  44.                         });
  45.                         args.filter(function(result) {
  46.                             return result.success === false;
  47.                         }).forEach(function(result) {
  48.                             addError(result.message);
  49.                         });
  50.                     })
  51.                     .fail(function() {
  52.                         // システムエラー
  53.                         addError("{{ 'admin.product.permanently_delete__system_error'|trans }}");
  54.                     })
  55.                     .always(function() {
  56.                         $('.progress', modal).hide();
  57.                         $('.modal-body p', modal).text("{{ 'admin.product.permanently_delete__complete_message'|trans }}");
  58.                         modal.find('button').removeAttr('disabled').toggle();
  59.                     })
  60.             });
  61.             $('#bulkDeleteDone').on('click', function() {
  62.                 location.reload(true);
  63.             });
  64.             toggleBtnBulk('input[id^="check_"]', '#btn_bulk');
  65.             $('input[id^="check_"]').on('change', function() {
  66.                 $('#trigger_check_all').prop('checked', false);
  67.                 toggleBtnBulk('input[id^="check_"]', '#btn_bulk');
  68.             });
  69.             $('#trigger_check_all').on('change', function() {
  70.                 var checked = $(this).prop('checked');
  71.                 if (checked) {
  72.                     $('input[id^="check_"]').prop('checked', true);
  73.                 } else {
  74.                     $('input[id^="check_"]').prop('checked', false);
  75.                 }
  76.                 toggleBtnBulk('input[id^="check_"]', '#btn_bulk');
  77.             });
  78.             $('#form_bulk').find('.action-submit').on('click', function(event) {
  79.                 event.preventDefault();
  80.                 var form = $(this).closest('form');
  81.                 if (!form.find('input:checkbox[name^="ids"]:checked').length) {
  82.                     {# TODO: should use modal instead of alert #}
  83.                     alert('please check');
  84.                     return false;
  85.                 }
  86.                 $('<input />').attr('type', 'hidden').attr('name', '{{ constant('Eccube\\Common\\Constant::TOKEN_NAME') }}')
  87.                     .val($(this).attr('token-for-anchor'))
  88.                     .appendTo(form);
  89.                 form.attr('action', $(this).data('action')).submit();
  90.                 return false;
  91.             });
  92.             var dataClass = [];
  93.             var modalClass = $('#productClassesModal');
  94.             $('form#form_bulk').on('click', 'table.table button[data-class-url]', function() {
  95.                 var btnClass = $(this);
  96.                 btnClass.attr('disabled', true);
  97.                 var productId = btnClass.data('product-id');
  98.                 if (dataClass[productId] != undefined) {
  99.                     renderClass(dataClass[productId], btnClass);
  100.                     return;
  101.                 }
  102.                 $.ajax({
  103.                     url: btnClass.data('class-load'),
  104.                     type: 'GET',
  105.                 }).done(function(data) {
  106.                     dataClass[productId] = data;
  107.                     renderClass(dataClass[productId], btnClass);
  108.                 }).fail(function() {
  109.                     alert('Failed');
  110.                 });
  111.             });
  112.             // Append html and show popup
  113.             function renderClass(data, btnClass) {
  114.                 $('div.modal-body', modalClass).html(data);
  115.                 $('h5.modal-title', modalClass).text(btnClass.data('message'));
  116.                 $('a.btn-ec-conversion', modalClass).attr('href', btnClass.data('class-url'));
  117.                 modalClass.modal('show');
  118.                 btnClass.attr('disabled', false);
  119.             }
  120.         });
  121.     </script>
  122. {% endblock javascript %}
  123. {% block main %}
  124.     <div class="c-outsideBlock">
  125.         <form id='search_form' method="post" action="{{ url('admin_product') }}">
  126.             {{ form_widget(searchForm._token) }}
  127.             <div class="c-outsideBlock__contents">
  128.                 <div class="row justify-content-start">
  129.                     <div class="col-6">
  130.                         <div class="mb-2">
  131.                             <label class="col-form-label" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ 'tooltip.product.multi_search_label'|trans }}">{{ 'admin.product.multi_search_label'|trans }}<i class="fa fa-question-circle fa-lg ms-1"></i></label>
  132.                             {{ form_widget(searchForm.id) }}
  133.                             {{ form_errors(searchForm.id) }}
  134.                         </div>
  135.                         <div class="d-inline-block mb-3" data-bs-toggle="collapse" href="#searchDetail"
  136.                              aria-expanded="false" aria-controls="searchDetail"><a><i
  137.                                         class="fa fa-plus-square-o fw-bold me-1"></i><span
  138.                                         class="fw-bold">{{ 'admin.common.search_detail'|trans }}</span></a>
  139.                         </div>
  140.                     </div>
  141.                 </div>
  142.             </div>
  143.             <div class="c-subContents collapse ec-collapse{{ has_errors ? ' show' }}" id="searchDetail">
  144.                 <div class="row mb-2">
  145.                     <div class="col-6">
  146.                         <div class="row mb-2">
  147.                             <div class="col-6">
  148.                                 <label class="col-form-label">{{ 'admin.product.category'|trans }}</label>
  149.                                 {{ form_widget(searchForm.category_id) }}
  150.                                 {{ form_errors(searchForm.category_id) }}
  151.                             </div>
  152.                         </div>
  153.                         <div class="row mb-2">
  154.                             <div class="col-12">
  155.                                 <p class="col-form-label">{{ 'admin.product.display_status'|trans }}</p>
  156.                                 {{ form_widget(searchForm.status, {'label_attr': {'class': 'checkbox-inline'}}) }}
  157.                                 {{ form_errors(searchForm.status, {'label_attr': {'class': 'checkbox-inline'}}) }}
  158.                             </div>
  159.                         </div>
  160.                         <div class="row mb-2">
  161.                             <div class="col-12">
  162.                                 <p class="col-form-label">{{ 'admin.product.stock__short'|trans }}</p>
  163.                                 {{ form_widget(searchForm.stock, {'label_attr': {'class': 'checkbox-inline'}}) }}
  164.                                 {{ form_errors(searchForm.stock) }}
  165.                             </div>
  166.                         </div>
  167.                     </div>
  168.                     <div class="col-6">
  169.                         <div class="row mb-2">
  170.                             <div class="col-6">
  171.                                 <label class="col-form-label">{{ 'admin.product.tag'|trans }}</label>
  172.                                 {{ form_widget(searchForm.tag_id) }}
  173.                                 {{ form_errors(searchForm.tag_id) }}
  174.                             </div>
  175.                         </div>
  176.                         <div class="mb-2">
  177.                             <label class="col-form-label">
  178.                                 {{ 'admin.common.create_date'|trans }}
  179.                             </label>
  180.                             <div class="row align-items-center">
  181.                                 <div class="col">
  182.                                     {# TODO: カレンダー表示の調整 #}
  183.                                     {{ form_widget(searchForm.create_datetime_start) }}
  184.                                     {{ form_errors(searchForm.create_datetime_start) }}
  185.                                 </div>
  186.                                 <div class="col-auto text-center"><span>{{ 'admin.common.separator__range'|trans }}</span>
  187.                                 </div>
  188.                                 <div class="col">
  189.                                     {{ form_widget(searchForm.create_datetime_end) }}
  190.                                     {{ form_errors(searchForm.create_datetime_end) }}
  191.                                 </div>
  192.                             </div>
  193.                         </div>
  194.                         <div class="mb-2">
  195.                             <label class="col-form-label">{{ 'admin.common.update_date'|trans }}</label>
  196.                             <div class="row align-items-center">
  197.                                 <div class="col">
  198.                                     {# TODO: カレンダー表示の調整 #}
  199.                                     {{ form_widget(searchForm.update_datetime_start) }}
  200.                                     {{ form_errors(searchForm.update_datetime_start) }}
  201.                                 </div>
  202.                                 <div class="col-auto"><span>{{ 'admin.common.separator__range'|trans }}</span></div>
  203.                                 <div class="col">
  204.                                     {{ form_widget(searchForm.update_datetime_end) }}
  205.                                     {{ form_errors(searchForm.update_datetime_end) }}
  206.                                 </div>
  207.                             </div>
  208.                         </div>
  209.                     </div>
  210.                 </div>
  211.                 {# エンティティ拡張の自動出力 #}
  212.                 {% for f in searchForm|filter(f => f.vars.eccube_form_options.auto_render) %}
  213.                     {# TODO 1項目1行になるのを改善 #}
  214.                     <div class="row mb-2">
  215.                         {% if f.vars.eccube_form_options.form_theme %}
  216.                             {% form_theme f f.vars.eccube_form_options.form_theme %}
  217.                             {{ form_row(f) }}
  218.                         {% else %}
  219.                             <div class="col">
  220.                                 <div class="mb-3">
  221.                                     <label>{{ f.vars.label|trans }}</label>
  222.                                     {{ form_widget(f) }}
  223.                                     {{ form_errors(f) }}
  224.                                 </div>
  225.                             </div>
  226.                         {% endif %}
  227.                     </div>
  228.                 {% endfor %}
  229.             </div>
  230.             <div class="c-outsideBlock__contents mb-5">
  231.                 <button class="btn btn-ec-conversion px-5" type="submit">{{ 'admin.common.search'|trans }}</button>
  232.                 {% if pagination %}
  233.                     <span class="fw-bold ms-2">{{ 'admin.common.search_result'|trans({"%count%":pagination.totalItemCount})|raw }}</span>
  234.                 {% endif %}
  235.             </div>
  236.             <div class="c-outsideBlock__contents mb-5">
  237.                 {{ include('@admin/search_items.twig', { 'form': searchForm }, ignore_missing = true) }}
  238.             </div>
  239.             {{ form_widget(searchForm.sortkey, {'attr': {'class': 'js-listSort-key'}}) }}
  240.             {{ form_widget(searchForm.sorttype, {'attr': {'class': 'js-listSort-type'}}) }}
  241.         </form>
  242.     </div>
  243.     <div class="c-contentsArea__cols">
  244.         <div class="c-contentsArea__primaryCol">
  245.             <div class="c-primaryCol">
  246.                 {% if pagination and pagination.totalItemCount %}
  247.                     <form id="form_bulk" method="POST" action="">
  248.                         <div class="row justify-content-between mb-2">
  249.                             <div class="col-6">
  250.                                 <div id="btn_bulk" class="d-none">
  251.                                     <label class="me-2">{{ 'admin.common.bulk_actions'|trans }}</label>
  252.                                     <div class="btn-group me-2" role="group">
  253.                                         <button {{ csrf_token_for_anchor() }} data-action="{{ url('admin_product_bulk_product_status', {id: constant('Eccube\\Entity\\Master\\ProductStatus::DISPLAY_SHOW')}) }}" class="btn btn-ec-regular action-submit" type="button">
  254.                                             <span>{{ 'admin.product.display_status__show'|trans }}</span>
  255.                                         </button>
  256.                                         <button {{ csrf_token_for_anchor() }} data-action="{{ url('admin_product_bulk_product_status', {id: constant('Eccube\\Entity\\Master\\ProductStatus::DISPLAY_HIDE')}) }}" class="btn btn-ec-regular action-submit" type="button">
  257.                                             <span>{{ 'admin.product.display_status__hide'|trans }}</span>
  258.                                         </button>
  259.                                     </div>
  260.                                     <button {{ csrf_token_for_anchor() }} data-action="{{ url('admin_product_bulk_product_status', {id: constant('Eccube\\Entity\\Master\\ProductStatus::DISPLAY_ABOLISHED')}) }}" class="btn btn-ec-regular me-2 action-submit">
  261.                                         {{ 'admin.product.display_status__abolished'|trans }}
  262.                                     </button>
  263.                                     <button type="button" data-bs-toggle="modal" data-bs-target="#bulkDeleteModal" class="btn btn-ec-delete">{{ 'admin.product.permanently_delete'|trans }}</button>
  264.                                 </div>
  265.                             </div>
  266.                             <div class="col-5 text-end">
  267.                                 <div class="d-inline-block me-2 align-bottom">
  268.                                     <div>
  269.                                         <select class="form-select" onchange="location = this.value;">
  270.                                             {% for pageMax in pageMaxis %}
  271.                                                 <option {% if pageMax.name == page_count %}selected=""{% endif %} value="{{ path('admin_product_page', {'page_no': 1, 'page_count': pageMax.name}) }}">{{ 'admin.common.count'|trans({ '%count%': pageMax.name }) }}</option>
  272.                                             {% endfor %}
  273.                                         </select>
  274.                                     </div>
  275.                                 </div>
  276.                                 <div class="d-inline-block">
  277.                                     <div class="btn-group" role="group">
  278.                                         <a class="btn btn-ec-regular" href="{{ url('admin_product_export') }}">
  279.                                             <i class="fa fa-cloud-download me-1 text-secondary"></i><span>{{ 'admin.common.csv_download'|trans }}</span>
  280.                                         </a>
  281.                                         <a class="btn btn-ec-regular" href="{{ url('admin_setting_shop_csv', { id : constant('\\Eccube\\Entity\\Master\\CsvType::CSV_TYPE_PRODUCT') }) }}">
  282.                                             <i class="fa fa-cog me-1 text-secondary"></i><span>{{ 'admin.setting.shop.csv_setting'|trans }}</span>
  283.                                         </a>
  284.                                     </div>
  285.                                 </div>
  286.                             </div>
  287.                         </div>
  288.                         <div class="card rounded border-0 mb-4 d-block">
  289.                             <div class="card-body p-0">
  290.                                 <table class="table table-sm">
  291.                                     <thead>
  292.                                     <tr>
  293.                                         <th class="border-top-0 ps-3 pt-2 pb-2">
  294.                                             <input type="checkbox" name="filter" value="open" id="trigger_check_all">
  295.                                         </th>
  296.                                         <th class="border-top-0 pt-2 pb-2" nowrap>{{ 'admin.product.product_id__short'|trans }}<a href="#" class="js-listSort" data-sortkey="product_id"><i class="fa fa-arrow-up" aria-hidden="true"></i></a></th>
  297.                                         <th class="border-top-0 pt-2 pb-2">{{ 'admin.product.image__short'|trans }}</th>
  298.                                         <th class="border-top-0 pt-2 pb-2">{{ 'admin.product.name'|trans }}<a href="#" class="js-listSort" data-sortkey="name"><i class="fa fa-arrow-up" aria-hidden="true"></i></a></th>
  299.                                         <th class="border-top-0 pt-2 pb-2">{{ 'admin.product.product_code__short'|trans }}<a href="#" class="js-listSort" data-sortkey="product_code"><i class="fa fa-arrow-up" aria-hidden="true"></i></a></th>
  300.                                         <th class="border-top-0 pt-2 pb-2">{{ 'admin.product.price'|trans }}</th>
  301.                                         <th class="border-top-0 pt-2 pb-2">{{ 'admin.product.stock'|trans }}<a href="#" class="js-listSort" data-sortkey="stock"><i class="fa fa-arrow-up" aria-hidden="true"></i></a></th>
  302.                                         <th class="border-top-0 pt-2 pb-2 text-nowrap">{{ 'admin.product.display_status__short'|trans }}<a href="#" class="js-listSort" data-sortkey="status"><i class="fa fa-arrow-up" aria-hidden="true"></i></a></th>
  303.                                         <th class="border-top-0 pt-2 pb-2">{{ 'admin.common.create_date'|trans }}<a href="#" class="js-listSort" data-sortkey="create_date"><i class="fa fa-arrow-up" aria-hidden="true"></i></a></th>
  304.                                         <th class="border-top-0 pt-2 pb-2">{{ 'admin.common.update_date'|trans }}<a href="#" class="js-listSort" data-sortkey="update_date"><i class="fa fa-arrow-up" aria-hidden="true"></i></a></th>
  305.                                         <th class="border-top-0 pt-2 pb-2 pe-3" colspan="3"></th>
  306.                                     </tr>
  307.                                     </thead>
  308.                                     <tbody>
  309.                                     {% for Product in pagination %}
  310.                                         <tr id="ex-product-{{ Product.id }}">
  311.                                             <td class="align-middle ps-3">
  312.                                                 <input type="checkbox" name="ids[]" value="{{ Product.id }}" id="check_{{ Product.id }}" data-delete-url="{{ url('admin_product_product_delete', { id: Product.id }) }}">
  313.                                             </td>
  314.                                             <td class="align-middle">{{ Product.id }}</td>
  315.                                             {# TODO: 画像のサイズをベタ指定しているので、styleguide側を直す #}
  316.                                             <td class="align-middle">
  317.                                                 <a href="{{ url('admin_product_product_edit', { id : Product.id }) }}">
  318.                                                     <img src="{{ asset(Product.mainFileName|no_image_product, 'save_image') }}"
  319.                                                          style="max-width: 50px">
  320.                                                 </a>
  321.                                             </td>
  322.                                             <td class="align-middle"><a
  323.                                                         href="{{ url('admin_product_product_edit', { id : Product.id }) }}">{{ Product.name }}</a>
  324.                                             </td>
  325.                                             <td class="align-middle">
  326.                                                 {{ Product.code_min }}
  327.                                                 {% if Product.code_min != Product.code_max %}{{ 'admin.common.separator__range'|trans }}{{ Product.code_max }}
  328.                                                 {% endif %}
  329.                                             </td>
  330.                                             <td class="align-middle">
  331.                                                 {{ Product.price02_min|price }}
  332.                                                 {% if Product.price02_min != Product.price02_max %}{{ 'admin.common.separator__range'|trans }}{{ Product.price02_max|price }}
  333.                                                 {% endif %}
  334.                                             </td>
  335.                                             <td class="align-middle">
  336.                                                 {% if Product.hasProductClass %}
  337.                                                     <button type="button" class="btn page-link text-dark d-inline-block"
  338.                                                             data-product-id="{{ Product.id }}"
  339.                                                             data-message="{{ 'admin.product.move_to_product_class__confirm_title'|trans({'%name%': Product.name}) }}"
  340.                                                             data-class-load="{{ url('admin_product_classes_load', { 'id' : Product.id }) }}"
  341.                                                             data-class-url="{{ url('admin_product_product_class', { 'id' : Product.id, 'return_product_list' : true }) }}">
  342.                                                         {{ 'admin.product.product_class__confirm'|trans }}
  343.                                                     </button>
  344.                                                 {% else %}
  345.                                                     {# 規格なし商品 は在庫数を表示 #}
  346.                                                     {% if Product.stockunlimited_min %}
  347.                                                         {{ 'admin.product.stock_unlimited__short'|trans }}
  348.                                                     {% else %}
  349.                                                         {{ Product.stock_min }}
  350.                                                     {% endif %}
  351.                                                 {% endif %}
  352.                                             </td>
  353.                                             <td class="align-middle">
  354.                                                 {{ Product.status.name }}
  355.                                             </td>
  356.                                             <td class="align-middle">
  357.                                                 {{ Product.create_date|date_min }}
  358.                                             </td>
  359.                                             <td class="align-middle">
  360.                                                 {{ Product.update_date|date_min }}
  361.                                             </td>
  362.                                             <td class="align-middle pe-3" colspan="3">
  363.                                                 <div class="text-end">
  364.                                                     <div class="px-1 d-inline-block text-center" data-bs-toggle="tooltip"
  365.                                                          data-bs-placement="top"
  366.                                                          title="{{ 'admin.common.display'|trans }}"><a class="btn btn-ec-actionIcon"
  367.                                                                                                        href="{{ url('product_detail', {id:Product.id}) }}"
  368.                                                                                                        target="_blank"><i
  369.                                                                     class="fa fa-eye fa-lg text-secondary"
  370.                                                                     aria-hidden="true"></i></a></div>
  371.                                                     <div class="px-1 d-inline-block text-center" data-bs-toggle="tooltip"
  372.                                                          data-bs-placement="top"
  373.                                                          title="{{ 'admin.common.copy'|trans }}">
  374.                                                         <a href="#" class="btn btn-ec-actionIcon"
  375.                                                            data-bs-toggle="modal"
  376.                                                            data-bs-target="#confirmModal-{{ Product.id }}">
  377.                                                             <i class="fa fa-files-o fa-lg text-secondary"
  378.                                                                aria-hidden="true"></i></a>
  379.                                                         <div class="modal fade" id="confirmModal-{{ Product.id }}" tabindex="-1"
  380.                                                              role="dialog"
  381.                                                              aria-labelledby="confirmModal-{{ Product.id }}" aria-hidden="true">
  382.                                                             <div class="modal-dialog" role="document">
  383.                                                                 <div class="modal-content">
  384.                                                                     <div class="modal-header">
  385.                                                                         <h5 class="modal-title fw-bold">
  386.                                                                             {{ 'admin.product.copy__confirm_title'|trans }}</h5>
  387.                                                                         <button class="btn-close" type="button"
  388.                                                                                 data-bs-dismiss="modal"
  389.                                                                                 aria-label="Close">
  390.                                                                         </button>
  391.                                                                     </div>
  392.                                                                     <div class="modal-body text-start">
  393.                                                                         <p class="text-start">
  394.                                                                             {{ 'admin.product.copy__confirm_message'|trans }}</p>
  395.                                                                     </div>
  396.                                                                     <div class="modal-footer">
  397.                                                                         <button class="btn btn-ec-sub" type="button"
  398.                                                                                 data-bs-dismiss="modal">{{ 'admin.common.cancel'|trans }}
  399.                                                                         </button>
  400.                                                                         <a
  401.                                                                                 href="{{ url('admin_product_product_copy', {'id' : Product.id}) }}"
  402.                                                                                 class="btn btn-ec-conversion"
  403.                                                                                 data-confirm="false"
  404.                                                                                 {{ csrf_token_for_anchor() }}
  405.                                                                                 data-method="post">
  406.                                                                             {{ 'admin.common.copy'|trans }}
  407.                                                                         </a>
  408.                                                                     </div>
  409.                                                                 </div>
  410.                                                             </div>
  411.                                                         </div>
  412.                                                     </div>
  413.                                                 </div>
  414.                                             </td>
  415.                                         </tr>
  416.                                     {% endfor %}
  417.                                     </tbody>
  418.                                 </table>
  419.                             </div>
  420.                             {% if pagination.totalItemCount > 0 %}
  421.                                 <div class="row justify-content-md-center mb-4 pb-4">
  422.                                     {% include "@admin/pager.twig" with { 'pages' : pagination.paginationData, 'routes' : 'admin_product_page' } %}
  423.                                 </div>
  424.                             {% endif %}
  425.                         </div>
  426.                     </form>
  427.                 {% elseif has_errors %}
  428.                     <div class="card rounded border-0">
  429.                         <div class="card-body p-4">
  430.                             <div class="text-center text-muted mb-4 h5">{{ 'admin.common.search_invalid_condition'|trans }}</div>
  431.                             <div class="text-center text-muted">{{ 'admin.common.search_try_change_condition'|trans }}</div>
  432.                         </div>
  433.                     </div>
  434.                 {% else %}
  435.                     <div class="card rounded border-0">
  436.                         <div class="card-body p-4">
  437.                             <div class="text-center text-muted mb-4 h5">{{ 'admin.common.search_no_result'|trans }}</div>
  438.                             <div class="text-center text-muted">{{ 'admin.common.search_try_change_condition'|trans }}</div>
  439.                             <div class="text-center text-muted">{{ 'admin.common.search_try_advanced_search'|trans }}</div>
  440.                         </div>
  441.                     </div>
  442.                 {% endif %}
  443.             </div>
  444.             <!-- 完全に削除の確認モーダル-->
  445.             <div class="modal fade" id="bulkDeleteModal" tabindex="-1" role="dialog" aria-labelledby="discontinuance" aria-hidden="true" data-bs-keyboard="false" data-bs-backdrop="static">
  446.                 <div class="modal-dialog" role="document">
  447.                     <div class="modal-content">
  448.                         <div class="modal-header">
  449.                             <h5 class="modal-title fw-bold">{{ 'admin.product.permanently_delete__confirm_title'|trans }}</h5>
  450.                             <button class="btn-close" type="button" data-bs-dismiss="modal" aria-label="Close"></button>
  451.                         </div>
  452.                         <div class="modal-body text-start">
  453.                             <p class="text-start">{{ 'admin.product.permanently_delete__confirm_message'|trans }}</p>
  454.                             <ul id="bulkErrors"></ul>
  455.                             <div class="progress" style="display: none">
  456.                                 <div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 0%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
  457.                             </div>
  458.                         </div>
  459.                         <div class="modal-footer">
  460.                             <button class="btn btn-ec-sub" type="button" data-bs-dismiss="modal">{{ 'admin.common.cancel'|trans }}</button>
  461.                             <button class="btn btn-ec-delete" type="button" id="bulkDelete">{{ 'admin.product.permanently_delete' | trans }}</button>
  462.                             <button class="btn btn-ec-regular" id="bulkDeleteDone" style="display: none" type="button" data-bs-dismiss="modal">{{ 'admin.product.permanently_delete__complete'|trans }}</button>
  463.                         </div>
  464.                     </div>
  465.                 </div>
  466.             </div>
  467.         </div>
  468.     </div>
  469.     <div class="modal fade" id="productClassesModal" tabindex="-1" role="dialog" aria-labelledby="productClassesModal" aria-hidden="true">
  470.         <div class="modal-dialog">
  471.             <div class="modal-content">
  472.                 <div class="modal-header">
  473.                     <h5 class="modal-title fw-bold">{# Title #}</h5>
  474.                     <button class="btn-close" type="button" data-bs-dismiss="modal" aria-label="Close">
  475.                     </button>
  476.                 </div>
  477.                 <div class="modal-body">
  478.                     {# Append data list #}
  479.                 </div>
  480.                 <div class="modal-footer">
  481.                     <button class="btn btn-v-sub" type="button" data-bs-dismiss="modal">
  482.                         {{ 'admin.common.cancel'|trans }}
  483.                     </button>
  484.                     <a class="btn btn-ec-conversion"
  485.                        href="#">
  486.                         {{ 'admin.product.move_to_product_class'|trans }}
  487.                     </a>
  488.                 </div>
  489.             </div><!-- /.modal-content -->
  490.         </div><!-- /.modal-dialog -->
  491.     </div><!-- /#productClassesModal -->
  492. {% endblock %}