<div id="schedule_work">
{% for Product in pagination %}
{% set isNoActive = no_active_product(Product) %}
{% if isNoActive %}
<div class="schedule_no_actives" data-index="{{ loop.index0 }}"></div>
{% endif %}
{% endfor %}
</div>
<script>
$(function () {
$('.schedule_no_actives').each(function(i) {
$inex = $(this).data('index');
$item = $('li.ec-shelfGrid__item').eq($inex);
// Form, カートボタンカット
$item.find('form').remove();
$item.find('.ec-productRole__btn').remove();
});
$('#schedule_work').remove();
});
</script>