<?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;
/* ProductReview4/Resource/template/default/index.twig */
class __TwigTemplate_0f5ec81bf72b5d15b5f3b220ced71b2f39dae2135382a5db4f85e294ca540667 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'],
'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", "ProductReview4/Resource/template/default/index.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ProductReview4/Resource/template/default/index.twig"));
// line 13
$context["body_class"] = "product_review";
// line 15
$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); })()), [0 => "Form/form_div_layout.twig"], true);
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "ProductReview4/Resource/template/default/index.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 17
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 18
echo " <style>
#product_review_recommend_level {
display: flex;
flex-direction: column;
flex-wrap: wrap;
}
#product_review_recommend_level label {
position: relative;
bottom: 18px;
left: 20px;
line-height: 0;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 33
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 34
echo " <div class=\"ec-registerRole\">
<div class=\"ec-pageHeader\">
<h1>";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.title"), "html", null, true);
echo "</h1>
</div>
<div class=\"review_about_wrap\">
<p class=\"ec-para-nomal\">";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.description"), "html", null, true);
echo "</p>
<p>同一商品へのレビュー投稿は1度のみとさせていただきます。<a href=\"";
// line 42
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_agreement");
echo "\">サービス利用規約</a>をご確認ください。</p>
";
// line 44
if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER") == false)) {
// line 45
echo " <p class=\"error\">レビュー投稿はログイン後にご利用いただけます。</p>
<div class=\"read_more\">
<a href=\"";
// line 47
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
echo "\" class=\"\">ログイン</a>
</div>
";
} else {
// line 51
echo " ";
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); })())) {
// line 52
echo " <p class=\"error\">すでにレビューを投稿済みです。</p>
<div class=\"read_more\">
<a href=\"";
// line 54
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", false, false, false, 54)]), "html", null, true);
echo "\" class=\"\">戻る</a>
</div>
";
}
// line 57
echo "
";
// line 58
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)) {
// line 59
echo " <p class=\"error\">レンタル履歴がありません。</p>
<div class=\"read_more\">
<a href=\"";
// line 61
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", false, false, false, 61)]), "html", null, true);
echo "\" class=\"\">戻る</a>
</div>
";
}
// line 64
echo " ";
}
// line 65
echo " </div>
";
// line 68
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); })()))) {
// line 69
echo " <div class=\"ec-off1Grid\">
<div class=\"ec-off1Grid__cell\">
<form method=\"post\" action=\"";
// line 71
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", false, false, false, 71)]), "html", null, true);
echo "\" enctype=\"multipart/form-data\">
";
// line 72
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", false, false, false, 72), 'widget');
echo "
<input type=\"hidden\" name=\"product_review[product_class_category1]\" value=\"";
// line 74
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", null, true);
echo "\">
<input type=\"hidden\" name=\"product_review[product_class_category2]\" value=\"";
// line 75
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", null, true);
echo "\">
<input type=\"hidden\" name=\"product_review[product_quantity]\" value=\"";
// line 76
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", null, true);
echo "\">
<div class=\"ec-borderedDefs\">
";
// line 80
echo " <dl>
<dt>
<label class=\"ec-label\">";
// line 82
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.product_name"), "html", null, true);
echo "</label>
</dt>
<dd>
<div class=\"ec-input\">
";
// line 86
echo twig_escape_filter($this->env, 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.', 86, $this->source); })()), "name", [], "any", false, false, false, 86), "html", null, true);
echo "
</div>
</dd>
</dl>
";
// line 91
echo " <dl>
<dt>
";
// line 93
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", false, false, false, 93), 'label', ["label_attr" => ["class" => "ec-label"]]);
echo "
</dt>
<dd>
<div class=\"ec-input";
// line 96
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", false, false, false, 96))) ? (" error") : (""));
echo "\">
";
// line 97
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", false, false, false, 97), 'widget');
echo "
";
// line 98
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", false, false, false, 98), 'errors');
echo "
</div>
</dd>
</dl>
";
// line 114
echo " ";
// line 126
echo " ";
// line 127
echo " <dl>
<dt>
";
// line 129
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", false, false, false, 129), 'label', ["label_attr" => ["class" => "ec-label"]]);
echo "
</dt>
<dd>
<div class=\"ec-radio";
// line 132
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", false, false, false, 132))) ? (" error") : (""));
echo "\">
";
// line 133
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", false, false, false, 133), 'widget');
echo "
";
// line 134
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", false, false, false, 134), 'errors');
echo "
</div>
</dd>
</dl>
";
// line 139
echo " <dl>
<dt>
";
// line 141
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", false, false, false, 141), 'label', ["label_attr" => ["class" => "ec-label"]]);
echo "
</dt>
<dd>
<div class=\"ec-input";
// line 144
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", false, false, false, 144))) ? (" error") : (""));
echo "\">
";
// line 145
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", false, false, false, 145), 'widget');
echo "
";
// line 146
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", false, false, false, 146), 'errors');
echo "
</div>
</dd>
</dl>
";
// line 151
echo " <dl>
<dt>
";
// line 153
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", false, false, false, 153), 'label', ["label_attr" => ["class" => "ec-label"]]);
echo "
</dt>
<dd>
<div class=\"ec-input";
// line 156
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", false, false, false, 156))) ? (" error") : (""));
echo "\">
";
// line 157
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", false, false, false, 157), 'widget');
echo "
";
// line 158
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", false, false, false, 158), 'errors');
echo "
</div>
</dd>
</dl>
<dl class=\"file-upload\">
<dt><label class=\"ec-label\">画像</label></dt><!--サイズ制限5M-->
<dd>
";
// line 167
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", false, false, false, 167), 'widget', ["attr" => ["id" => "edit_image1", "id" => "img_upload", "data-trigger" => "change"]]);
echo "
";
// line 168
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", false, false, false, 168), 'errors');
echo "
";
// line 170
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", false, false, false, 170), 'widget');
echo "
";
// line 171
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", false, false, false, 171), 'errors');
echo "
<img src=\"\" id=\"tl_img1\" class=\"img_preview\">
</dd>
</dl>
</div>
<div class=\"ec-registerRole__actions\">
<div class=\"ec-off4Grid\">
<div class=\"ec-off4Grid__cell\">
<button class=\"ec-blockBtn--action\" type=\"submit\" name=\"mode\"
value=\"confirm\">";
// line 181
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.confirm"), "html", null, true);
echo "</button>
<a class=\"ec-blockBtn--cancel\"
href=\"";
// line 183
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", false, false, false, 183)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product_review.front.review.back"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</form>
</div>
</div>
";
}
// line 190
echo "
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "ProductReview4/Resource/template/default/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
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_review' %}
{% form_theme form 'Form/form_div_layout.twig' %}
{% block stylesheet %}
<style>
#product_review_recommend_level {
display: flex;
flex-direction: column;
flex-wrap: wrap;
}
#product_review_recommend_level label {
position: relative;
bottom: 18px;
left: 20px;
line-height: 0;
}
</style>
{% endblock %}
{% block main %}
<div class=\"ec-registerRole\">
<div class=\"ec-pageHeader\">
<h1>{{ 'product_review.front.review.title'|trans }}</h1>
</div>
<div class=\"review_about_wrap\">
<p class=\"ec-para-nomal\">{{ 'product_review.front.review.description'|trans }}</p>
<p>同一商品へのレビュー投稿は1度のみとさせていただきます。<a href=\"{{ url('help_agreement') }}\">サービス利用規約</a>をご確認ください。</p>
{% if is_granted('ROLE_USER') == false %}
<p class=\"error\">レビュー投稿はログイン後にご利用いただけます。</p>
<div class=\"read_more\">
<a href=\"{{ url('mypage_login') }}\" class=\"\">ログイン</a>
</div>
{% else %}
{% if has_review %}
<p class=\"error\">すでにレビューを投稿済みです。</p>
<div class=\"read_more\">
<a href=\"{{ url('product_detail', { id: Product.id }) }}\" class=\"\">戻る</a>
</div>
{% endif %}
{% if has_order == false %}
<p class=\"error\">レンタル履歴がありません。</p>
<div class=\"read_more\">
<a href=\"{{ url('product_detail', { id: Product.id }) }}\" class=\"\">戻る</a>
</div>
{% endif %}
{% endif %}
</div>
{% if is_granted('ROLE_USER') and has_review==false and has_order %}
<div class=\"ec-off1Grid\">
<div class=\"ec-off1Grid__cell\">
<form method=\"post\" action=\"{{ url('product_review_index', { id: Product.id }) }}\" enctype=\"multipart/form-data\">
{{ form_widget(form._token) }}
<input type=\"hidden\" name=\"product_review[product_class_category1]\" value=\"{{ order_class_category_name1 }}\">
<input type=\"hidden\" name=\"product_review[product_class_category2]\" value=\"{{ order_class_category_name2 }}\">
<input type=\"hidden\" name=\"product_review[product_quantity]\" value=\"{{ order_quantity }}\">
<div class=\"ec-borderedDefs\">
{# 商品名 #}
<dl>
<dt>
<label class=\"ec-label\">{{ 'product_review.front.review.product_name'|trans }}</label>
</dt>
<dd>
<div class=\"ec-input\">
{{ Product.name }}
</div>
</dd>
</dl>
{# 投稿者名 #}
<dl>
<dt>
{{ form_label(form.reviewer_name, '', {'label_attr': {'class': 'ec-label'}}) }}
</dt>
<dd>
<div class=\"ec-input{{ has_errors(form.reviewer_name) ? ' error' }}\">
{{ form_widget(form.reviewer_name) }}
{{ form_errors(form.reviewer_name) }}
</div>
</dd>
</dl>
{# 投稿者URL
<dl>
<dt>
{{ form_label(form.reviewer_url, '', {'label_attr': {'class': 'ec-label'}}) }}
</dt>
<dd>
<div class=\"ec-input{{ has_errors(form.reviewer_url) ? ' error' }}\">
{{ form_widget(form.reviewer_url) }}
{{ form_errors(form.reviewer_url) }}
</div>
</dd>
</dl>#}
{# 性別
<dl>
<dt>
{{ form_label(form.sex, 'common.gender', {'label_attr': {'class': 'ec-label'}}) }}
</dt>
<dd>
<div class=\"ec-radio{{ has_errors(form.sex) ? ' error' }}\">
{{ form_widget(form.sex) }}
{{ form_errors(form.sex) }}
</div>
</dd>
</dl>#}
{# おすすめレベル #}
<dl>
<dt>
{{ form_label(form.recommend_level, '', {'label_attr': {'class': 'ec-label'}}) }}
</dt>
<dd>
<div class=\"ec-radio{{ has_errors(form.recommend_level) ? ' error' }}\">
{{ form_widget(form.recommend_level) }}
{{ form_errors(form.recommend_level) }}
</div>
</dd>
</dl>
{# タイトル #}
<dl>
<dt>
{{ form_label(form.title, '', {'label_attr': {'class': 'ec-label'}}) }}
</dt>
<dd>
<div class=\"ec-input{{ has_errors(form.title) ? ' error' }}\">
{{ form_widget(form.title) }}
{{ form_errors(form.title) }}
</div>
</dd>
</dl>
{# コメント #}
<dl>
<dt>
{{ form_label(form.comment, '', {'label_attr': {'class': 'ec-label'}}) }}
</dt>
<dd>
<div class=\"ec-input{{ has_errors(form.comment) ? ' error' }}\">
{{ form_widget(form.comment) }}
{{ form_errors(form.comment) }}
</div>
</dd>
</dl>
<dl class=\"file-upload\">
<dt><label class=\"ec-label\">画像</label></dt><!--サイズ制限5M-->
<dd>
{{ form_widget(form.product_file1_input, { 'attr': { 'id': 'edit_image1', 'id': 'img_upload', 'data-trigger': 'change' }}) }}
{{ form_errors(form.product_file1_input) }}
{{ form_widget(form.product_file1) }}
{{ form_errors(form.product_file1) }}
<img src=\"\" id=\"tl_img1\" class=\"img_preview\">
</dd>
</dl>
</div>
<div class=\"ec-registerRole__actions\">
<div class=\"ec-off4Grid\">
<div class=\"ec-off4Grid__cell\">
<button class=\"ec-blockBtn--action\" type=\"submit\" name=\"mode\"
value=\"confirm\">{{ 'product_review.front.review.confirm'|trans }}</button>
<a class=\"ec-blockBtn--cancel\"
href=\"{{ url('product_detail', { id: Product.id }) }}\">{{ 'product_review.front.review.back'|trans }}</a>
</div>
</div>
</div>
</form>
</div>
</div>
{% endif %}
</div>
{% endblock %}
", "ProductReview4/Resource/template/default/index.twig", "/home/univfukuoka3/web-srv.biz/public_html/kaiino/app/template/kaiino/ProductReview4/Resource/template/default/index.twig");
}
}