var/cache/dev/twig/65/654ac324acc6012ebb8e15c5b1ec37722a68fc072c4108e13bb4c2caedf6f08c.php line 39

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. /* ProductReview4/Resource/template/default/index.twig */
  14. class __TwigTemplate_0f5ec81bf72b5d15b5f3b220ced71b2f39dae2135382a5db4f85e294ca540667 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.             'stylesheet' => [$this'block_stylesheet'],
  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""ProductReview4/Resource/template/default/index.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""ProductReview4/Resource/template/default/index.twig"));
  39.         // line 13
  40.         $context["body_class"] = "product_review";
  41.         // line 15
  42.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'15$this->source); })()), [=> "Form/form_div_layout.twig"], true);
  43.         // line 11
  44.         $this->parent $this->loadTemplate("default_frame.twig""ProductReview4/Resource/template/default/index.twig"11);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  48.         
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  50.     }
  51.     // line 17
  52.     public function block_stylesheet($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  59.         // line 18
  60.         echo "    <style>
  61.         #product_review_recommend_level {
  62.             display: flex;
  63.             flex-direction: column;
  64.             flex-wrap: wrap;
  65.         }
  66.         #product_review_recommend_level label {
  67.             position: relative;
  68.             bottom: 18px;
  69.             left: 20px;
  70.             line-height: 0;
  71.         }
  72.     </style>
  73. ";
  74.         
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  76.         
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  78.     }
  79.     // line 33
  80.     public function block_main($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  87.         // line 34
  88.         echo "    <div class=\"ec-registerRole\">
  89.       
  90.         <div class=\"ec-pageHeader\">
  91.             <h1>";
  92.         // line 37
  93.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.title"), "html"nulltrue);
  94.         echo "</h1>
  95.         </div>
  96.         
  97.         <div class=\"review_about_wrap\">
  98.           <p class=\"ec-para-nomal\">";
  99.         // line 41
  100.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.description"), "html"nulltrue);
  101.         echo "</p>
  102.           <p>同一商品へのレビュー投稿は1度のみとさせていただきます。<a href=\"";
  103.         // line 42
  104.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_agreement");
  105.         echo "\">サービス利用規約</a>をご確認ください。</p>
  106.           ";
  107.         // line 44
  108.         if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") == false)) {
  109.             // line 45
  110.             echo "            <p class=\"error\">レビュー投稿はログイン後にご利用いただけます。</p>
  111.             <div class=\"read_more\">
  112.               <a href=\"";
  113.             // line 47
  114.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  115.             echo "\" class=\"\">ログイン</a>
  116.             </div>
  117.           ";
  118.         } else {
  119.             // line 51
  120.             echo "            ";
  121.             if ((isset($context["has_review"]) || array_key_exists("has_review"$context) ? $context["has_review"] : (function () { throw new RuntimeError('Variable "has_review" does not exist.'51$this->source); })())) {
  122.                 // line 52
  123.                 echo "              <p class=\"error\">すでにレビューを投稿済みです。</p>
  124.               <div class=\"read_more\">
  125.                 <a href=\"";
  126.                 // line 54
  127.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'54$this->source); })()), "id", [], "any"falsefalsefalse54)]), "html"nulltrue);
  128.                 echo "\" class=\"\">戻る</a>
  129.               </div>
  130.             ";
  131.             }
  132.             // line 57
  133.             echo "
  134.             ";
  135.             // line 58
  136.             if (((isset($context["has_order"]) || array_key_exists("has_order"$context) ? $context["has_order"] : (function () { throw new RuntimeError('Variable "has_order" does not exist.'58$this->source); })()) == false)) {
  137.                 // line 59
  138.                 echo "              <p class=\"error\">レンタル履歴がありません。</p>
  139.               <div class=\"read_more\">
  140.                 <a href=\"";
  141.                 // line 61
  142.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'61$this->source); })()), "id", [], "any"falsefalsefalse61)]), "html"nulltrue);
  143.                 echo "\" class=\"\">戻る</a>
  144.               </div>
  145.             ";
  146.             }
  147.             // line 64
  148.             echo "          ";
  149.         }
  150.         // line 65
  151.         echo "        </div>
  152.           
  153.         
  154.         ";
  155.         // line 68
  156.         if ((($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") && ((isset($context["has_review"]) || array_key_exists("has_review"$context) ? $context["has_review"] : (function () { throw new RuntimeError('Variable "has_review" does not exist.'68$this->source); })()) == false)) && (isset($context["has_order"]) || array_key_exists("has_order"$context) ? $context["has_order"] : (function () { throw new RuntimeError('Variable "has_order" does not exist.'68$this->source); })()))) {
  157.             // line 69
  158.             echo "        <div class=\"ec-off1Grid\">
  159.             <div class=\"ec-off1Grid__cell\">
  160.                 <form method=\"post\" action=\"";
  161.             // line 71
  162.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_review_index", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'71$this->source); })()), "id", [], "any"falsefalsefalse71)]), "html"nulltrue);
  163.             echo "\" enctype=\"multipart/form-data\">
  164.                     ";
  165.             // line 72
  166.             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.'72$this->source); })()), "_token", [], "any"falsefalsefalse72), 'widget');
  167.             echo "
  168.                     
  169.                     <input type=\"hidden\" name=\"product_review[product_class_category1]\" value=\"";
  170.             // line 74
  171.             echo twig_escape_filter($this->env, (isset($context["order_class_category_name1"]) || array_key_exists("order_class_category_name1"$context) ? $context["order_class_category_name1"] : (function () { throw new RuntimeError('Variable "order_class_category_name1" does not exist.'74$this->source); })()), "html"nulltrue);
  172.             echo "\">
  173.                     <input type=\"hidden\" name=\"product_review[product_class_category2]\" value=\"";
  174.             // line 75
  175.             echo twig_escape_filter($this->env, (isset($context["order_class_category_name2"]) || array_key_exists("order_class_category_name2"$context) ? $context["order_class_category_name2"] : (function () { throw new RuntimeError('Variable "order_class_category_name2" does not exist.'75$this->source); })()), "html"nulltrue);
  176.             echo "\">
  177.                     <input type=\"hidden\" name=\"product_review[product_quantity]\" value=\"";
  178.             // line 76
  179.             echo twig_escape_filter($this->env, (isset($context["order_quantity"]) || array_key_exists("order_quantity"$context) ? $context["order_quantity"] : (function () { throw new RuntimeError('Variable "order_quantity" does not exist.'76$this->source); })()), "html"nulltrue);
  180.             echo "\">
  181.                     
  182.                     <div class=\"ec-borderedDefs\">
  183.                         ";
  184.             // line 80
  185.             echo "                        <dl>
  186.                             <dt>
  187.                                 <label class=\"ec-label\">";
  188.             // line 82
  189.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.product_name"), "html"nulltrue);
  190.             echo "</label>
  191.                             </dt>
  192.                             <dd>
  193.                                 <div class=\"ec-input\">
  194.                                     ";
  195.             // line 86
  196.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'86$this->source); })()), "name", [], "any"falsefalsefalse86), "html"nulltrue);
  197.             echo "
  198.                                 </div>
  199.                             </dd>
  200.                         </dl>
  201.                         ";
  202.             // line 91
  203.             echo "                        <dl>
  204.                             <dt>
  205.                                 ";
  206.             // line 93
  207.             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.'93$this->source); })()), "reviewer_name", [], "any"falsefalsefalse93), 'label', ["label_attr" => ["class" => "ec-label"]]);
  208.             echo "
  209.                             </dt>
  210.                             <dd>
  211.                                 <div class=\"ec-input";
  212.             // line 96
  213.             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.'96$this->source); })()), "reviewer_name", [], "any"falsefalsefalse96))) ? (" error") : (""));
  214.             echo "\">
  215.                                     ";
  216.             // line 97
  217.             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.'97$this->source); })()), "reviewer_name", [], "any"falsefalsefalse97), 'widget');
  218.             echo "
  219.                                     ";
  220.             // line 98
  221.             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.'98$this->source); })()), "reviewer_name", [], "any"falsefalsefalse98), 'errors');
  222.             echo "
  223.                                 </div>
  224.                             </dd>
  225.                         </dl>
  226.                         ";
  227.             // line 114
  228.             echo "                        ";
  229.             // line 126
  230.             echo "                        ";
  231.             // line 127
  232.             echo "                        <dl>
  233.                             <dt>
  234.                                 ";
  235.             // line 129
  236.             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.'129$this->source); })()), "recommend_level", [], "any"falsefalsefalse129), 'label', ["label_attr" => ["class" => "ec-label"]]);
  237.             echo "
  238.                             </dt>
  239.                             <dd>
  240.                                 <div class=\"ec-radio";
  241.             // line 132
  242.             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.'132$this->source); })()), "recommend_level", [], "any"falsefalsefalse132))) ? (" error") : (""));
  243.             echo "\">
  244.                                     ";
  245.             // line 133
  246.             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.'133$this->source); })()), "recommend_level", [], "any"falsefalsefalse133), 'widget');
  247.             echo "
  248.                                     ";
  249.             // line 134
  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.'134$this->source); })()), "recommend_level", [], "any"falsefalsefalse134), 'errors');
  251.             echo "
  252.                                 </div>
  253.                             </dd>
  254.                         </dl>
  255.                         ";
  256.             // line 139
  257.             echo "                        <dl>
  258.                             <dt>
  259.                                 ";
  260.             // line 141
  261.             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.'141$this->source); })()), "title", [], "any"falsefalsefalse141), 'label', ["label_attr" => ["class" => "ec-label"]]);
  262.             echo "
  263.                             </dt>
  264.                             <dd>
  265.                                 <div class=\"ec-input";
  266.             // line 144
  267.             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.'144$this->source); })()), "title", [], "any"falsefalsefalse144))) ? (" error") : (""));
  268.             echo "\">
  269.                                     ";
  270.             // line 145
  271.             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.'145$this->source); })()), "title", [], "any"falsefalsefalse145), 'widget');
  272.             echo "
  273.                                     ";
  274.             // line 146
  275.             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.'146$this->source); })()), "title", [], "any"falsefalsefalse146), 'errors');
  276.             echo "
  277.                                 </div>
  278.                             </dd>
  279.                         </dl>
  280.                         ";
  281.             // line 151
  282.             echo "                        <dl>
  283.                             <dt>
  284.                                 ";
  285.             // line 153
  286.             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.'153$this->source); })()), "comment", [], "any"falsefalsefalse153), 'label', ["label_attr" => ["class" => "ec-label"]]);
  287.             echo "
  288.                             </dt>
  289.                             <dd>
  290.                                 <div class=\"ec-input";
  291.             // line 156
  292.             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.'156$this->source); })()), "comment", [], "any"falsefalsefalse156))) ? (" error") : (""));
  293.             echo "\">
  294.                                     ";
  295.             // line 157
  296.             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.'157$this->source); })()), "comment", [], "any"falsefalsefalse157), 'widget');
  297.             echo "
  298.                                     ";
  299.             // line 158
  300.             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.'158$this->source); })()), "comment", [], "any"falsefalsefalse158), 'errors');
  301.             echo "
  302.                                 </div>
  303.                             </dd>
  304.                         </dl>
  305.                              
  306.                         <dl class=\"file-upload\">
  307.                           <dt><label class=\"ec-label\">画像</label></dt><!--サイズ制限5M-->
  308.                           <dd>
  309.                             ";
  310.             // line 167
  311.             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.'167$this->source); })()), "product_file1_input", [], "any"falsefalsefalse167), 'widget', ["attr" => ["id" => "edit_image1""id" => "img_upload""data-trigger" => "change"]]);
  312.             echo "
  313.                             ";
  314.             // line 168
  315.             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.'168$this->source); })()), "product_file1_input", [], "any"falsefalsefalse168), 'errors');
  316.             echo "
  317.                             ";
  318.             // line 170
  319.             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.'170$this->source); })()), "product_file1", [], "any"falsefalsefalse170), 'widget');
  320.             echo "
  321.                             ";
  322.             // line 171
  323.             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.'171$this->source); })()), "product_file1", [], "any"falsefalsefalse171), 'errors');
  324.             echo "
  325.                             <img src=\"\" id=\"tl_img1\" class=\"img_preview\">
  326.                           </dd>
  327.                         </dl>
  328.                     </div>
  329.                     <div class=\"ec-registerRole__actions\">
  330.                         <div class=\"ec-off4Grid\">
  331.                             <div class=\"ec-off4Grid__cell\">
  332.                                 <button class=\"ec-blockBtn--action\" type=\"submit\" name=\"mode\"
  333.                                         value=\"confirm\">";
  334.             // line 181
  335.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.confirm"), "html"nulltrue);
  336.             echo "</button>
  337.                                 <a class=\"ec-blockBtn--cancel\"
  338.                                    href=\"";
  339.             // line 183
  340.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'183$this->source); })()), "id", [], "any"falsefalsefalse183)]), "html"nulltrue);
  341.             echo "\">";
  342.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.back"), "html"nulltrue);
  343.             echo "</a>
  344.                             </div>
  345.                         </div>
  346.                     </div>
  347.                 </form>
  348.             </div>
  349.         </div>
  350.      ";
  351.         }
  352.         // line 190
  353.         echo "            
  354.     </div>
  355. ";
  356.         
  357.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  358.         
  359.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  360.     }
  361.     public function getTemplateName()
  362.     {
  363.         return "ProductReview4/Resource/template/default/index.twig";
  364.     }
  365.     public function isTraitable()
  366.     {
  367.         return false;
  368.     }
  369.     public function getDebugInfo()
  370.     {
  371.         return array (  377 => 190,  364 => 183,  359 => 181,  346 => 171,  342 => 170,  337 => 168,  333 => 167,  321 => 158,  317 => 157,  313 => 156,  307 => 153,  303 => 151,  296 => 146,  292 => 145,  288 => 144,  282 => 141,  278 => 139,  271 => 134,  267 => 133,  263 => 132,  257 => 129,  253 => 127,  251 => 126,  249 => 114,  242 => 98,  238 => 97,  234 => 96,  228 => 93,  224 => 91,  217 => 86,  210 => 82,  206 => 80,  200 => 76,  196 => 75,  192 => 74,  187 => 72,  183 => 71,  179 => 69,  177 => 68,  172 => 65,  169 => 64,  163 => 61,  159 => 59,  157 => 58,  154 => 57,  148 => 54,  144 => 52,  141 => 51,  134 => 47,  130 => 45,  128 => 44,  123 => 42,  119 => 41,  112 => 37,  107 => 34,  97 => 33,  74 => 18,  64 => 17,  53 => 11,  51 => 15,  49 => 13,  36 => 11,);
  372.     }
  373.     public function getSourceContext()
  374.     {
  375.         return new Source("{#
  376. This file is part of EC-CUBE
  377. Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
  378. http://www.lockon.co.jp/
  379. For the full copyright and license information, please view the LICENSE
  380. file that was distributed with this source code.
  381. #}
  382. {% extends 'default_frame.twig' %}
  383. {% set body_class = 'product_review' %}
  384. {% form_theme form 'Form/form_div_layout.twig' %}
  385. {% block stylesheet %}
  386.     <style>
  387.         #product_review_recommend_level {
  388.             display: flex;
  389.             flex-direction: column;
  390.             flex-wrap: wrap;
  391.         }
  392.         #product_review_recommend_level label {
  393.             position: relative;
  394.             bottom: 18px;
  395.             left: 20px;
  396.             line-height: 0;
  397.         }
  398.     </style>
  399. {% endblock %}
  400. {% block main %}
  401.     <div class=\"ec-registerRole\">
  402.       
  403.         <div class=\"ec-pageHeader\">
  404.             <h1>{{ 'product_review.front.review.title'|trans }}</h1>
  405.         </div>
  406.         
  407.         <div class=\"review_about_wrap\">
  408.           <p class=\"ec-para-nomal\">{{ 'product_review.front.review.description'|trans }}</p>
  409.           <p>同一商品へのレビュー投稿は1度のみとさせていただきます。<a href=\"{{ url('help_agreement') }}\">サービス利用規約</a>をご確認ください。</p>
  410.           {% if is_granted('ROLE_USER') == false %}
  411.             <p class=\"error\">レビュー投稿はログイン後にご利用いただけます。</p>
  412.             <div class=\"read_more\">
  413.               <a href=\"{{ url('mypage_login') }}\" class=\"\">ログイン</a>
  414.             </div>
  415.           {% else %}
  416.             {% if has_review %}
  417.               <p class=\"error\">すでにレビューを投稿済みです。</p>
  418.               <div class=\"read_more\">
  419.                 <a href=\"{{ url('product_detail', { id: Product.id }) }}\" class=\"\">戻る</a>
  420.               </div>
  421.             {% endif %}
  422.             {% if has_order == false %}
  423.               <p class=\"error\">レンタル履歴がありません。</p>
  424.               <div class=\"read_more\">
  425.                 <a href=\"{{ url('product_detail', { id: Product.id }) }}\" class=\"\">戻る</a>
  426.               </div>
  427.             {% endif %}
  428.           {% endif %}
  429.         </div>
  430.           
  431.         
  432.         {% if is_granted('ROLE_USER') and has_review==false and has_order %}
  433.         <div class=\"ec-off1Grid\">
  434.             <div class=\"ec-off1Grid__cell\">
  435.                 <form method=\"post\" action=\"{{ url('product_review_index', { id: Product.id }) }}\" enctype=\"multipart/form-data\">
  436.                     {{ form_widget(form._token) }}
  437.                     
  438.                     <input type=\"hidden\" name=\"product_review[product_class_category1]\" value=\"{{ order_class_category_name1 }}\">
  439.                     <input type=\"hidden\" name=\"product_review[product_class_category2]\" value=\"{{ order_class_category_name2 }}\">
  440.                     <input type=\"hidden\" name=\"product_review[product_quantity]\" value=\"{{ order_quantity }}\">
  441.                     
  442.                     <div class=\"ec-borderedDefs\">
  443.                         {# 商品名 #}
  444.                         <dl>
  445.                             <dt>
  446.                                 <label class=\"ec-label\">{{ 'product_review.front.review.product_name'|trans }}</label>
  447.                             </dt>
  448.                             <dd>
  449.                                 <div class=\"ec-input\">
  450.                                     {{ Product.name }}
  451.                                 </div>
  452.                             </dd>
  453.                         </dl>
  454.                         {# 投稿者名 #}
  455.                         <dl>
  456.                             <dt>
  457.                                 {{ form_label(form.reviewer_name, '', {'label_attr': {'class': 'ec-label'}}) }}
  458.                             </dt>
  459.                             <dd>
  460.                                 <div class=\"ec-input{{ has_errors(form.reviewer_name) ? ' error' }}\">
  461.                                     {{ form_widget(form.reviewer_name) }}
  462.                                     {{ form_errors(form.reviewer_name) }}
  463.                                 </div>
  464.                             </dd>
  465.                         </dl>
  466.                         {# 投稿者URL 
  467.                         <dl>
  468.                             <dt>
  469.                                 {{ form_label(form.reviewer_url, '', {'label_attr': {'class': 'ec-label'}}) }}
  470.                             </dt>
  471.                             <dd>
  472.                                 <div class=\"ec-input{{ has_errors(form.reviewer_url) ? ' error' }}\">
  473.                                     {{ form_widget(form.reviewer_url) }}
  474.                                     {{ form_errors(form.reviewer_url) }}
  475.                                 </div>
  476.                             </dd>
  477.                         </dl>#}
  478.                         {# 性別 
  479.                         <dl>
  480.                             <dt>
  481.                                 {{ form_label(form.sex, 'common.gender', {'label_attr': {'class': 'ec-label'}}) }}
  482.                             </dt>
  483.                             <dd>
  484.                                 <div class=\"ec-radio{{ has_errors(form.sex) ? ' error' }}\">
  485.                                     {{ form_widget(form.sex) }}
  486.                                     {{ form_errors(form.sex) }}
  487.                                 </div>
  488.                             </dd>
  489.                         </dl>#}
  490.                         {# おすすめレベル #}
  491.                         <dl>
  492.                             <dt>
  493.                                 {{ form_label(form.recommend_level, '', {'label_attr': {'class': 'ec-label'}}) }}
  494.                             </dt>
  495.                             <dd>
  496.                                 <div class=\"ec-radio{{ has_errors(form.recommend_level) ? ' error' }}\">
  497.                                     {{ form_widget(form.recommend_level) }}
  498.                                     {{ form_errors(form.recommend_level) }}
  499.                                 </div>
  500.                             </dd>
  501.                         </dl>
  502.                         {# タイトル #}
  503.                         <dl>
  504.                             <dt>
  505.                                 {{ form_label(form.title, '', {'label_attr': {'class': 'ec-label'}}) }}
  506.                             </dt>
  507.                             <dd>
  508.                                 <div class=\"ec-input{{ has_errors(form.title) ? ' error' }}\">
  509.                                     {{ form_widget(form.title) }}
  510.                                     {{ form_errors(form.title) }}
  511.                                 </div>
  512.                             </dd>
  513.                         </dl>
  514.                         {# コメント #}
  515.                         <dl>
  516.                             <dt>
  517.                                 {{ form_label(form.comment, '', {'label_attr': {'class': 'ec-label'}}) }}
  518.                             </dt>
  519.                             <dd>
  520.                                 <div class=\"ec-input{{ has_errors(form.comment) ? ' error' }}\">
  521.                                     {{ form_widget(form.comment) }}
  522.                                     {{ form_errors(form.comment) }}
  523.                                 </div>
  524.                             </dd>
  525.                         </dl>
  526.                              
  527.                         <dl class=\"file-upload\">
  528.                           <dt><label class=\"ec-label\">画像</label></dt><!--サイズ制限5M-->
  529.                           <dd>
  530.                             {{ form_widget(form.product_file1_input, { 'attr': { 'id': 'edit_image1', 'id': 'img_upload', 'data-trigger': 'change' }}) }}
  531.                             {{ form_errors(form.product_file1_input) }}
  532.                             {{ form_widget(form.product_file1) }}
  533.                             {{ form_errors(form.product_file1) }}
  534.                             <img src=\"\" id=\"tl_img1\" class=\"img_preview\">
  535.                           </dd>
  536.                         </dl>
  537.                     </div>
  538.                     <div class=\"ec-registerRole__actions\">
  539.                         <div class=\"ec-off4Grid\">
  540.                             <div class=\"ec-off4Grid__cell\">
  541.                                 <button class=\"ec-blockBtn--action\" type=\"submit\" name=\"mode\"
  542.                                         value=\"confirm\">{{ 'product_review.front.review.confirm'|trans }}</button>
  543.                                 <a class=\"ec-blockBtn--cancel\"
  544.                                    href=\"{{ url('product_detail', { id: Product.id }) }}\">{{ 'product_review.front.review.back'|trans }}</a>
  545.                             </div>
  546.                         </div>
  547.                     </div>
  548.                 </form>
  549.             </div>
  550.         </div>
  551.      {% endif %}            
  552.     </div>
  553. {% endblock %}
  554. ""ProductReview4/Resource/template/default/index.twig""/home/univfukuoka3/web-srv.biz/public_html/kaiino/app/template/kaiino/ProductReview4/Resource/template/default/index.twig");
  555.     }
  556. }