<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Product/list.twig */
class __TwigTemplate_82f47811888f351ab5944c08b27fc4c98026081e44436a66e3e68ededea350c0 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Product/list.twig"));
// line 13
$context["body_class"] = "product_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Product/list.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 15
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 16
echo "<style>
.p-product__title-text {
color: #807245;
}
.c-button--unelevated.is-secondary {
background-color: #807245;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 26
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 27
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/eccube.js"), "html", null, true);
echo "\"></script>
<script>
eccube.productsClassCategories = {
";
// line 30
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 30, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 31
echo " \"";
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 31), "js"), "html", null, true);
echo "\": ";
echo $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getClassCategoriesAsJson($context["Product"]);
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 31) == false)) {
echo ", ";
}
// line 32
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
echo " };
\$(function() {
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
// 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.add-cart').on('click', function(e) {
var \$form = \$(this).parents('li').find('form');
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('";
// line 59
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("1以上で入力してください。"), "html", null, true);
echo "');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#js-product__modal-message').html(this);
});
\$('#p-product__modal-checkbox').prop('checked', true);
// カートブロックを更新する
\$.ajax({
url: '";
// line 87
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("block_cart");
echo "',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('#js-header__utility-cart').html(html);
});
}).fail(function(data) {
alert('";
// line 94
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへの追加に失敗しました。"), "html", null, true);
echo "');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 104
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 105
echo "
<section class=\"p-product\">
<h2 class=\"p-product__title\">
";
// line 108
if ((twig_get_attribute($this->env, $this->source, twig_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.', 108, $this->source); })()), "vars", [], "any", false, false, false, 108), "value", [], "any", false, false, false, 108) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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.', 108, $this->source); })()), "vars", [], "any", false, false, false, 108), "value", [], "any", false, false, false, 108), "name", [], "any", false, false, false, 108))) {
// line 109
echo " <span class=\"p-product__title-text\">KEYWORD SEARCH</span>
";
} elseif ( !(null === // line 110
(isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 110, $this->source); })()))) {
// line 111
echo " <span class=\"p-product__title-text\">PRODUCT</span>
";
} else {
// line 113
echo " <span class=\"p-product__title-text\">ALL PRODUCT</span>
";
}
// line 115
echo " </h2>
<div class=\"p-product__contents\">
";
// line 117
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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.', 117, $this->source); })()), "category_id", [], "any", false, false, false, 117), "vars", [], "any", false, false, false, 117), "errors", [], "any", false, false, false, 117)) > 0)) {
// line 118
echo " <p>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご指定のカテゴリは存在しません"), "html", null, true);
echo "</p>
";
} else {
// line 120
echo " <div class=\"p-product__search\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
";
// line 122
$context['_parent'] = $context;
$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.', 122, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 123
echo " <input type=\"hidden\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 123), "id", [], "any", false, false, false, 123), "html", null, true);
echo "\" name=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 123), "full_name", [], "any", false, false, false, 123), "html", null, true);
echo "\" ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 123), "value", [], "any", false, false, false, 123))) {
echo "value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["item"], "vars", [], "any", false, false, false, 123), "value", [], "any", false, false, false, 123), "html", null, true);
echo "\" ";
}
echo "/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 125
echo " </form>
<div class=\"p-product__topicpath\">
<ul class=\"p-product__topicpath-list u-list-sanitize\">
<li class=\"p-product__topicpath-list-item\">
<a class=\"p-product__topicpath-link\" href=\"";
// line 129
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("全て"), "html", null, true);
echo "</a>
</li>
";
// line 131
if ( !(null === (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 131, $this->source); })()))) {
// line 132
echo " ";
$context['_parent'] = $context;
$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.', 132, $this->source); })()), "path", [], "any", false, false, false, 132));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["Path"]) {
// line 133
echo " <li class=\"p-product__topicpath-list-item";
if (twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 133)) {
echo " is-active";
}
echo "\">
<a class=\"p-product__topicpath-link\" href=\"";
// line 134
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_list");
echo "?category_id=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "id", [], "any", false, false, false, 134), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Path"], "name", [], "any", false, false, false, 134), "html", null, true);
echo "</a>
</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Path'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 137
echo " ";
}
// line 138
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_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.', 138, $this->source); })()), "vars", [], "any", false, false, false, 138), "value", [], "any", false, false, false, 138) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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.', 138, $this->source); })()), "vars", [], "any", false, false, false, 138), "value", [], "any", false, false, false, 138), "name", [], "any", false, false, false, 138))) {
// line 139
echo " <li class=\"p-product__topicpath-list-item is-result\">
<p class=\"p-product__topicpath-result\">";
// line 140
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("%name%の検索結果", ["%name%" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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.', 140, $this->source); })()), "vars", [], "any", false, false, false, 140), "value", [], "any", false, false, false, 140), "name", [], "any", false, false, false, 140)]), "html", null, true);
echo "</p>
</li>
";
}
// line 143
echo " </ul>
</div>
<div class=\"p-product__controller\">
<p class=\"p-product__controller-result\">
";
// line 147
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.', 147, $this->source); })()), "totalItemCount", [], "any", false, false, false, 147) > 0)) {
// line 148
echo " ";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"p-product__controller-result--number\">%count%件</span><span class=\"p-product__controller-result--text\">の商品が見つかりました</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.', 148, $this->source); })()), "totalItemCount", [], "any", false, false, false, 148)]);
echo "
";
} else {
// line 150
echo " <span class=\"p-product__controller-result--text\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お探しの商品は見つかりませんでした"), "html", null, true);
echo "</span>
";
}
// line 152
echo " </p>
";
// line 153
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.', 153, $this->source); })()), "totalItemCount", [], "any", false, false, false, 153) > 0)) {
// line 154
echo " <div class=\"p-product__controller-actions\">
<div class=\"p-product__controller-actions-item\">
<div class=\"c-select mdc-select mdc-select--outlined\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"disp-number\">件数</label>
";
// line 159
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.', 159, $this->source); })()), 'widget', ["id" => "disp-number", "attr" => ["class" => "c-select__native-control mdc-select__native-control disp-number"]]);
echo "
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
</div>
<div class=\"p-product__controller-actions-item\">
<div class=\"c-select mdc-select mdc-select--outlined\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"order-by\">並び順</label>
";
// line 171
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.', 171, $this->source); })()), 'widget', ["id" => "order-by", "attr" => ["class" => "c-select__native-control mdc-select__native-control order-by"]]);
echo "
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
</div>
</div>
";
}
// line 181
echo " </div>
</div>
";
// line 183
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.', 183, $this->source); })()), "totalItemCount", [], "any", false, false, false, 183) > 0)) {
// line 184
echo " <ul class=\"p-product__list u-list-sanitize\">
";
// line 185
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 185, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 186
echo " <li class=\"p-product__list-item\">
<section class=\"c-list-product\">
<a class=\"c-list-product__link\" href=\"";
// line 188
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", false, false, false, 188)]), "html", null, true);
echo "\">
<div class=\"c-list-product__image js-list-product__image\">
<div class=\"c-list-product__image-contents\">
<img class=\"c-list-product__image-pic\" src=\"";
// line 191
echo twig_escape_filter($this->env, $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", false, false, false, 191)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 191), "html", null, true);
echo "\">
</div>
</div>
<h2 class=\"c-list-product__name js-list-product__name\">";
// line 194
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, false, 194), "html", null, true);
echo "</h2>
<p class=\"c-list-product__price\">
<span class=\"price02-default\">
";
// line 197
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, false, 197)) {
// line 198
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, false, 198) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, false, 198))) {
// line 199
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 199)), "html", null, true);
echo "
";
} else {
// line 201
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 201)), "html", null, true);
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMax", [], "any", false, false, false, 201)), "html", null, true);
echo "
";
}
// line 203
echo " ";
} else {
// line 204
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02IncTaxMin", [], "any", false, false, false, 204)), "html", null, true);
echo "
";
}
// line 206
echo " </span>
</p>
</a>
";
// line 209
if (twig_get_attribute($this->env, $this->source, $context["Product"], "stock_find", [], "any", false, false, false, 209)) {
// line 210
echo " ";
$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.', 210, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 210), [], "array", false, false, false, 210);
// line 211
echo " <form name=\"form";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 211), "html", null, true);
echo "\" id=\"productForm";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 211), "html", null, true);
echo "\" action=\"";
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", false, false, false, 211)]), "html", null, true);
echo "\" method=\"post\">
<div class=\"c-list-product__form\">
";
// line 213
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id1", [], "any", true, true, false, 213)) {
// line 214
echo " <div class=\"c-list-product__form-box\">
<div class=\"c-list-product__form-box-item\">
<div class=\"c-select mdc-select mdc-select--outlined";
// line 216
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(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.', 216, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 216))) ? (" mdc-select--invalid") : (""));
echo "\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"";
// line 218
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 218, $this->source); })()), "children", [], "any", false, false, false, 218), "classcategory_id1", [], "any", false, false, false, 218), "vars", [], "any", false, false, false, 218), "id", [], "any", false, false, false, 218), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 218, $this->source); })()), "children", [], "any", false, false, false, 218), "classcategory_id1", [], "any", false, false, false, 218), "vars", [], "any", false, false, false, 218), "label", [], "any", false, false, false, 218), "html", null, true);
echo "</label>
";
// line 219
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.', 219, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 219), 'widget', ["attr" => ["class" => "c-select__native-control mdc-select__native-control"]]);
echo "
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
";
// line 226
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.', 226, $this->source); })()), "classcategory_id1", [], "any", false, false, false, 226), 'errors', ["label_attr" => ["class" => "mdc-select-helper-text mdc-select-helper-text--validation-msg"]]);
echo "
</div>
</div>
";
// line 229
if (twig_get_attribute($this->env, $this->source, ($context["form"] ?? null), "classcategory_id2", [], "any", true, true, false, 229)) {
// line 230
echo " <div class=\"c-list-product__form-box\">
<div class=\"c-list-product__form-box-item\">
<div class=\"c-select mdc-select mdc-select--outlined";
// line 232
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(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.', 232, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 232))) ? (" mdc-select--invalid") : (""));
echo "\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"";
// line 234
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 234, $this->source); })()), "children", [], "any", false, false, false, 234), "classcategory_id2", [], "any", false, false, false, 234), "vars", [], "any", false, false, false, 234), "id", [], "any", false, false, false, 234), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 234, $this->source); })()), "children", [], "any", false, false, false, 234), "classcategory_id2", [], "any", false, false, false, 234), "vars", [], "any", false, false, false, 234), "label", [], "any", false, false, false, 234), "html", null, true);
echo "</label>
";
// line 235
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.', 235, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 235), 'widget', ["attr" => ["class" => "c-select__native-control mdc-select__native-control"]]);
echo "
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
";
// line 242
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.', 242, $this->source); })()), "classcategory_id2", [], "any", false, false, false, 242), 'errors', ["label_attr" => ["class" => "mdc-select-helper-text mdc-select-helper-text--validation-msg"]]);
echo "
</div>
</div>
";
}
// line 246
echo " ";
}
// line 247
echo " <div class=\"c-list-product__form-box\">
<div class=\"c-list-product__form-box-item\">
<div class=\"c-text-field mdc-text-field mdc-text-field--outlined\">
";
// line 250
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.', 250, $this->source); })()), "quantity", [], "any", false, false, false, 250), 'widget', ["attr" => ["class" => "c-text-field__input mdc-text-field__input quantity"]]);
echo "
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\">
<label class=\"c-floating-label mdc-floating-label\" for=\"quantity";
// line 254
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 254), "html", null, true);
echo "\">数量</label>
</div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
";
// line 259
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.', 259, $this->source); })()), "quantity", [], "any", false, false, false, 259), 'errors');
echo "
</div>
</div>
";
// line 262
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.', 262, $this->source); })()), 'rest');
echo "
</div>
</form>
<div class=\"c-list-product__actions\">
<div class=\"c-list-product__actions-item\">
<button class=\"c-button is-secondary c-button--unelevated mdc-button mdc-button--unelevated add-cart\" type=\"submit\" data-cartid=\"";
// line 267
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 267), "html", null, true);
echo "\" form=\"productForm";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Product"], "id", [], "any", false, false, false, 267), "html", null, true);
echo "\">
<span class=\"c-button__label mdc-button__label\">";
// line 268
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに入れる"), "html", null, true);
echo "</span>
</button>
</div>
</div>
";
} else {
// line 273
echo " <div class=\"c-list-product__actions\">
<div class=\"c-list-product__actions-item\">
<button class=\"c-button c-button--unelevated mdc-button mdc-button--unelevated\" type=\"button\" disabled=\"disabled\">
<span class=\"c-button__label mdc-button__label\">";
// line 276
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SOLD OUT"), "html", null, true);
echo "</span>
</button>
</div>
</div>
";
}
// line 281
echo " </section>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 284
echo " </ul>
<div class=\"p-product__modal\">
<input class=\"p-product__modal-checkbox\" id=\"p-product__modal-checkbox\" type=\"checkbox\">
<div class=\"p-product__modal-overlay\">
<label class=\"p-product__modal-overlay-close\" for=\"p-product__modal-checkbox\"></label>
<div class=\"p-product__modal-contents\">
<label class=\"p-product__modal-close\" for=\"p-product__modal-checkbox\">
<i class=\"p-product__modal-close-icon material-icons\">close</i>
</label>
<div class=\"p-product__modal-header\">
<p class=\"p-product__modal-message\" id=\"js-product__modal-message\">";
// line 294
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートに追加しました。"), "html", null, true);
echo "</p>
</div>
<div class=\"p-product__modal-actions\">
<div class=\"p-product__modal-actions-item\">
<a class=\"p-product__modal-button c-button c-button--unelevated is-secondary mdc-button mdc-button--unelevated\" href=\"";
// line 298
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
echo "\">
<span class=\"c-button__label mdc-button__label\">";
// line 299
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("カートへ進む"), "html", null, true);
echo "</span>
</a>
</div>
<div class=\"p-product__modal-actions-item\">
<label class=\"p-product__modal-button c-button c-button--unelevated is-primary mdc-button mdc-button--unelevated\" for=\"p-product__modal-checkbox\">
<span class=\"c-button__label mdc-button__label\">";
// line 304
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お買い物を続ける"), "html", null, true);
echo "</span>
</label>
</div>
</div>
</div>
</div>
</div>
";
// line 312
$this->loadTemplate("pager.twig", "Product/list.twig", 312)->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.', 312, $this->source); })()), "paginationData", [], "any", false, false, false, 312)]));
// line 313
echo " ";
}
// line 314
echo " ";
}
// line 315
echo " </div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Product/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 712 => 315, 709 => 314, 706 => 313, 704 => 312, 693 => 304, 685 => 299, 681 => 298, 674 => 294, 662 => 284, 654 => 281, 646 => 276, 641 => 273, 633 => 268, 627 => 267, 619 => 262, 613 => 259, 605 => 254, 598 => 250, 593 => 247, 590 => 246, 583 => 242, 573 => 235, 567 => 234, 562 => 232, 558 => 230, 556 => 229, 550 => 226, 540 => 219, 534 => 218, 529 => 216, 525 => 214, 523 => 213, 513 => 211, 510 => 210, 508 => 209, 503 => 206, 497 => 204, 494 => 203, 486 => 201, 480 => 199, 477 => 198, 475 => 197, 469 => 194, 461 => 191, 455 => 188, 451 => 186, 447 => 185, 444 => 184, 442 => 183, 438 => 181, 425 => 171, 410 => 159, 403 => 154, 401 => 153, 398 => 152, 392 => 150, 386 => 148, 384 => 147, 378 => 143, 372 => 140, 369 => 139, 366 => 138, 363 => 137, 342 => 134, 335 => 133, 317 => 132, 315 => 131, 308 => 129, 302 => 125, 285 => 123, 281 => 122, 277 => 120, 271 => 118, 269 => 117, 265 => 115, 261 => 113, 257 => 111, 255 => 110, 252 => 109, 250 => 108, 245 => 105, 235 => 104, 216 => 94, 206 => 87, 175 => 59, 147 => 33, 133 => 32, 125 => 31, 108 => 30, 101 => 27, 91 => 26, 73 => 16, 63 => 15, 52 => 11, 50 => 13, 37 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
http://www.lockon.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_page' %}
{% block stylesheet %}
<style>
.p-product__title-text {
color: #807245;
}
.c-button--unelevated.is-secondary {
background-color: #807245;
}
</style>
{% endblock %}
{% block javascript %}
<script src=\"{{ asset('assets/js/eccube.js') }}\"></script>
<script>
eccube.productsClassCategories = {
{% for Product in pagination %}
\"{{ Product.id|escape('js') }}\": {{ class_categories_as_json(Product)|raw }}{% if loop.last == false %}, {% endif %}
{% endfor %}
};
\$(function() {
// 表示件数を変更
\$('.disp-number').change(function() {
var dispNumber = \$(this).val();
\$('#disp_number').val(dispNumber);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
// 並び順を変更
\$('.order-by').change(function() {
var orderBy = \$(this).val();
\$('#orderby').val(orderBy);
\$('#pageno').val(1);
\$(\"#form1\").submit();
});
\$('.add-cart').on('click', function(e) {
var \$form = \$(this).parents('li').find('form');
// 個数フォームのチェック
var \$quantity = \$form.parent().find('.quantity');
if (\$quantity.val() < 1) {
\$quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
setTimeout(function() {
loadingOverlay('hide');
}, 100);
return true;
} else {
\$quantity[0].setCustomValidity('');
}
e.preventDefault();
\$.ajax({
url: \$form.attr('action'),
type: \$form.attr('method'),
data: \$form.serialize(),
dataType: 'json',
beforeSend: function(xhr, settings) {
// Buttonを無効にする
\$('.add-cart').prop('disabled', true);
}
}).done(function(data) {
// レスポンス内のメッセージをalertで表示
\$.each(data.messages, function() {
\$('#js-product__modal-message').html(this);
});
\$('#p-product__modal-checkbox').prop('checked', true);
// カートブロックを更新する
\$.ajax({
url: '{{ url('block_cart') }}',
type: 'GET',
dataType: 'html'
}).done(function(html) {
\$('#js-header__utility-cart').html(html);
});
}).fail(function(data) {
alert('{{ 'カートへの追加に失敗しました。'|trans }}');
}).always(function(data) {
// Buttonを有効にする
\$('.add-cart').prop('disabled', false);
});
});
});
</script>
{% endblock %}
{% block main %}
<section class=\"p-product\">
<h2 class=\"p-product__title\">
{% if search_form.vars.value and search_form.vars.value.name %}
<span class=\"p-product__title-text\">KEYWORD SEARCH</span>
{% elseif Category is not null %}
<span class=\"p-product__title-text\">PRODUCT</span>
{% else %}
<span class=\"p-product__title-text\">ALL PRODUCT</span>
{% endif %}
</h2>
<div class=\"p-product__contents\">
{% if search_form.category_id.vars.errors|length > 0 %}
<p>{{ 'ご指定のカテゴリは存在しません'|trans }}</p>
{% else %}
<div class=\"p-product__search\">
<form name=\"form1\" id=\"form1\" method=\"get\" action=\"?\">
{% for item in search_form %}
<input type=\"hidden\" id=\"{{ item.vars.id }}\" name=\"{{ item.vars.full_name }}\" {% if item.vars.value is not empty %}value=\"{{ item.vars.value }}\" {% endif %}/>
{% endfor %}
</form>
<div class=\"p-product__topicpath\">
<ul class=\"p-product__topicpath-list u-list-sanitize\">
<li class=\"p-product__topicpath-list-item\">
<a class=\"p-product__topicpath-link\" href=\"{{ url('product_list') }}\">{{ '全て'|trans }}</a>
</li>
{% if Category is not null %}
{% for Path in Category.path %}
<li class=\"p-product__topicpath-list-item{% if loop.last %} is-active{% endif %}\">
<a class=\"p-product__topicpath-link\" href=\"{{ url('product_list') }}?category_id={{ Path.id }}\">{{ Path.name }}</a>
</li>
{% endfor %}
{% endif %}
{% if search_form.vars.value and search_form.vars.value.name %}
<li class=\"p-product__topicpath-list-item is-result\">
<p class=\"p-product__topicpath-result\">{{ '%name%の検索結果'|trans({ '%name%': search_form.vars.value.name }) }}</p>
</li>
{% endif %}
</ul>
</div>
<div class=\"p-product__controller\">
<p class=\"p-product__controller-result\">
{% if pagination.totalItemCount > 0 %}
{{ '<span class=\"p-product__controller-result--number\">%count%件</span><span class=\"p-product__controller-result--text\">の商品が見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
{% else %}
<span class=\"p-product__controller-result--text\">{{ 'お探しの商品は見つかりませんでした'|trans }}</span>
{% endif %}
</p>
{% if pagination.totalItemCount > 0 %}
<div class=\"p-product__controller-actions\">
<div class=\"p-product__controller-actions-item\">
<div class=\"c-select mdc-select mdc-select--outlined\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"disp-number\">件数</label>
{{ form_widget(disp_number_form, {'id': 'disp-number', 'attr': {'class': 'c-select__native-control mdc-select__native-control disp-number'}}) }}
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
</div>
<div class=\"p-product__controller-actions-item\">
<div class=\"c-select mdc-select mdc-select--outlined\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"order-by\">並び順</label>
{{ form_widget(order_by_form, {'id': 'order-by', 'attr': {'class': 'c-select__native-control mdc-select__native-control order-by'}}) }}
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% if pagination.totalItemCount > 0 %}
<ul class=\"p-product__list u-list-sanitize\">
{% for Product in pagination %}
<li class=\"p-product__list-item\">
<section class=\"c-list-product\">
<a class=\"c-list-product__link\" href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<div class=\"c-list-product__image js-list-product__image\">
<div class=\"c-list-product__image-contents\">
<img class=\"c-list-product__image-pic\" src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\">
</div>
</div>
<h2 class=\"c-list-product__name js-list-product__name\">{{ Product.name }}</h2>
<p class=\"c-list-product__price\">
<span class=\"price02-default\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|price }}
{% endif %}
</span>
</p>
</a>
{% if Product.stock_find %}
{% set form = forms[Product.id] %}
<form name=\"form{{ Product.id }}\" id=\"productForm{{ Product.id }}\" action=\"{{ url('product_add_cart', {id:Product.id}) }}\" method=\"post\">
<div class=\"c-list-product__form\">
{% if form.classcategory_id1 is defined %}
<div class=\"c-list-product__form-box\">
<div class=\"c-list-product__form-box-item\">
<div class=\"c-select mdc-select mdc-select--outlined{{ has_errors(form.classcategory_id1) ? ' mdc-select--invalid' }}\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"{{ form.children.classcategory_id1.vars.id }}\">{{ form.children.classcategory_id1.vars.label }}</label>
{{ form_widget(form.classcategory_id1, { 'attr': {'class': 'c-select__native-control mdc-select__native-control' }}) }}
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
{{ form_errors(form.classcategory_id1, {'label_attr': {'class': 'mdc-select-helper-text mdc-select-helper-text--validation-msg'}}) }}
</div>
</div>
{% if form.classcategory_id2 is defined %}
<div class=\"c-list-product__form-box\">
<div class=\"c-list-product__form-box-item\">
<div class=\"c-select mdc-select mdc-select--outlined{{ has_errors(form.classcategory_id2) ? ' mdc-select--invalid' }}\">
<i class=\"mdc-select__dropdown-icon\"></i>
<label class=\"c-select__label\" for=\"{{ form.children.classcategory_id2.vars.id }}\">{{ form.children.classcategory_id2.vars.label }}</label>
{{ form_widget(form.classcategory_id2, { 'attr': {'class': 'c-select__native-control mdc-select__native-control' }}) }}
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\"></div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
{{ form_errors(form.classcategory_id2, {'label_attr': {'class': 'mdc-select-helper-text mdc-select-helper-text--validation-msg'}}) }}
</div>
</div>
{% endif %}
{% endif %}
<div class=\"c-list-product__form-box\">
<div class=\"c-list-product__form-box-item\">
<div class=\"c-text-field mdc-text-field mdc-text-field--outlined\">
{{ form_widget(form.quantity, {'attr': {'class': 'c-text-field__input mdc-text-field__input quantity' }}) }}
<div class=\"mdc-notched-outline\">
<div class=\"mdc-notched-outline__leading\"></div>
<div class=\"mdc-notched-outline__notch\">
<label class=\"c-floating-label mdc-floating-label\" for=\"quantity{{ Product.id }}\">数量</label>
</div>
<div class=\"mdc-notched-outline__trailing\"></div>
</div>
</div>
{{ form_errors(form.quantity) }}
</div>
</div>
{{ form_rest(form) }}
</div>
</form>
<div class=\"c-list-product__actions\">
<div class=\"c-list-product__actions-item\">
<button class=\"c-button is-secondary c-button--unelevated mdc-button mdc-button--unelevated add-cart\" type=\"submit\" data-cartid=\"{{ Product.id }}\" form=\"productForm{{ Product.id }}\">
<span class=\"c-button__label mdc-button__label\">{{ 'カートに入れる'|trans }}</span>
</button>
</div>
</div>
{% else %}
<div class=\"c-list-product__actions\">
<div class=\"c-list-product__actions-item\">
<button class=\"c-button c-button--unelevated mdc-button mdc-button--unelevated\" type=\"button\" disabled=\"disabled\">
<span class=\"c-button__label mdc-button__label\">{{ 'SOLD OUT'|trans }}</span>
</button>
</div>
</div>
{% endif %}
</section>
</li>
{% endfor %}
</ul>
<div class=\"p-product__modal\">
<input class=\"p-product__modal-checkbox\" id=\"p-product__modal-checkbox\" type=\"checkbox\">
<div class=\"p-product__modal-overlay\">
<label class=\"p-product__modal-overlay-close\" for=\"p-product__modal-checkbox\"></label>
<div class=\"p-product__modal-contents\">
<label class=\"p-product__modal-close\" for=\"p-product__modal-checkbox\">
<i class=\"p-product__modal-close-icon material-icons\">close</i>
</label>
<div class=\"p-product__modal-header\">
<p class=\"p-product__modal-message\" id=\"js-product__modal-message\">{{ 'カートに追加しました。'|trans }}</p>
</div>
<div class=\"p-product__modal-actions\">
<div class=\"p-product__modal-actions-item\">
<a class=\"p-product__modal-button c-button c-button--unelevated is-secondary mdc-button mdc-button--unelevated\" href=\"{{ url('cart') }}\">
<span class=\"c-button__label mdc-button__label\">{{ 'カートへ進む'|trans }}</span>
</a>
</div>
<div class=\"p-product__modal-actions-item\">
<label class=\"p-product__modal-button c-button c-button--unelevated is-primary mdc-button mdc-button--unelevated\" for=\"p-product__modal-checkbox\">
<span class=\"c-button__label mdc-button__label\">{{ 'お買い物を続ける'|trans }}</span>
</label>
</div>
</div>
</div>
</div>
</div>
{% include \"pager.twig\" with {'pages': pagination.paginationData} %}
{% endif %}
{% endif %}
</div>
</section>
{% endblock %}", "Product/list.twig", "/home/admin/meldia-mp/web/meldia_mp_shop/app/template/meldiastore/Product/list.twig");
}
}