app/Plugin/Schedule/Resource/template/default/Product/list_ex.twig line 1

Open in your IDE?
  1. <div id="schedule_work">
  2. {% for Product in pagination %}
  3.     {% set isNoActive = no_active_product(Product) %}
  4.     {% if isNoActive %}
  5.         <div class="schedule_no_actives" data-index="{{ loop.index0 }}"></div>
  6.     {% endif %}
  7. {% endfor %}
  8. </div>
  9. <script>
  10.     $(function () {
  11.         $('.schedule_no_actives').each(function(i) {
  12.             $inex = $(this).data('index');
  13.             $item = $('li.ec-shelfGrid__item').eq($inex);
  14.             // Form, カートボタンカット
  15.             $item.find('form').remove();
  16.             $item.find('.ec-productRole__btn').remove();
  17.         });
  18.         $('#schedule_work').remove();
  19.     });
  20. </script>