var/cache/dev/twig/27/27b9393dff512863e3bf672c27aec63a.php line 56

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. /* ProductReview42/Resource/template/default/index.twig */
  14. class __TwigTemplate_575a711fa27469482dc60248597cd390 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 11
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProductReview42/Resource/template/default/index.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""ProductReview42/Resource/template/default/index.twig"));
  41.         // line 13
  42.         $context["body_class"] = "product_review";
  43.         // line 15
  44.         $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);
  45.         // line 11
  46.         $this->parent $this->loadTemplate("default_frame.twig""ProductReview42/Resource/template/default/index.twig"11);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 17
  54.     public function block_stylesheet($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  61.         // line 18
  62.         echo "    <style>
  63.         #product_review_recommend_level {
  64.             display: flex;
  65.             flex-direction: column;
  66.             flex-wrap: wrap;
  67.         }
  68.         #product_review_recommend_level label {
  69.             position: relative;
  70.             bottom: 18px;
  71.             left: 20px;
  72.             line-height: 0;
  73.         }
  74.     </style>
  75. ";
  76.         
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78.         
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  80.     }
  81.     // line 33
  82.     public function block_main($context, array $blocks = [])
  83.     {
  84.         $macros $this->macros;
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  89.         // line 34
  90.         echo "    <div class=\"ec-registerRole\">
  91.         <div class=\"ec-pageHeader\">
  92.             <h1>";
  93.         // line 36
  94.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.title"), "html"nulltrue);
  95.         echo "</h1>
  96.         </div>
  97.         <div class=\"ec-off1Grid\">
  98.             <div class=\"ec-off1Grid__cell\">
  99.                 <form method=\"post\" action=\"";
  100.         // line 40
  101.         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.'40$this->source); })()), "id", [], "any"falsefalsetrue40)]), "html"nulltrue);
  102.         echo "\">
  103.                     ";
  104.         // line 41
  105.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'41$this->source); })()), "_token", [], "any"falsefalsetrue41), 41$this->source), 'widget');
  106.         echo "
  107.                     <p class=\"ec-para-nomal\">";
  108.         // line 42
  109.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.description"), "html"nulltrue);
  110.         echo "</p>
  111.                     <div class=\"ec-borderedDefs\">
  112.                         ";
  113.         // line 45
  114.         echo "                        <dl>
  115.                             <dt>
  116.                                 <label class=\"ec-label\">";
  117.         // line 47
  118.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.product_name"), "html"nulltrue);
  119.         echo "</label>
  120.                             </dt>
  121.                             <dd>
  122.                                 <div class=\"ec-input\">
  123.                                     ";
  124.         // line 51
  125.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(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.'51$this->source); })()), "name", [], "any"falsefalsetrue51), 51$this->source), "html"nulltrue);
  126.         echo "
  127.                                 </div>
  128.                             </dd>
  129.                         </dl>
  130.                         ";
  131.         // line 56
  132.         echo "                        <dl>
  133.                             <dt>
  134.                                 ";
  135.         // line 58
  136.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'58$this->source); })()), "reviewer_name", [], "any"falsefalsetrue58), 58$this->source), 'label', ["label_attr" => ["class" => "ec-label"]]);
  137.         echo "
  138.                             </dt>
  139.                             <dd>
  140.                                 <div class=\"ec-input";
  141.         // line 61
  142.         echo (($this->extensions['Customize\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.'61$this->source); })()), "reviewer_name", [], "any"falsefalsetrue61), 61$this->source))) ? (" error") : (""));
  143.         echo "\">
  144.                                     ";
  145.         // line 62
  146.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'62$this->source); })()), "reviewer_name", [], "any"falsefalsetrue62), 62$this->source), 'widget');
  147.         echo "
  148.                                     ";
  149.         // line 63
  150.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'63$this->source); })()), "reviewer_name", [], "any"falsefalsetrue63), 63$this->source), 'errors');
  151.         echo "
  152.                                 </div>
  153.                             </dd>
  154.                         </dl>
  155.                         ";
  156.         // line 68
  157.         echo "                        <dl>
  158.                             <dt>
  159.                                 ";
  160.         // line 70
  161.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'70$this->source); })()), "reviewer_url", [], "any"falsefalsetrue70), 70$this->source), 'label', ["label_attr" => ["class" => "ec-label"]]);
  162.         echo "
  163.                             </dt>
  164.                             <dd>
  165.                                 <div class=\"ec-input";
  166.         // line 73
  167.         echo (($this->extensions['Customize\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.'73$this->source); })()), "reviewer_url", [], "any"falsefalsetrue73), 73$this->source))) ? (" error") : (""));
  168.         echo "\">
  169.                                     ";
  170.         // line 74
  171.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'74$this->source); })()), "reviewer_url", [], "any"falsefalsetrue74), 74$this->source), 'widget');
  172.         echo "
  173.                                     ";
  174.         // line 75
  175.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'75$this->source); })()), "reviewer_url", [], "any"falsefalsetrue75), 75$this->source), 'errors');
  176.         echo "
  177.                                 </div>
  178.                             </dd>
  179.                         </dl>
  180.                         ";
  181.         // line 80
  182.         echo "                        <dl>
  183.                             <dt>
  184.                                 ";
  185.         // line 82
  186.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'82$this->source); })()), "sex", [], "any"falsefalsetrue82), 82$this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "common.gender"]);
  187.         echo "
  188.                             </dt>
  189.                             <dd>
  190.                                 <div class=\"ec-radio";
  191.         // line 85
  192.         echo (($this->extensions['Customize\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.'85$this->source); })()), "sex", [], "any"falsefalsetrue85), 85$this->source))) ? (" error") : (""));
  193.         echo "\">
  194.                                     ";
  195.         // line 86
  196.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'86$this->source); })()), "sex", [], "any"falsefalsetrue86), 86$this->source), 'widget');
  197.         echo "
  198.                                     ";
  199.         // line 87
  200.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'87$this->source); })()), "sex", [], "any"falsefalsetrue87), 87$this->source), 'errors');
  201.         echo "
  202.                                 </div>
  203.                             </dd>
  204.                         </dl>
  205.                         ";
  206.         // line 92
  207.         echo "                        <dl>
  208.                             <dt>
  209.                                 ";
  210.         // line 94
  211.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'94$this->source); })()), "recommend_level", [], "any"falsefalsetrue94), 94$this->source), 'label', ["label_attr" => ["class" => "ec-label"]]);
  212.         echo "
  213.                             </dt>
  214.                             <dd>
  215.                                 <div class=\"ec-radio";
  216.         // line 97
  217.         echo (($this->extensions['Customize\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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); })()), "recommend_level", [], "any"falsefalsetrue97), 97$this->source))) ? (" error") : (""));
  218.         echo "\">
  219.                                     ";
  220.         // line 98
  221.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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); })()), "recommend_level", [], "any"falsefalsetrue98), 98$this->source), 'widget');
  222.         echo "
  223.                                     ";
  224.         // line 99
  225.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'99$this->source); })()), "recommend_level", [], "any"falsefalsetrue99), 99$this->source), 'errors');
  226.         echo "
  227.                                 </div>
  228.                             </dd>
  229.                         </dl>
  230.                         ";
  231.         // line 104
  232.         echo "                        <dl>
  233.                             <dt>
  234.                                 ";
  235.         // line 106
  236.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'106$this->source); })()), "title", [], "any"falsefalsetrue106), 106$this->source), 'label', ["label_attr" => ["class" => "ec-label"]]);
  237.         echo "
  238.                             </dt>
  239.                             <dd>
  240.                                 <div class=\"ec-input";
  241.         // line 109
  242.         echo (($this->extensions['Customize\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.'109$this->source); })()), "title", [], "any"falsefalsetrue109), 109$this->source))) ? (" error") : (""));
  243.         echo "\">
  244.                                     ";
  245.         // line 110
  246.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'110$this->source); })()), "title", [], "any"falsefalsetrue110), 110$this->source), 'widget');
  247.         echo "
  248.                                     ";
  249.         // line 111
  250.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'111$this->source); })()), "title", [], "any"falsefalsetrue111), 111$this->source), 'errors');
  251.         echo "
  252.                                 </div>
  253.                             </dd>
  254.                         </dl>
  255.                         ";
  256.         // line 116
  257.         echo "                        <dl>
  258.                             <dt>
  259.                                 ";
  260.         // line 118
  261.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'118$this->source); })()), "comment", [], "any"falsefalsetrue118), 118$this->source), 'label', ["label_attr" => ["class" => "ec-label"]]);
  262.         echo "
  263.                             </dt>
  264.                             <dd>
  265.                                 <div class=\"ec-input";
  266.         // line 121
  267.         echo (($this->extensions['Customize\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.'121$this->source); })()), "comment", [], "any"falsefalsetrue121), 121$this->source))) ? (" error") : (""));
  268.         echo "\">
  269.                                     ";
  270.         // line 122
  271.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'122$this->source); })()), "comment", [], "any"falsefalsetrue122), 122$this->source), 'widget');
  272.         echo "
  273.                                     ";
  274.         // line 123
  275.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'123$this->source); })()), "comment", [], "any"falsefalsetrue123), 123$this->source), 'errors');
  276.         echo "
  277.                                 </div>
  278.                             </dd>
  279.                         </dl>
  280.                     </div>
  281.                     <div class=\"ec-registerRole__actions\">
  282.                         <div class=\"ec-off4Grid\">
  283.                             <div class=\"ec-off4Grid__cell\">
  284.                                 <button class=\"ec-blockBtn--action\" type=\"submit\" name=\"mode\"
  285.                                         value=\"confirm\">";
  286.         // line 132
  287.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.confirm"), "html"nulltrue);
  288.         echo "</button>
  289.                                 <a class=\"ec-blockBtn--cancel\"
  290.                                    href=\"";
  291.         // line 134
  292.         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.'134$this->source); })()), "id", [], "any"falsefalsetrue134)]), "html"nulltrue);
  293.         echo "\">";
  294.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.back"), "html"nulltrue);
  295.         echo "</a>
  296.                             </div>
  297.                         </div>
  298.                     </div>
  299.                 </form>
  300.             </div>
  301.         </div>
  302.     </div>
  303. ";
  304.         
  305.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  306.         
  307.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  308.     }
  309.     public function getTemplateName()
  310.     {
  311.         return "ProductReview42/Resource/template/default/index.twig";
  312.     }
  313.     public function isTraitable()
  314.     {
  315.         return false;
  316.     }
  317.     public function getDebugInfo()
  318.     {
  319.         return array (  311 => 134,  306 => 132,  294 => 123,  290 => 122,  286 => 121,  280 => 118,  276 => 116,  269 => 111,  265 => 110,  261 => 109,  255 => 106,  251 => 104,  244 => 99,  240 => 98,  236 => 97,  230 => 94,  226 => 92,  219 => 87,  215 => 86,  211 => 85,  205 => 82,  201 => 80,  194 => 75,  190 => 74,  186 => 73,  180 => 70,  176 => 68,  169 => 63,  165 => 62,  161 => 61,  155 => 58,  151 => 56,  144 => 51,  137 => 47,  133 => 45,  128 => 42,  124 => 41,  120 => 40,  113 => 36,  109 => 34,  99 => 33,  76 => 18,  66 => 17,  55 => 11,  53 => 15,  51 => 13,  38 => 11,);
  320.     }
  321.     public function getSourceContext()
  322.     {
  323.         return new Source("{#
  324. This file is part of EC-CUBE
  325. Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
  326. http://www.lockon.co.jp/
  327. For the full copyright and license information, please view the LICENSE
  328. file that was distributed with this source code.
  329. #}
  330. {% extends 'default_frame.twig' %}
  331. {% set body_class = 'product_review' %}
  332. {% form_theme form 'Form/form_div_layout.twig' %}
  333. {% block stylesheet %}
  334.     <style>
  335.         #product_review_recommend_level {
  336.             display: flex;
  337.             flex-direction: column;
  338.             flex-wrap: wrap;
  339.         }
  340.         #product_review_recommend_level label {
  341.             position: relative;
  342.             bottom: 18px;
  343.             left: 20px;
  344.             line-height: 0;
  345.         }
  346.     </style>
  347. {% endblock %}
  348. {% block main %}
  349.     <div class=\"ec-registerRole\">
  350.         <div class=\"ec-pageHeader\">
  351.             <h1>{{ 'product_review.front.review.title'|trans }}</h1>
  352.         </div>
  353.         <div class=\"ec-off1Grid\">
  354.             <div class=\"ec-off1Grid__cell\">
  355.                 <form method=\"post\" action=\"{{ url('product_review_index', { id: Product.id }) }}\">
  356.                     {{ form_widget(form._token) }}
  357.                     <p class=\"ec-para-nomal\">{{ 'product_review.front.review.description'|trans }}</p>
  358.                     <div class=\"ec-borderedDefs\">
  359.                         {# 商品名 #}
  360.                         <dl>
  361.                             <dt>
  362.                                 <label class=\"ec-label\">{{ 'product_review.front.review.product_name'|trans }}</label>
  363.                             </dt>
  364.                             <dd>
  365.                                 <div class=\"ec-input\">
  366.                                     {{ Product.name }}
  367.                                 </div>
  368.                             </dd>
  369.                         </dl>
  370.                         {# 投稿者名 #}
  371.                         <dl>
  372.                             <dt>
  373.                                 {{ form_label(form.reviewer_name, '', {'label_attr': {'class': 'ec-label'}}) }}
  374.                             </dt>
  375.                             <dd>
  376.                                 <div class=\"ec-input{{ has_errors(form.reviewer_name) ? ' error' }}\">
  377.                                     {{ form_widget(form.reviewer_name) }}
  378.                                     {{ form_errors(form.reviewer_name) }}
  379.                                 </div>
  380.                             </dd>
  381.                         </dl>
  382.                         {# 投稿者URL #}
  383.                         <dl>
  384.                             <dt>
  385.                                 {{ form_label(form.reviewer_url, '', {'label_attr': {'class': 'ec-label'}}) }}
  386.                             </dt>
  387.                             <dd>
  388.                                 <div class=\"ec-input{{ has_errors(form.reviewer_url) ? ' error' }}\">
  389.                                     {{ form_widget(form.reviewer_url) }}
  390.                                     {{ form_errors(form.reviewer_url) }}
  391.                                 </div>
  392.                             </dd>
  393.                         </dl>
  394.                         {# 性別 #}
  395.                         <dl>
  396.                             <dt>
  397.                                 {{ form_label(form.sex, 'common.gender', {'label_attr': {'class': 'ec-label'}}) }}
  398.                             </dt>
  399.                             <dd>
  400.                                 <div class=\"ec-radio{{ has_errors(form.sex) ? ' error' }}\">
  401.                                     {{ form_widget(form.sex) }}
  402.                                     {{ form_errors(form.sex) }}
  403.                                 </div>
  404.                             </dd>
  405.                         </dl>
  406.                         {# おすすめレベル #}
  407.                         <dl>
  408.                             <dt>
  409.                                 {{ form_label(form.recommend_level, '', {'label_attr': {'class': 'ec-label'}}) }}
  410.                             </dt>
  411.                             <dd>
  412.                                 <div class=\"ec-radio{{ has_errors(form.recommend_level) ? ' error' }}\">
  413.                                     {{ form_widget(form.recommend_level) }}
  414.                                     {{ form_errors(form.recommend_level) }}
  415.                                 </div>
  416.                             </dd>
  417.                         </dl>
  418.                         {# タイトル #}
  419.                         <dl>
  420.                             <dt>
  421.                                 {{ form_label(form.title, '', {'label_attr': {'class': 'ec-label'}}) }}
  422.                             </dt>
  423.                             <dd>
  424.                                 <div class=\"ec-input{{ has_errors(form.title) ? ' error' }}\">
  425.                                     {{ form_widget(form.title) }}
  426.                                     {{ form_errors(form.title) }}
  427.                                 </div>
  428.                             </dd>
  429.                         </dl>
  430.                         {# コメント #}
  431.                         <dl>
  432.                             <dt>
  433.                                 {{ form_label(form.comment, '', {'label_attr': {'class': 'ec-label'}}) }}
  434.                             </dt>
  435.                             <dd>
  436.                                 <div class=\"ec-input{{ has_errors(form.comment) ? ' error' }}\">
  437.                                     {{ form_widget(form.comment) }}
  438.                                     {{ form_errors(form.comment) }}
  439.                                 </div>
  440.                             </dd>
  441.                         </dl>
  442.                     </div>
  443.                     <div class=\"ec-registerRole__actions\">
  444.                         <div class=\"ec-off4Grid\">
  445.                             <div class=\"ec-off4Grid__cell\">
  446.                                 <button class=\"ec-blockBtn--action\" type=\"submit\" name=\"mode\"
  447.                                         value=\"confirm\">{{ 'product_review.front.review.confirm'|trans }}</button>
  448.                                 <a class=\"ec-blockBtn--cancel\"
  449.                                    href=\"{{ url('product_detail', { id: Product.id }) }}\">{{ 'product_review.front.review.back'|trans }}</a>
  450.                             </div>
  451.                         </div>
  452.                     </div>
  453.                 </form>
  454.             </div>
  455.         </div>
  456.     </div>
  457. {% endblock %}
  458. ""ProductReview42/Resource/template/default/index.twig""/home/dober/testman.biz/public_html/yamaria-ec-demo/app/template/yamaria/ProductReview42/Resource/template/default/index.twig");
  459.     }
  460.     
  461.     public function checkSecurity()
  462.     {
  463.         static $tags = array("set" => 13"form_theme" => 15);
  464.         static $filters = array("escape" => 36"trans" => 36);
  465.         static $functions = array("url" => 40"form_widget" => 41"form_label" => 58"has_errors" => 61"form_errors" => 63);
  466.         try {
  467.             $this->sandbox->checkSecurity(
  468.                 ['set''form_theme'],
  469.                 ['escape''trans'],
  470.                 ['url''form_widget''form_label''has_errors''form_errors']
  471.             );
  472.         } catch (SecurityError $e) {
  473.             $e->setSourceContext($this->source);
  474.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  475.                 $e->setTemplateLine($tags[$e->getTagName()]);
  476.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  477.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  478.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  479.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  480.             }
  481.             throw $e;
  482.         }
  483.     }
  484. }