var/cache/dev/twig/b8/b8e56cd5198a5046316fe7d9457572422bb35b9323cd6ec2c355de3c7473c1e5.php line 53

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. /* @SeEnquete4/detail.twig */
  14. class __TwigTemplate_860285127cfc02e19a9a1e8bf13190bac89880738db3f45e571b57726159888e extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'stylesheet' => [$this'block_stylesheet'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 6
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SeEnquete4/detail.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SeEnquete4/detail.twig"));
  40.         // line 8
  41.         $context["body_class"] = "enquete_page";
  42.         // line 6
  43.         $this->parent $this->loadTemplate("default_frame.twig""@SeEnquete4/detail.twig"6);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 10
  51.     public function block_javascript($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  58.         // line 11
  59.         echo "    <script>
  60.         \$(function(){
  61.             // 選択肢が画像の場合は置換
  62.             var elem = 'form[name=enquete] .check-thumbnail label';
  63.             if ( \$(elem).length ) {
  64.                 var prefix = \"";
  65.         // line 16
  66.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("SeEnquete4/assets/img/""plugin"), "html"nulltrue);
  67.         echo "\";
  68.                 var uploaded_extention = '";
  69.         // line 17
  70.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'17$this->source); })()), "Se_Enquete_img_valid_extention", [], "array"falsefalsefalse17), "html"nulltrue);
  71.         echo "';
  72.                 uploaded_extention = uploaded_extention.split(',');
  73.                 \$(elem).each(function() {
  74.                     var nowElem = \$(this);
  75.                     filename = \$(nowElem).html();
  76.                     if ( typeof filename !== 'undefined' && filename != '' ) {
  77.                         var pos = filename.lastIndexOf('.');
  78.                         if (pos === -1) return true ;
  79.                         if ( \$.inArray( filename.slice(pos), uploaded_extention ) ) {
  80.                             // \$(nowElem).load(prefix + filename);  /* for svg */
  81.                             \$(nowElem).html('<span class=\"radio-thumbnail\"><img src=\"' + prefix + filename + '\" /></span>');
  82.                         }
  83.                     }
  84.                 })
  85.             }
  86.             // エラーがあればその場所までスクロール
  87.             if ( \$('.ec-required').length ) {
  88.                 // \$(\"html,body\").animate( {scrollTop: \$('.ec-required').offset().top - 60 } );
  89.                 \$(\"html,body\").animate( {scrollTop: \$('.ec-required').offset().top - 180 } );
  90.             }
  91.         })
  92.     </script>
  93. ";
  94.         
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  96.         
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  98.     }
  99.     // line 44
  100.     public function block_stylesheet($context, array $blocks = [])
  101.     {
  102.         $macros $this->macros;
  103.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  105.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  106.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  107.         // line 45
  108.         echo "    <style>
  109.         form[name=\"enquete\"] {
  110.             width: 80%;
  111.             margin: 0 auto;
  112.         }
  113.         #enquete-header {
  114.             margin-bottom: 20px;
  115.         }
  116.         .enquete-detail-img {
  117.             margin-left: auto;
  118.             margin-right: auto;
  119.             max-width: 600px;
  120.         }
  121.         .enquete-detail-img img {
  122.             max-width: 100%;
  123.         }
  124.         .enquete-title {
  125.             font-weight: bold;
  126.         }
  127.         .enquete-subtitle {
  128.             font-size: 18px;
  129.         }
  130.         .enquete-form-radio {
  131.             display: -webkit-box;
  132.             display: -ms-flexbox;
  133.             display: -webkit-flex;
  134.             display: flex;
  135.             align-items: baseline;
  136.             -webkit-flex-wrap: wrap;
  137.             -ms-flex-wrap: wrap;
  138.             flex-wrap: wrap;
  139.         }
  140.         .enquete-form-radio > div:not(:last-child) {
  141.             margin-right: 10px;
  142.         }
  143.         textarea.enquete-form-textarea {
  144.             height: calc( 1.3em * 5 );
  145.             line-height: 1.3em;
  146.         }
  147.         .radio-thumbnail img {
  148.             max-width: 150px;
  149.             max-height: 150px;
  150.         }
  151.         .enquete-submit-block {
  152.             margin-top: 40px;
  153.         }
  154.         .mw-2 { max-width: 200px; }
  155.         .mw-4 { max-width: 400px; }
  156.         .mw-6 { max-width: 600px; }
  157.         .mw-8 { max-width: 800px; }
  158.         .col-form-normal-text {
  159.             margin-bottom: 20px;
  160.         }
  161.         .col-form-personal-agree {
  162.             background-color: #fff;
  163.             width: 100%;
  164.             margin: 15px auto;
  165.             overflow: auto;
  166.             height: 300px;
  167.             border: 1px solid #d5d5d5;
  168.             border-radius: 5px;
  169.             padding: 10px;
  170.         }
  171.     </style>
  172. ";
  173.         
  174.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  175.         
  176.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  177.     }
  178.     // line 111
  179.     public function block_main($context, array $blocks = [])
  180.     {
  181.         $macros $this->macros;
  182.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  184.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  185.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  186.         // line 112
  187.         echo "    ";
  188.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'112$this->source); })()), 'form_start');
  189.         echo "
  190.         ";
  191.         // line 113
  192.         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.'113$this->source); })()), "_token", [], "any"falsefalsefalse113), 'widget');
  193.         echo "
  194.         <div class=\"c-contentsArea__cols\">
  195.             <div class=\"c-contentsArea__primaryCol\">
  196.                 <div class=\"c-primaryCol\">
  197.                     <div class=\"card rounded border-0 mb-4\">
  198.                         <div id=\"enquete-header\">
  199.                             <div class=\"row\">
  200.                                 <div class=\"col-8\">
  201.                                     ";
  202.         // line 122
  203.         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["Enquete"]) || array_key_exists("Enquete"$context) ? $context["Enquete"] : (function () { throw new RuntimeError('Variable "Enquete" does not exist.'122$this->source); })()), "thumbnail", [], "any"falsefalsefalse122))) {
  204.             // line 123
  205.             echo "                                    <p class=\"enquete-detail-img text-center\">
  206.                                         <img src=\"";
  207.             // line 124
  208.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("SeEnquete4/assets/img/" twig_get_attribute($this->env$this->source, (isset($context["Enquete"]) || array_key_exists("Enquete"$context) ? $context["Enquete"] : (function () { throw new RuntimeError('Variable "Enquete" does not exist.'124$this->source); })()), "thumbnail", [], "any"falsefalsefalse124)), "plugin"), "html"nulltrue);
  209.             echo "\">
  210.                                     </p>
  211.                                     ";
  212.         } else {
  213.             // line 127
  214.             echo "                                    <h3 class=\"enquete-title\">";
  215.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Enquete"]) || array_key_exists("Enquete"$context) ? $context["Enquete"] : (function () { throw new RuntimeError('Variable "Enquete" does not exist.'127$this->source); })()), "title", [], "any"falsefalsefalse127), "html"nulltrue);
  216.             echo "</h3>
  217.                                     ";
  218.         }
  219.         // line 129
  220.         echo "                                </div>
  221.                             </div>
  222.                             ";
  223.         // line 131
  224.         if ((twig_get_attribute($this->env$this->source, (isset($context["Enquete"]) || array_key_exists("Enquete"$context) ? $context["Enquete"] : (function () { throw new RuntimeError('Variable "Enquete" does not exist.'131$this->source); })()), "subTitle", [], "any"falsefalsefalse131) != "")) {
  225.             // line 132
  226.             echo "                            <div class=\"row\">
  227.                                 <div class=\"col\">
  228.                                     <p class=\"enquete-subtitle\">";
  229.             // line 134
  230.             echo twig_nl2br(twig_get_attribute($this->env$this->source, (isset($context["Enquete"]) || array_key_exists("Enquete"$context) ? $context["Enquete"] : (function () { throw new RuntimeError('Variable "Enquete" does not exist.'134$this->source); })()), "subTitle", [], "any"falsefalsefalse134));
  231.             echo "</p>
  232.                                     ";
  233.             // line 136
  234.             echo "                                    ";
  235.             // line 139
  236.             echo "                                </div>
  237.                             </div>
  238.                             ";
  239.         }
  240.         // line 142
  241.         echo "                        </div>
  242.                         <div class=\"collapse show ec-cardCollapse\" id=\"ordererInfo\">
  243.                             <div class=\"card-body\">
  244.                                 ";
  245.         // line 146
  246.         $context['_parent'] = $context;
  247.         $context['_seq'] = twig_ensure_traversable((isset($context["keyList"]) || array_key_exists("keyList"$context) ? $context["keyList"] : (function () { throw new RuntimeError('Variable "keyList" does not exist.'146$this->source); })()));
  248.         foreach ($context['_seq'] as $context["i"] => $context["val"]) {
  249.             // line 147
  250.             echo "                                <div class=\"row mb-2\">
  251.                                     <div class=\"col\">
  252.                                         ";
  253.             // line 149
  254.             if (twig_get_attribute($this->env$this->source$context["val"], "key", [], "any"truetruefalse149)) {
  255.                 // line 150
  256.                 echo "                                            ";
  257.                 if ((((isset($context["personaliCheckKey"]) || array_key_exists("personaliCheckKey"$context) ? $context["personaliCheckKey"] : (function () { throw new RuntimeError('Variable "personaliCheckKey" does not exist.'150$this->source); })()) != "") && (twig_get_attribute($this->env$this->source$context["val"], "key", [], "any"falsefalsefalse150) == (isset($context["personaliCheckKey"]) || array_key_exists("personaliCheckKey"$context) ? $context["personaliCheckKey"] : (function () { throw new RuntimeError('Variable "personaliCheckKey" does not exist.'150$this->source); })())))) {
  258.                     // line 151
  259.                     echo "                                            <fieldset class=\"form-group\">
  260.                                                 ";
  261.                     // line 152
  262.                     if ((twig_get_attribute($this->env$this->source, ($context["Enquete"] ?? null), "personalText", [], "any"truetruefalse152) && (twig_get_attribute($this->env$this->source, (isset($context["Enquete"]) || array_key_exists("Enquete"$context) ? $context["Enquete"] : (function () { throw new RuntimeError('Variable "Enquete" does not exist.'152$this->source); })()), "personalText", [], "any"falsefalsefalse152) != ""))) {
  263.                         // line 153
  264.                         echo "                                                <div class=\"col-form-personal-agree\">
  265.                                                     ";
  266.                         // line 154
  267.                         echo twig_nl2br(twig_get_attribute($this->env$this->source, (isset($context["Enquete"]) || array_key_exists("Enquete"$context) ? $context["Enquete"] : (function () { throw new RuntimeError('Variable "Enquete" does not exist.'154$this->source); })()), "personalText", [], "any"falsefalsefalse154));
  268.                         echo "
  269.                                                 </div>
  270.                                                 ";
  271.                     }
  272.                     // line 157
  273.                     echo "                                                <div class=\"col\">
  274.                                                     ";
  275.                     // line 158
  276.                     if ($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.'158$this->source); })()), twig_get_attribute($this->env$this->source$context["val"], "key", [], "any"falsefalsefalse158), [], "array"falsefalsefalse158))) {
  277.                         echo "<p class=\" ec-required\">";
  278.                         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); })()), twig_get_attribute($this->env$this->source$context["val"], "key", [], "any"falsefalsefalse158), [], "array"falsefalsefalse158), 'errors');
  279.                         echo "</p>";
  280.                     }
  281.                     // line 159
  282.                     echo "                                                    ";
  283.                     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.'159$this->source); })()), twig_get_attribute($this->env$this->source$context["val"], "key", [], "any"falsefalsefalse159), [], "array"falsefalsefalse159), 'widget');
  284.                     echo "
  285.                                                 </div>
  286.                                             </fieldset>
  287.                                             ";
  288.                 } else {
  289.                     // line 163
  290.                     echo "                                            <fieldset class=\"form-group\">
  291.                                                 <legend class=\"col-form-label required\">
  292.                                                     ";
  293.                     // line 165
  294.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["val"], "label", [], "any"falsefalsefalse165), "html"nulltrue);
  295.                     echo "
  296.                                                     ";
  297.                     // line 166
  298.                     if (twig_get_attribute($this->env$this->source$context["val"], "required", [], "any"falsefalsefalse166)) {
  299.                         echo "<span class=\"badge badge-primary ml-1\">";
  300.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.required"), "html"nulltrue);
  301.                         echo "</span>";
  302.                     }
  303.                     // line 167
  304.                     echo "                                                </legend>
  305.                                                 <div class=\"col\">
  306.                                                     ";
  307.                     // line 169
  308.                     if ($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.'169$this->source); })()), twig_get_attribute($this->env$this->source$context["val"], "key", [], "any"falsefalsefalse169), [], "array"falsefalsefalse169))) {
  309.                         echo "<p class=\" ec-required\">";
  310.                         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.'169$this->source); })()), twig_get_attribute($this->env$this->source$context["val"], "key", [], "any"falsefalsefalse169), [], "array"falsefalsefalse169), 'errors');
  311.                         echo "</p>";
  312.                     }
  313.                     // line 170
  314.                     echo "                                                    ";
  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.'170$this->source); })()), twig_get_attribute($this->env$this->source$context["val"], "key", [], "any"falsefalsefalse170), [], "array"falsefalsefalse170), 'widget');
  316.                     echo "
  317.                                                 </div>
  318.                                             </fieldset>
  319.                                             ";
  320.                 }
  321.                 // line 174
  322.                 echo "                                        ";
  323.             }
  324.             // line 175
  325.             echo "                                        ";
  326.             if (twig_get_attribute($this->env$this->source$context["val"], "text", [], "any"truetruefalse175)) {
  327.                 // line 176
  328.                 echo "                                            <label class=\"col-form-normal-text\">";
  329.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["val"], "text", [], "any"falsefalsefalse176), "html"nulltrue);
  330.                 echo "</label>
  331.                                         ";
  332.             }
  333.             // line 178
  334.             echo "                                    </div>
  335.                                 </div>
  336.                                 ";
  337.         }
  338.         $_parent $context['_parent'];
  339.         unset($context['_seq'], $context['_iterated'], $context['i'], $context['val'], $context['_parent'], $context['loop']);
  340.         $context array_intersect_key($context$_parent) + $_parent;
  341.         // line 181
  342.         echo "                            </div>
  343.                         </div>
  344.                     </div>
  345.                 </div>
  346.             </div>
  347.         </div>
  348.         <div class=\"ec-RegisterRole__actions enquete-submit-block\">
  349.             <div class=\"ec-off4Grid\">
  350.                 <div class=\"ec-off4Grid__cell\">
  351.                     <button type=\"submit\" class=\"ec-blockBtn--cancel\">";
  352.         // line 191
  353.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Enquete"]) || array_key_exists("Enquete"$context) ? $context["Enquete"] : (function () { throw new RuntimeError('Variable "Enquete" does not exist.'191$this->source); })()), "submitTitle", [], "any"falsefalsefalse191), "html"nulltrue);
  354.         echo "</button>
  355.                 </div>
  356.             </div>
  357.         </div>
  358.     ";
  359.         // line 195
  360.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'195$this->source); })()), 'form_end');
  361.         echo "
  362. ";
  363.         
  364.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  365.         
  366.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  367.     }
  368.     public function getTemplateName()
  369.     {
  370.         return "@SeEnquete4/detail.twig";
  371.     }
  372.     public function isTraitable()
  373.     {
  374.         return false;
  375.     }
  376.     public function getDebugInfo()
  377.     {
  378.         return array (  390 => 195,  383 => 191,  371 => 181,  363 => 178,  357 => 176,  354 => 175,  351 => 174,  343 => 170,  337 => 169,  333 => 167,  327 => 166,  323 => 165,  319 => 163,  311 => 159,  305 => 158,  302 => 157,  296 => 154,  293 => 153,  291 => 152,  288 => 151,  285 => 150,  283 => 149,  279 => 147,  275 => 146,  269 => 142,  264 => 139,  262 => 136,  258 => 134,  254 => 132,  252 => 131,  248 => 129,  242 => 127,  236 => 124,  233 => 123,  231 => 122,  219 => 113,  214 => 112,  204 => 111,  130 => 45,  120 => 44,  84 => 17,  80 => 16,  73 => 11,  63 => 10,  52 => 6,  50 => 8,  37 => 6,);
  379.     }
  380.     public function getSourceContext()
  381.     {
  382.         return new Source("{#
  383.  Copyright(c) 2020 Shadow Enterprise, Inc. All rights reserved.
  384.  http://www.shadow-ep.co.jp/
  385. #}
  386. {% extends 'default_frame.twig' %}
  387. {% set body_class = 'enquete_page' %}
  388. {% block javascript %}
  389.     <script>
  390.         \$(function(){
  391.             // 選択肢が画像の場合は置換
  392.             var elem = 'form[name=enquete] .check-thumbnail label';
  393.             if ( \$(elem).length ) {
  394.                 var prefix = \"{{ asset('SeEnquete4/assets/img/', 'plugin') }}\";
  395.                 var uploaded_extention = '{{ eccube_config['Se_Enquete_img_valid_extention'] }}';
  396.                 uploaded_extention = uploaded_extention.split(',');
  397.                 \$(elem).each(function() {
  398.                     var nowElem = \$(this);
  399.                     filename = \$(nowElem).html();
  400.                     if ( typeof filename !== 'undefined' && filename != '' ) {
  401.                         var pos = filename.lastIndexOf('.');
  402.                         if (pos === -1) return true ;
  403.                         if ( \$.inArray( filename.slice(pos), uploaded_extention ) ) {
  404.                             // \$(nowElem).load(prefix + filename);  /* for svg */
  405.                             \$(nowElem).html('<span class=\"radio-thumbnail\"><img src=\"' + prefix + filename + '\" /></span>');
  406.                         }
  407.                     }
  408.                 })
  409.             }
  410.             // エラーがあればその場所までスクロール
  411.             if ( \$('.ec-required').length ) {
  412.                 // \$(\"html,body\").animate( {scrollTop: \$('.ec-required').offset().top - 60 } );
  413.                 \$(\"html,body\").animate( {scrollTop: \$('.ec-required').offset().top - 180 } );
  414.             }
  415.         })
  416.     </script>
  417. {% endblock %}
  418. {% block stylesheet %}
  419.     <style>
  420.         form[name=\"enquete\"] {
  421.             width: 80%;
  422.             margin: 0 auto;
  423.         }
  424.         #enquete-header {
  425.             margin-bottom: 20px;
  426.         }
  427.         .enquete-detail-img {
  428.             margin-left: auto;
  429.             margin-right: auto;
  430.             max-width: 600px;
  431.         }
  432.         .enquete-detail-img img {
  433.             max-width: 100%;
  434.         }
  435.         .enquete-title {
  436.             font-weight: bold;
  437.         }
  438.         .enquete-subtitle {
  439.             font-size: 18px;
  440.         }
  441.         .enquete-form-radio {
  442.             display: -webkit-box;
  443.             display: -ms-flexbox;
  444.             display: -webkit-flex;
  445.             display: flex;
  446.             align-items: baseline;
  447.             -webkit-flex-wrap: wrap;
  448.             -ms-flex-wrap: wrap;
  449.             flex-wrap: wrap;
  450.         }
  451.         .enquete-form-radio > div:not(:last-child) {
  452.             margin-right: 10px;
  453.         }
  454.         textarea.enquete-form-textarea {
  455.             height: calc( 1.3em * 5 );
  456.             line-height: 1.3em;
  457.         }
  458.         .radio-thumbnail img {
  459.             max-width: 150px;
  460.             max-height: 150px;
  461.         }
  462.         .enquete-submit-block {
  463.             margin-top: 40px;
  464.         }
  465.         .mw-2 { max-width: 200px; }
  466.         .mw-4 { max-width: 400px; }
  467.         .mw-6 { max-width: 600px; }
  468.         .mw-8 { max-width: 800px; }
  469.         .col-form-normal-text {
  470.             margin-bottom: 20px;
  471.         }
  472.         .col-form-personal-agree {
  473.             background-color: #fff;
  474.             width: 100%;
  475.             margin: 15px auto;
  476.             overflow: auto;
  477.             height: 300px;
  478.             border: 1px solid #d5d5d5;
  479.             border-radius: 5px;
  480.             padding: 10px;
  481.         }
  482.     </style>
  483. {% endblock%}
  484. {% block main %}
  485.     {{ form_start(form) }}
  486.         {{ form_widget(form._token) }}
  487.         <div class=\"c-contentsArea__cols\">
  488.             <div class=\"c-contentsArea__primaryCol\">
  489.                 <div class=\"c-primaryCol\">
  490.                     <div class=\"card rounded border-0 mb-4\">
  491.                         <div id=\"enquete-header\">
  492.                             <div class=\"row\">
  493.                                 <div class=\"col-8\">
  494.                                     {% if Enquete.thumbnail is not null %}
  495.                                     <p class=\"enquete-detail-img text-center\">
  496.                                         <img src=\"{{ asset( 'SeEnquete4/assets/img/' ~ Enquete.thumbnail, 'plugin') }}\">
  497.                                     </p>
  498.                                     {% else %}
  499.                                     <h3 class=\"enquete-title\">{{ Enquete.title }}</h3>
  500.                                     {% endif %}
  501.                                 </div>
  502.                             </div>
  503.                             {% if Enquete.subTitle != '' %}
  504.                             <div class=\"row\">
  505.                                 <div class=\"col\">
  506.                                     <p class=\"enquete-subtitle\">{{ Enquete.subTitle|raw|nl2br }}</p>
  507.                                     {# メールアドレスをお忘れの方、退会アンケートで使用するため、公開日時をコメントアウト #}
  508.                                     {# <div class=\"text-right\">
  509.                                         {{ 'se_enquete.common.message.day_term'|trans }}{{ Enquete.startDate|date(\"Y/m/d\", \"Asia/Tokyo\") }} 〜 {% if Enquete.endDate is not null %}{{ Enquete.endDate|date(\"Y/m/d\", \"Asia/Tokyo\") }}{% endif %}
  510.                                     </div> #}
  511.                                 </div>
  512.                             </div>
  513.                             {% endif %}
  514.                         </div>
  515.                         <div class=\"collapse show ec-cardCollapse\" id=\"ordererInfo\">
  516.                             <div class=\"card-body\">
  517.                                 {% for i, val in keyList %}
  518.                                 <div class=\"row mb-2\">
  519.                                     <div class=\"col\">
  520.                                         {% if val.key is defined %}
  521.                                             {% if personaliCheckKey != '' and val.key == personaliCheckKey %}
  522.                                             <fieldset class=\"form-group\">
  523.                                                 {% if Enquete.personalText is defined and Enquete.personalText != '' %}
  524.                                                 <div class=\"col-form-personal-agree\">
  525.                                                     {{ Enquete.personalText|raw|nl2br }}
  526.                                                 </div>
  527.                                                 {% endif %}
  528.                                                 <div class=\"col\">
  529.                                                     {% if has_errors(form[val.key]) %}<p class=\" ec-required\">{{ form_errors(form[val.key]) }}</p>{% endif %}
  530.                                                     {{ form_widget(form[val.key]) }}
  531.                                                 </div>
  532.                                             </fieldset>
  533.                                             {% else %}
  534.                                             <fieldset class=\"form-group\">
  535.                                                 <legend class=\"col-form-label required\">
  536.                                                     {{ val.label }}
  537.                                                     {% if val.required %}<span class=\"badge badge-primary ml-1\">{{ 'common.required'|trans }}</span>{% endif %}
  538.                                                 </legend>
  539.                                                 <div class=\"col\">
  540.                                                     {% if has_errors(form[val.key]) %}<p class=\" ec-required\">{{ form_errors(form[val.key]) }}</p>{% endif %}
  541.                                                     {{ form_widget(form[val.key]) }}
  542.                                                 </div>
  543.                                             </fieldset>
  544.                                             {% endif %}
  545.                                         {% endif %}
  546.                                         {% if val.text is defined %}
  547.                                             <label class=\"col-form-normal-text\">{{ val.text }}</label>
  548.                                         {% endif %}
  549.                                     </div>
  550.                                 </div>
  551.                                 {% endfor %}
  552.                             </div>
  553.                         </div>
  554.                     </div>
  555.                 </div>
  556.             </div>
  557.         </div>
  558.         <div class=\"ec-RegisterRole__actions enquete-submit-block\">
  559.             <div class=\"ec-off4Grid\">
  560.                 <div class=\"ec-off4Grid__cell\">
  561.                     <button type=\"submit\" class=\"ec-blockBtn--cancel\">{{ Enquete.submitTitle }}</button>
  562.                 </div>
  563.             </div>
  564.         </div>
  565.     {{ form_end(form) }}
  566. {% endblock %}
  567. ""@SeEnquete4/detail.twig""/home/mahjontv1326/kmj-tv.jp/public_html/dev.kmj-tv.jp/app/Plugin/SeEnquete4/Resource/template/detail.twig");
  568.     }
  569. }