var/cache/dev/twig/6a/6aba3cd103adc84f5d364898f8e4510039c281b4c9e7c02634ffd90f349fb93f.php line 52

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Product/list.twig */
  14. class __TwigTemplate_6a64bf4620d50cea2c76b7797630d1323bb6bf8ee74fbfddffbeded69b72a940 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 11
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Product/list.twig"));
  39.         // line 13
  40.         $context["body_class"] = "product_page";
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""Product/list.twig"11);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 15
  50.     public function block_javascript($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  57.         // line 16
  58.         echo "    <script>
  59.         eccube.productsClassCategories = {
  60.             ";
  61.         // line 18
  62.         $context['_parent'] = $context;
  63.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'18$this->source); })()));
  64.         $context['loop'] = [
  65.           'parent' => $context['_parent'],
  66.           'index0' => 0,
  67.           'index'  => 1,
  68.           'first'  => true,
  69.         ];
  70.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  71.             $length count($context['_seq']);
  72.             $context['loop']['revindex0'] = $length 1;
  73.             $context['loop']['revindex'] = $length;
  74.             $context['loop']['length'] = $length;
  75.             $context['loop']['last'] = === $length;
  76.         }
  77.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  78.             // line 19
  79.             echo "            \"";
  80.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse19), "js"), "html"nulltrue);
  81.             echo "\": ";
  82.             echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
  83.             if ((twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse19) == false)) {
  84.                 echo ", ";
  85.             }
  86.             // line 20
  87.             echo "            ";
  88.             ++$context['loop']['index0'];
  89.             ++$context['loop']['index'];
  90.             $context['loop']['first'] = false;
  91.             if (isset($context['loop']['length'])) {
  92.                 --$context['loop']['revindex0'];
  93.                 --$context['loop']['revindex'];
  94.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  95.             }
  96.         }
  97.         $_parent $context['_parent'];
  98.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  99.         $context array_intersect_key($context$_parent) + $_parent;
  100.         // line 21
  101.         echo "        };
  102.         \$(function() {
  103.             // 表示件数を変更
  104.             \$('.disp-number').change(function() {
  105.                 var dispNumber = \$(this).val();
  106.                 \$('#disp_number').val(dispNumber);
  107.                 \$('#pageno').val(1);
  108.                 \$(\"#form1\").submit();
  109.             });
  110.             // 並び順を変更
  111.             \$('.order-by').change(function() {
  112.                 var orderBy = \$(this).val();
  113.                 \$('#orderby').val(orderBy);
  114.                 \$('#pageno').val(1);
  115.                 \$(\"#form1\").submit();
  116.             });
  117.             \$('.add-cart').on('click', function(e) {
  118.                 var \$form = \$(this).parents('li').find('form');
  119.                 // 個数フォームのチェック
  120.                 var \$quantity = \$form.parent().find('.quantity');
  121.                 if (\$quantity.val() < 1) {
  122.                     \$quantity[0].setCustomValidity('";
  123.         // line 47
  124.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html"nulltrue);
  125.         echo "');
  126.                     setTimeout(function() {
  127.                         loadingOverlay('hide');
  128.                     }, 100);
  129.                     return true;
  130.                 } else {
  131.                     \$quantity[0].setCustomValidity('');
  132.                 }
  133.                 e.preventDefault();
  134.                 \$.ajax({
  135.                     url: \$form.attr('action'),
  136.                     type: \$form.attr('method'),
  137.                     data: \$form.serialize(),
  138.                     dataType: 'json',
  139.                     beforeSend: function(xhr, settings) {
  140.                         // Buttonを無効にする
  141.                         \$('.add-cart').prop('disabled', true);
  142.                     }
  143.                 }).done(function(data) {
  144.                     // レスポンス内のメッセージをalertで表示
  145.                     \$.each(data.messages, function() {
  146.                         \$('#ec-modal-header').html(this);
  147.                     });
  148.                     \$('.ec-modal').show()
  149.                     // カートブロックを更新する
  150.                     \$.ajax({
  151.                         url: '";
  152.         // line 75
  153.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
  154.         echo "',
  155.                         type: 'GET',
  156.                         dataType: 'html'
  157.                     }).done(function(html) {
  158.                         \$('.ec-headerRole__cart').html(html);
  159.                     });
  160.                 }).fail(function(data) {
  161.                     alert('";
  162.         // line 82
  163.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html"nulltrue);
  164.         echo "');
  165.                 }).always(function(data) {
  166.                     // Buttonを有効にする
  167.                     \$('.add-cart').prop('disabled', false);
  168.                 });
  169.             });
  170.         });
  171.         \$('.ec-modal-overlay, .ec-modal .ec-inlineBtn--cancel').on('click', function() {
  172.             \$('.ec-modal').hide()
  173.         });
  174.     </script>
  175. ";
  176.         
  177.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  178.         
  179.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  180.     }
  181.     // line 96
  182.     public function block_main($context, array $blocks = [])
  183.     {
  184.         $macros $this->macros;
  185.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  186.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  187.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  188.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  189.         // line 97
  190.         echo "    ";
  191.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'97$this->source); })()), "category_id", [], "any"falsefalsefalse97), "vars", [], "any"falsefalsefalse97), "errors", [], "any"falsefalsefalse97)) > 0)) {
  192.             // line 98
  193.             echo "        <div class=\"ec-searchnavRole\">
  194.             <p class=\"errormsg text-danger\">";
  195.             // line 99
  196.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html"nulltrue);
  197.             echo "</p>
  198.         </div>
  199.     ";
  200.         } else {
  201.             // line 102
  202.             echo "        <div class=\"ec-searchnavRole\">
  203.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  204.                 ";
  205.             // line 104
  206.             $context['_parent'] = $context;
  207.             $context['_seq'] = twig_ensure_traversable((isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'104$this->source); })()));
  208.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  209.                 // line 105
  210.                 echo "                    <input type=\"hidden\" id=\"";
  211.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse105), "id", [], "any"falsefalsefalse105), "html"nulltrue);
  212.                 echo "\"
  213.                            name=\"";
  214.                 // line 106
  215.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse106), "full_name", [], "any"falsefalsefalse106), "html"nulltrue);
  216.                 echo "\"
  217.                            ";
  218.                 // line 107
  219.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse107), "value", [], "any"falsefalsefalse107))) {
  220.                     echo "value=\"";
  221.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["item"], "vars", [], "any"falsefalsefalse107), "value", [], "any"falsefalsefalse107), "html"nulltrue);
  222.                     echo "\" ";
  223.                 }
  224.                 echo "/>
  225.                 ";
  226.             }
  227.             $_parent $context['_parent'];
  228.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  229.             $context array_intersect_key($context$_parent) + $_parent;
  230.             // line 109
  231.             echo "            </form>
  232.             <div class=\"ec-searchnavRole__topicpath\">
  233.                 <ol class=\"ec-topicpath\">
  234.                     <li class=\"ec-topicpath__item\"><a href=\"";
  235.             // line 112
  236.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  237.             echo "\">";
  238.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html"nulltrue);
  239.             echo "</a>
  240.                     </li>
  241.                     ";
  242.             // line 114
  243.             if ( !(null === (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'114$this->source); })()))) {
  244.                 // line 115
  245.                 echo "                        ";
  246.                 $context['_parent'] = $context;
  247.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'115$this->source); })()), "path", [], "any"falsefalsefalse115));
  248.                 $context['loop'] = [
  249.                   'parent' => $context['_parent'],
  250.                   'index0' => 0,
  251.                   'index'  => 1,
  252.                   'first'  => true,
  253.                 ];
  254.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  255.                     $length count($context['_seq']);
  256.                     $context['loop']['revindex0'] = $length 1;
  257.                     $context['loop']['revindex'] = $length;
  258.                     $context['loop']['length'] = $length;
  259.                     $context['loop']['last'] = === $length;
  260.                 }
  261.                 foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
  262.                     // line 116
  263.                     echo "                            <li class=\"ec-topicpath__divider\">|</li>
  264.                             <li class=\"ec-topicpath__item";
  265.                     // line 117
  266.                     if (twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse117)) {
  267.                         echo "--active";
  268.                     }
  269.                     echo "\"><a
  270.                                         href=\"";
  271.                     // line 118
  272.                     echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
  273.                     echo "?category_id=";
  274.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "id", [], "any"falsefalsefalse118), "html"nulltrue);
  275.                     echo "\">";
  276.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Path"], "name", [], "any"falsefalsefalse118), "html"nulltrue);
  277.                     echo "</a>
  278.                             </li>
  279.                         ";
  280.                     ++$context['loop']['index0'];
  281.                     ++$context['loop']['index'];
  282.                     $context['loop']['first'] = false;
  283.                     if (isset($context['loop']['length'])) {
  284.                         --$context['loop']['revindex0'];
  285.                         --$context['loop']['revindex'];
  286.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  287.                     }
  288.                 }
  289.                 $_parent $context['_parent'];
  290.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
  291.                 $context array_intersect_key($context$_parent) + $_parent;
  292.                 // line 121
  293.                 echo "                    ";
  294.             }
  295.             // line 122
  296.             echo "                    ";
  297.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'122$this->source); })()), "vars", [], "any"falsefalsefalse122), "value", [], "any"falsefalsefalse122) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'122$this->source); })()), "vars", [], "any"falsefalsefalse122), "value", [], "any"falsefalsefalse122), "name", [], "any"falsefalsefalse122))) {
  298.                 // line 123
  299.                 echo "                        <li class=\"ec-topicpath__divider\">|</li>
  300.                         <li class=\"ec-topicpath__item\">";
  301.                 // line 124
  302.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("「%name%」の検索結果", ["%name%" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["search_form"]) || array_key_exists("search_form"$context) ? $context["search_form"] : (function () { throw new RuntimeError('Variable "search_form" does not exist.'124$this->source); })()), "vars", [], "any"falsefalsefalse124), "value", [], "any"falsefalsefalse124), "name", [], "any"falsefalsefalse124)]), "html"nulltrue);
  303.                 echo "</li>
  304.                     ";
  305.             }
  306.             // line 126
  307.             echo "                </ol>
  308.             </div>
  309.             <div class=\"ec-searchnavRole__infos\">
  310.                 <div class=\"ec-searchnavRole__counter\">
  311.                     ";
  312.             // line 130
  313.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'130$this->source); })()), "totalItemCount", [], "any"falsefalsefalse130) > 0)) {
  314.                 // line 131
  315.                 echo "                        ";
  316.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>", ["%count%" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'131$this->source); })()), "totalItemCount", [], "any"falsefalsefalse131)]);
  317.                 echo "
  318.                     ";
  319.             } else {
  320.                 // line 133
  321.                 echo "                        <span>";
  322.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html"nulltrue);
  323.                 echo "</span>
  324.                     ";
  325.             }
  326.             // line 135
  327.             echo "                </div>
  328.                 ";
  329.             // line 136
  330.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'136$this->source); })()), "totalItemCount", [], "any"falsefalsefalse136) > 0)) {
  331.                 // line 137
  332.                 echo "                    <div class=\"ec-searchnavRole__actions\">
  333.                         <div class=\"ec-select\">
  334.                             ";
  335.                 // line 139
  336.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["disp_number_form"]) || array_key_exists("disp_number_form"$context) ? $context["disp_number_form"] : (function () { throw new RuntimeError('Variable "disp_number_form" does not exist.'139$this->source); })()), 'widget', ["id" => """attr" => ["class" => "disp-number"]]);
  337.                 echo "
  338.                             ";
  339.                 // line 140
  340.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["order_by_form"]) || array_key_exists("order_by_form"$context) ? $context["order_by_form"] : (function () { throw new RuntimeError('Variable "order_by_form" does not exist.'140$this->source); })()), 'widget', ["id" => """attr" => ["class" => "order-by"]]);
  341.                 echo "
  342.                         </div>
  343.                     </div>
  344.                 ";
  345.             }
  346.             // line 144
  347.             echo "            </div>
  348.         </div>
  349.         ";
  350.             // line 146
  351.             if ((twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'146$this->source); })()), "totalItemCount", [], "any"falsefalsefalse146) > 0)) {
  352.                 // line 147
  353.                 echo "            <div class=\"ec-shelfRole\">
  354.                 <ul class=\"ec-shelfGrid\">
  355.                     ";
  356.                 // line 149
  357.                 $context['_parent'] = $context;
  358.                 $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'149$this->source); })()));
  359.                 foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  360.                     // line 150
  361.                     echo "                        <li class=\"ec-shelfGrid__item\">
  362.                             <a href=\"";
  363.                     // line 151
  364.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse151)]), "html"nulltrue);
  365.                     echo "\">
  366.                                 <p class=\"ec-shelfGrid__item-image\">
  367.                                     <img src=\"";
  368.                     // line 153
  369.                     echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsefalse153)), "save_image"), "resize", ["thumbnail" => ["size" => [=> 480=> 480]]]), "html"nulltrue);
  370.                     // line 155
  371.                     echo "\">
  372.                                     ";
  373.                     // line 157
  374.                     echo "                                </p>
  375.                                 <span>";
  376.                     // line 158
  377.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "ViewData", [=> 1], "method"falsefalsefalse158), "html"nulltrue);
  378.                     echo "</span>
  379.                                 <p>";
  380.                     // line 159
  381.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse159), "html"nulltrue);
  382.                     echo "</p>
  383.                                 ";
  384.                     // line 160
  385.                     if (twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse160)) {
  386.                         // line 161
  387.                         echo "                                    <p>";
  388.                         echo twig_nl2br(twig_get_attribute($this->env$this->source$context["Product"], "description_list", [], "any"falsefalsefalse161));
  389.                         echo "</p>
  390.                                 ";
  391.                     }
  392.                     // line 163
  393.                     echo "                                <p class=\"price02-default\">
  394.                                     ";
  395.                     // line 164
  396.                     if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse164)) {
  397.                         // line 165
  398.                         echo "                                        ";
  399.                         if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse165) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse165))) {
  400.                             // line 166
  401.                             echo "                                            ";
  402.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse166)), "html"nulltrue);
  403.                             echo "
  404.                                         ";
  405.                         } else {
  406.                             // line 168
  407.                             echo "                                            ";
  408.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse168)), "html"nulltrue);
  409.                             echo " ~ ";
  410.                             echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse168)), "html"nulltrue);
  411.                             echo "
  412.                                         ";
  413.                         }
  414.                         // line 170
  415.                         echo "                                    ";
  416.                     } else {
  417.                         // line 171
  418.                         echo "                                        ";
  419.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse171)), "html"nulltrue);
  420.                         echo "
  421.                                     ";
  422.                     }
  423.                     // line 173
  424.                     echo "                                </p>
  425.                             </a>
  426.                             ";
  427.                     // line 176
  428.                     if (twig_get_attribute($this->env$this->source$context["Product"], "stock_find", [], "any"falsefalsefalse176)) {
  429.                         // line 177
  430.                         echo "                                ";
  431.                         $context["form"] = twig_get_attribute($this->env$this->source, (isset($context["forms"]) || array_key_exists("forms"$context) ? $context["forms"] : (function () { throw new RuntimeError('Variable "forms" does not exist.'177$this->source); })()), twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse177), [], "array"falsefalsefalse177);
  432.                         // line 178
  433.                         echo "                                <form name=\"form";
  434.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse178), "html"nulltrue);
  435.                         echo "\" id=\"productForm";
  436.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse178), "html"nulltrue);
  437.                         echo "\" action=\"";
  438.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_add_cart", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse178)]), "html"nulltrue);
  439.                         echo "\" method=\"post\">
  440.                                     <div class=\"ec-productRole__actions\">
  441.                                         ";
  442.                         // line 180
  443.                         if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id1", [], "any"truetruefalse180)) {
  444.                             // line 181
  445.                             echo "                                            <div class=\"ec-select\">
  446.                                                 ";
  447.                             // line 182
  448.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'182$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse182), 'widget');
  449.                             echo "
  450.                                                 ";
  451.                             // line 183
  452.                             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'183$this->source); })()), "classcategory_id1", [], "any"falsefalsefalse183), 'errors');
  453.                             echo "
  454.                                             </div>
  455.                                             ";
  456.                             // line 185
  457.                             if (twig_get_attribute($this->env$this->source, ($context["form"] ?? null), "classcategory_id2", [], "any"truetruefalse185)) {
  458.                                 // line 186
  459.                                 echo "                                                <div class=\"ec-select\">
  460.                                                     ";
  461.                                 // line 187
  462.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'187$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse187), 'widget');
  463.                                 echo "
  464.                                                     ";
  465.                                 // line 188
  466.                                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'188$this->source); })()), "classcategory_id2", [], "any"falsefalsefalse188), 'errors');
  467.                                 echo "
  468.                                                 </div>
  469.                                             ";
  470.                             }
  471.                             // line 191
  472.                             echo "                                        ";
  473.                         }
  474.                         // line 192
  475.                         echo "                                        <div class=\"ec-numberInput\"><span>";
  476.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("数量"), "html"nulltrue);
  477.                         echo "</span>
  478.                                             ";
  479.                         // line 193
  480.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'193$this->source); })()), "quantity", [], "any"falsefalsefalse193), 'widget', ["attr" => ["class" => "quantity"]]);
  481.                         echo "
  482.                                             ";
  483.                         // line 194
  484.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'194$this->source); })()), "quantity", [], "any"falsefalsefalse194), 'errors');
  485.                         echo "
  486.                                         </div>
  487.                                     </div>
  488.                                     ";
  489.                         // line 197
  490.                         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'197$this->source); })()), 'rest');
  491.                         echo "
  492.                                 </form>
  493.                                 <div class=\"ec-productRole__btn\">
  494.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"";
  495.                         // line 200
  496.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse200), "html"nulltrue);
  497.                         echo "\" form=\"productForm";
  498.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse200), "html"nulltrue);
  499.                         echo "\">
  500.                                         ";
  501.                         // line 201
  502.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html"nulltrue);
  503.                         echo "
  504.                                     </button>
  505.                                 </div>
  506.                             ";
  507.                     } else {
  508.                         // line 205
  509.                         echo "                                <div class=\"ec-productRole__btn\">
  510.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  511.                                         ";
  512.                         // line 207
  513.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ただいま品切れ中です。"), "html"nulltrue);
  514.                         echo "
  515.                                     </button>
  516.                                 </div>
  517.                             ";
  518.                     }
  519.                     // line 211
  520.                     echo "                        </li>
  521.                     ";
  522.                 }
  523.                 $_parent $context['_parent'];
  524.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  525.                 $context array_intersect_key($context$_parent) + $_parent;
  526.                 // line 213
  527.                 echo "                </ul>
  528.             </div>
  529.             <div class=\"ec-modal\">
  530.                 <div class=\"ec-modal-overlay\">
  531.                     <div class=\"ec-modal-wrap\">
  532.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"";
  533.                 // line 218
  534.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/cross-dark.svg"), "html"nulltrue);
  535.                 echo "\" alt=\"\"/></span></span>
  536.                         <div id=\"ec-modal-header\" class=\"text-center\">";
  537.                 // line 219
  538.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html"nulltrue);
  539.                 echo "</div>
  540.                         <div class=\"ec-modal-box\">
  541.                             <div class=\"ec-role\">
  542.                                 <span class=\"ec-inlineBtn--cancel\">";
  543.                 // line 222
  544.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html"nulltrue);
  545.                 echo "</span>
  546.                                 <a href=\"";
  547.                 // line 223
  548.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  549.                 echo "\" class=\"ec-inlineBtn--action\">";
  550.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html"nulltrue);
  551.                 echo "</a>
  552.                             </div>
  553.                         </div>
  554.                     </div>
  555.                 </div>
  556.             </div>
  557.             <div class=\"ec-pagerRole\">
  558.                 ";
  559.                 // line 230
  560.                 $this->loadTemplate("pager.twig""Product/list.twig"230)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'230$this->source); })()), "paginationData", [], "any"falsefalsefalse230)]));
  561.                 // line 231
  562.                 echo "            </div>
  563.         ";
  564.             }
  565.             // line 233
  566.             echo "    ";
  567.         }
  568.         
  569.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  570.         
  571.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  572.     }
  573.     public function getTemplateName()
  574.     {
  575.         return "Product/list.twig";
  576.     }
  577.     public function isTraitable()
  578.     {
  579.         return false;
  580.     }
  581.     public function getDebugInfo()
  582.     {
  583.         return array (  594 => 233,  590 => 231,  588 => 230,  576 => 223,  572 => 222,  566 => 219,  562 => 218,  555 => 213,  548 => 211,  541 => 207,  537 => 205,  530 => 201,  524 => 200,  518 => 197,  512 => 194,  508 => 193,  503 => 192,  500 => 191,  494 => 188,  490 => 187,  487 => 186,  485 => 185,  480 => 183,  476 => 182,  473 => 181,  471 => 180,  461 => 178,  458 => 177,  456 => 176,  451 => 173,  445 => 171,  442 => 170,  434 => 168,  428 => 166,  425 => 165,  423 => 164,  420 => 163,  414 => 161,  412 => 160,  408 => 159,  404 => 158,  401 => 157,  398 => 155,  396 => 153,  391 => 151,  388 => 150,  384 => 149,  380 => 147,  378 => 146,  374 => 144,  367 => 140,  363 => 139,  359 => 137,  357 => 136,  354 => 135,  348 => 133,  342 => 131,  340 => 130,  334 => 126,  329 => 124,  326 => 123,  323 => 122,  320 => 121,  299 => 118,  293 => 117,  290 => 116,  272 => 115,  270 => 114,  263 => 112,  258 => 109,  246 => 107,  242 => 106,  237 => 105,  233 => 104,  229 => 102,  223 => 99,  220 => 98,  217 => 97,  207 => 96,  184 => 82,  174 => 75,  143 => 47,  115 => 21,  101 => 20,  93 => 19,  76 => 18,  72 => 16,  62 => 15,  51 => 11,  49 => 13,  36 => 11,);
  584.     }
  585.     public function getSourceContext()
  586.     {
  587.         return new Source("{#
  588. This file is part of EC-CUBE
  589. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  590. http://www.ec-cube.co.jp/
  591. For the full copyright and license information, please view the LICENSE
  592. file that was distributed with this source code.
  593. #}
  594. {% extends 'default_frame.twig' %}
  595. {% set body_class = 'product_page' %}
  596. {% block javascript %}
  597.     <script>
  598.         eccube.productsClassCategories = {
  599.             {% for Product in pagination %}
  600.             \"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
  601.             {% endfor %}
  602.         };
  603.         \$(function() {
  604.             // 表示件数を変更
  605.             \$('.disp-number').change(function() {
  606.                 var dispNumber = \$(this).val();
  607.                 \$('#disp_number').val(dispNumber);
  608.                 \$('#pageno').val(1);
  609.                 \$(\"#form1\").submit();
  610.             });
  611.             // 並び順を変更
  612.             \$('.order-by').change(function() {
  613.                 var orderBy = \$(this).val();
  614.                 \$('#orderby').val(orderBy);
  615.                 \$('#pageno').val(1);
  616.                 \$(\"#form1\").submit();
  617.             });
  618.             \$('.add-cart').on('click', function(e) {
  619.                 var \$form = \$(this).parents('li').find('form');
  620.                 // 個数フォームのチェック
  621.                 var \$quantity = \$form.parent().find('.quantity');
  622.                 if (\$quantity.val() < 1) {
  623.                     \$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  624.                     setTimeout(function() {
  625.                         loadingOverlay('hide');
  626.                     }, 100);
  627.                     return true;
  628.                 } else {
  629.                     \$quantity[0].setCustomValidity('');
  630.                 }
  631.                 e.preventDefault();
  632.                 \$.ajax({
  633.                     url: \$form.attr('action'),
  634.                     type: \$form.attr('method'),
  635.                     data: \$form.serialize(),
  636.                     dataType: 'json',
  637.                     beforeSend: function(xhr, settings) {
  638.                         // Buttonを無効にする
  639.                         \$('.add-cart').prop('disabled', true);
  640.                     }
  641.                 }).done(function(data) {
  642.                     // レスポンス内のメッセージをalertで表示
  643.                     \$.each(data.messages, function() {
  644.                         \$('#ec-modal-header').html(this);
  645.                     });
  646.                     \$('.ec-modal').show()
  647.                     // カートブロックを更新する
  648.                     \$.ajax({
  649.                         url: '{{ url('block_cart') }}',
  650.                         type: 'GET',
  651.                         dataType: 'html'
  652.                     }).done(function(html) {
  653.                         \$('.ec-headerRole__cart').html(html);
  654.                     });
  655.                 }).fail(function(data) {
  656.                     alert('{{ 'カートへの追加に失敗しました。'|trans }}');
  657.                 }).always(function(data) {
  658.                     // Buttonを有効にする
  659.                     \$('.add-cart').prop('disabled', false);
  660.                 });
  661.             });
  662.         });
  663.         \$('.ec-modal-overlay, .ec-modal .ec-inlineBtn--cancel').on('click', function() {
  664.             \$('.ec-modal').hide()
  665.         });
  666.     </script>
  667. {% endblock %}
  668. {% block main %}
  669.     {% if search_form.category_id.vars.errors|length > 0 %}
  670.         <div class=\"ec-searchnavRole\">
  671.             <p class=\"errormsg text-danger\">{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
  672.         </div>
  673.     {% else %}
  674.         <div class=\"ec-searchnavRole\">
  675.             <form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
  676.                 {% for item in search_form %}
  677.                     <input type=\"hidden\" id=\"{{ item.vars.id }}\"
  678.                            name=\"{{ item.vars.full_name }}\"
  679.                            {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
  680.                 {% endfor %}
  681.             </form>
  682.             <div class=\"ec-searchnavRole__topicpath\">
  683.                 <ol class=\"ec-topicpath\">
  684.                     <li class=\"ec-topicpath__item\"><a href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
  685.                     </li>
  686.                     {% if Category is not null %}
  687.                         {% for Path in Category.path %}
  688.                             <li class=\"ec-topicpath__divider\">|</li>
  689.                             <li class=\"ec-topicpath__item{% if loop.last %}--active{% endif %}\"><a
  690.                                         href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
  691.                             </li>
  692.                         {% endfor %}
  693.                     {% endif %}
  694.                     {% if search_form.vars.value and search_form.vars.value.name %}
  695.                         <li class=\"ec-topicpath__divider\">|</li>
  696.                         <li class=\"ec-topicpath__item\">{{ '「%name%」の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</li>
  697.                     {% endif %}
  698.                 </ol>
  699.             </div>
  700.             <div class=\"ec-searchnavRole__infos\">
  701.                 <div class=\"ec-searchnavRole__counter\">
  702.                     {% if pagination.totalItemCount > 0 %}
  703.                         {{ '<span class=\"ec-font-bold\">%count%件</span><span>の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  704.                     {% else %}
  705.                         <span>{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
  706.                     {% endif %}
  707.                 </div>
  708.                 {% if pagination.totalItemCount > 0 %}
  709.                     <div class=\"ec-searchnavRole__actions\">
  710.                         <div class=\"ec-select\">
  711.                             {{ form_widget(disp_number_form, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  712.                             {{ form_widget(order_by_form, {'id': '', 'attr': {'class': 'order-by'}}) }}
  713.                         </div>
  714.                     </div>
  715.                 {% endif %}
  716.             </div>
  717.         </div>
  718.         {% if pagination.totalItemCount > 0 %}
  719.             <div class=\"ec-shelfRole\">
  720.                 <ul class=\"ec-shelfGrid\">
  721.                     {% for Product in pagination %}
  722.                         <li class=\"ec-shelfGrid__item\">
  723.                             <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  724.                                 <p class=\"ec-shelfGrid__item-image\">
  725.                                     <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') | imagine_filter('resize', {
  726.     \"thumbnail\": {\"size\": [480, 480] }}
  727. ) }}\">
  728.                                     {#<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\">#}
  729.                                 </p>
  730.                                 <span>{{ Product.ViewData(1) }}</span>
  731.                                 <p>{{ Product.name }}</p>
  732.                                 {% if Product.description_list %}
  733.                                     <p>{{ Product.description_list|raw|nl2br }}</p>
  734.                                 {% endif %}
  735.                                 <p class=\"price02-default\">
  736.                                     {% if Product.hasProductClass %}
  737.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  738.                                             {{ Product.getPrice02IncTaxMin|price }}
  739.                                         {% else %}
  740.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  741.                                         {% endif %}
  742.                                     {% else %}
  743.                                         {{ Product.getPrice02IncTaxMin|price }}
  744.                                     {% endif %}
  745.                                 </p>
  746.                             </a>
  747.                             {% if Product.stock_find %}
  748.                                 {% set form = forms[Product.id] %}
  749.                                 <form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
  750.                                     <div class=\"ec-productRole__actions\">
  751.                                         {% if form.classcategory_id1 is defined %}
  752.                                             <div class=\"ec-select\">
  753.                                                 {{ form_widget(form.classcategory_id1) }}
  754.                                                 {{ form_errors(form.classcategory_id1) }}
  755.                                             </div>
  756.                                             {% if form.classcategory_id2 is defined %}
  757.                                                 <div class=\"ec-select\">
  758.                                                     {{ form_widget(form.classcategory_id2) }}
  759.                                                     {{ form_errors(form.classcategory_id2) }}
  760.                                                 </div>
  761.                                             {% endif %}
  762.                                         {% endif %}
  763.                                         <div class=\"ec-numberInput\"><span>{{ '数量'|trans }}</span>
  764.                                             {{ form_widget(form.quantity, {'attr': {'class': 'quantity'}}) }}
  765.                                             {{ form_errors(form.quantity) }}
  766.                                         </div>
  767.                                     </div>
  768.                                     {{ form_rest(form) }}
  769.                                 </form>
  770.                                 <div class=\"ec-productRole__btn\">
  771.                                     <button type=\"submit\" class=\"ec-blockBtn--action add-cart\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
  772.                                         {{ 'カートに入れる'|trans }}
  773.                                     </button>
  774.                                 </div>
  775.                             {% else %}
  776.                                 <div class=\"ec-productRole__btn\">
  777.                                     <button type=\"button\" class=\"ec-blockBtn--action\" disabled=\"disabled\">
  778.                                         {{ 'ただいま品切れ中です。'|trans }}
  779.                                     </button>
  780.                                 </div>
  781.                             {% endif %}
  782.                         </li>
  783.                     {% endfor %}
  784.                 </ul>
  785.             </div>
  786.             <div class=\"ec-modal\">
  787.                 <div class=\"ec-modal-overlay\">
  788.                     <div class=\"ec-modal-wrap\">
  789.                         <span class=\"ec-modal-close\"><span class=\"ec-icon\"><img src=\"{{ asset('assets/icon/cross-dark.svg') }}\" alt=\"\"/></span></span>
  790.                         <div id=\"ec-modal-header\" class=\"text-center\">{{ 'カートに追加しました。'|trans }}</div>
  791.                         <div class=\"ec-modal-box\">
  792.                             <div class=\"ec-role\">
  793.                                 <span class=\"ec-inlineBtn--cancel\">{{ 'お買い物を続ける'|trans }}</span>
  794.                                 <a href=\"{{ url('cart') }}\" class=\"ec-inlineBtn--action\">{{ 'カートへ進む'|trans }}</a>
  795.                             </div>
  796.                         </div>
  797.                     </div>
  798.                 </div>
  799.             </div>
  800.             <div class=\"ec-pagerRole\">
  801.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  802.             </div>
  803.         {% endif %}
  804.     {% endif %}
  805. {% endblock %}""Product/list.twig""/home/nissinhamonline/www/demo/app/template/nissinham/Product/list.twig");
  806.     }
  807. }