<?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;
/* @SeEnquete4/detail.twig */
class __TwigTemplate_860285127cfc02e19a9a1e8bf13190bac89880738db3f45e571b57726159888e extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 6
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", "@SeEnquete4/detail.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SeEnquete4/detail.twig"));
// line 8
$context["body_class"] = "enquete_page";
// line 6
$this->parent = $this->loadTemplate("default_frame.twig", "@SeEnquete4/detail.twig", 6);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 10
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 11
echo " <script>
\$(function(){
// 選択肢が画像の場合は置換
var elem = 'form[name=enquete] .check-thumbnail label';
if ( \$(elem).length ) {
var prefix = \"";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("SeEnquete4/assets/img/", "plugin"), "html", null, true);
echo "\";
var uploaded_extention = '";
// line 17
echo twig_escape_filter($this->env, twig_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", false, false, false, 17), "html", null, true);
echo "';
uploaded_extention = uploaded_extention.split(',');
\$(elem).each(function() {
var nowElem = \$(this);
filename = \$(nowElem).html();
if ( typeof filename !== 'undefined' && filename != '' ) {
var pos = filename.lastIndexOf('.');
if (pos === -1) return true ;
if ( \$.inArray( filename.slice(pos), uploaded_extention ) ) {
// \$(nowElem).load(prefix + filename); /* for svg */
\$(nowElem).html('<span class=\"radio-thumbnail\"><img src=\"' + prefix + filename + '\" /></span>');
}
}
})
}
// エラーがあればその場所までスクロール
if ( \$('.ec-required').length ) {
// \$(\"html,body\").animate( {scrollTop: \$('.ec-required').offset().top - 60 } );
\$(\"html,body\").animate( {scrollTop: \$('.ec-required').offset().top - 180 } );
}
})
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 44
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 45
echo " <style>
form[name=\"enquete\"] {
width: 80%;
margin: 0 auto;
}
#enquete-header {
margin-bottom: 20px;
}
.enquete-detail-img {
margin-left: auto;
margin-right: auto;
max-width: 600px;
}
.enquete-detail-img img {
max-width: 100%;
}
.enquete-title {
font-weight: bold;
}
.enquete-subtitle {
font-size: 18px;
}
.enquete-form-radio {
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
align-items: baseline;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.enquete-form-radio > div:not(:last-child) {
margin-right: 10px;
}
textarea.enquete-form-textarea {
height: calc( 1.3em * 5 );
line-height: 1.3em;
}
.radio-thumbnail img {
max-width: 150px;
max-height: 150px;
}
.enquete-submit-block {
margin-top: 40px;
}
.mw-2 { max-width: 200px; }
.mw-4 { max-width: 400px; }
.mw-6 { max-width: 600px; }
.mw-8 { max-width: 800px; }
.col-form-normal-text {
margin-bottom: 20px;
}
.col-form-personal-agree {
background-color: #fff;
width: 100%;
margin: 15px auto;
overflow: auto;
height: 300px;
border: 1px solid #d5d5d5;
border-radius: 5px;
padding: 10px;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 111
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 112
echo " ";
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');
echo "
";
// line 113
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", false, false, false, 113), 'widget');
echo "
<div class=\"c-contentsArea__cols\">
<div class=\"c-contentsArea__primaryCol\">
<div class=\"c-primaryCol\">
<div class=\"card rounded border-0 mb-4\">
<div id=\"enquete-header\">
<div class=\"row\">
<div class=\"col-8\">
";
// line 122
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", false, false, false, 122))) {
// line 123
echo " <p class=\"enquete-detail-img text-center\">
<img src=\"";
// line 124
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", false, false, false, 124)), "plugin"), "html", null, true);
echo "\">
</p>
";
} else {
// line 127
echo " <h3 class=\"enquete-title\">";
echo twig_escape_filter($this->env, 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.', 127, $this->source); })()), "title", [], "any", false, false, false, 127), "html", null, true);
echo "</h3>
";
}
// line 129
echo " </div>
</div>
";
// line 131
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", false, false, false, 131) != "")) {
// line 132
echo " <div class=\"row\">
<div class=\"col\">
<p class=\"enquete-subtitle\">";
// line 134
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", false, false, false, 134));
echo "</p>
";
// line 136
echo " ";
// line 139
echo " </div>
</div>
";
}
// line 142
echo " </div>
<div class=\"collapse show ec-cardCollapse\" id=\"ordererInfo\">
<div class=\"card-body\">
";
// line 146
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["i"] => $context["val"]) {
// line 147
echo " <div class=\"row mb-2\">
<div class=\"col\">
";
// line 149
if (twig_get_attribute($this->env, $this->source, $context["val"], "key", [], "any", true, true, false, 149)) {
// line 150
echo " ";
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", false, false, false, 150) == (isset($context["personaliCheckKey"]) || array_key_exists("personaliCheckKey", $context) ? $context["personaliCheckKey"] : (function () { throw new RuntimeError('Variable "personaliCheckKey" does not exist.', 150, $this->source); })())))) {
// line 151
echo " <fieldset class=\"form-group\">
";
// line 152
if ((twig_get_attribute($this->env, $this->source, ($context["Enquete"] ?? null), "personalText", [], "any", true, true, false, 152) && (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", false, false, false, 152) != ""))) {
// line 153
echo " <div class=\"col-form-personal-agree\">
";
// line 154
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", false, false, false, 154));
echo "
</div>
";
}
// line 157
echo " <div class=\"col\">
";
// line 158
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", false, false, false, 158), [], "array", false, false, false, 158))) {
echo "<p class=\" ec-required\">";
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", false, false, false, 158), [], "array", false, false, false, 158), 'errors');
echo "</p>";
}
// line 159
echo " ";
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", false, false, false, 159), [], "array", false, false, false, 159), 'widget');
echo "
</div>
</fieldset>
";
} else {
// line 163
echo " <fieldset class=\"form-group\">
<legend class=\"col-form-label required\">
";
// line 165
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["val"], "label", [], "any", false, false, false, 165), "html", null, true);
echo "
";
// line 166
if (twig_get_attribute($this->env, $this->source, $context["val"], "required", [], "any", false, false, false, 166)) {
echo "<span class=\"badge badge-primary ml-1\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("common.required"), "html", null, true);
echo "</span>";
}
// line 167
echo " </legend>
<div class=\"col\">
";
// line 169
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", false, false, false, 169), [], "array", false, false, false, 169))) {
echo "<p class=\" ec-required\">";
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", false, false, false, 169), [], "array", false, false, false, 169), 'errors');
echo "</p>";
}
// line 170
echo " ";
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", false, false, false, 170), [], "array", false, false, false, 170), 'widget');
echo "
</div>
</fieldset>
";
}
// line 174
echo " ";
}
// line 175
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["val"], "text", [], "any", true, true, false, 175)) {
// line 176
echo " <label class=\"col-form-normal-text\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["val"], "text", [], "any", false, false, false, 176), "html", null, true);
echo "</label>
";
}
// line 178
echo " </div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['i'], $context['val'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 181
echo " </div>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-RegisterRole__actions enquete-submit-block\">
<div class=\"ec-off4Grid\">
<div class=\"ec-off4Grid__cell\">
<button type=\"submit\" class=\"ec-blockBtn--cancel\">";
// line 191
echo twig_escape_filter($this->env, 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.', 191, $this->source); })()), "submitTitle", [], "any", false, false, false, 191), "html", null, true);
echo "</button>
</div>
</div>
</div>
";
// line 195
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');
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SeEnquete4/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
Copyright(c) 2020 Shadow Enterprise, Inc. All rights reserved.
http://www.shadow-ep.co.jp/
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'enquete_page' %}
{% block javascript %}
<script>
\$(function(){
// 選択肢が画像の場合は置換
var elem = 'form[name=enquete] .check-thumbnail label';
if ( \$(elem).length ) {
var prefix = \"{{ asset('SeEnquete4/assets/img/', 'plugin') }}\";
var uploaded_extention = '{{ eccube_config['Se_Enquete_img_valid_extention'] }}';
uploaded_extention = uploaded_extention.split(',');
\$(elem).each(function() {
var nowElem = \$(this);
filename = \$(nowElem).html();
if ( typeof filename !== 'undefined' && filename != '' ) {
var pos = filename.lastIndexOf('.');
if (pos === -1) return true ;
if ( \$.inArray( filename.slice(pos), uploaded_extention ) ) {
// \$(nowElem).load(prefix + filename); /* for svg */
\$(nowElem).html('<span class=\"radio-thumbnail\"><img src=\"' + prefix + filename + '\" /></span>');
}
}
})
}
// エラーがあればその場所までスクロール
if ( \$('.ec-required').length ) {
// \$(\"html,body\").animate( {scrollTop: \$('.ec-required').offset().top - 60 } );
\$(\"html,body\").animate( {scrollTop: \$('.ec-required').offset().top - 180 } );
}
})
</script>
{% endblock %}
{% block stylesheet %}
<style>
form[name=\"enquete\"] {
width: 80%;
margin: 0 auto;
}
#enquete-header {
margin-bottom: 20px;
}
.enquete-detail-img {
margin-left: auto;
margin-right: auto;
max-width: 600px;
}
.enquete-detail-img img {
max-width: 100%;
}
.enquete-title {
font-weight: bold;
}
.enquete-subtitle {
font-size: 18px;
}
.enquete-form-radio {
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
align-items: baseline;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.enquete-form-radio > div:not(:last-child) {
margin-right: 10px;
}
textarea.enquete-form-textarea {
height: calc( 1.3em * 5 );
line-height: 1.3em;
}
.radio-thumbnail img {
max-width: 150px;
max-height: 150px;
}
.enquete-submit-block {
margin-top: 40px;
}
.mw-2 { max-width: 200px; }
.mw-4 { max-width: 400px; }
.mw-6 { max-width: 600px; }
.mw-8 { max-width: 800px; }
.col-form-normal-text {
margin-bottom: 20px;
}
.col-form-personal-agree {
background-color: #fff;
width: 100%;
margin: 15px auto;
overflow: auto;
height: 300px;
border: 1px solid #d5d5d5;
border-radius: 5px;
padding: 10px;
}
</style>
{% endblock%}
{% block main %}
{{ form_start(form) }}
{{ form_widget(form._token) }}
<div class=\"c-contentsArea__cols\">
<div class=\"c-contentsArea__primaryCol\">
<div class=\"c-primaryCol\">
<div class=\"card rounded border-0 mb-4\">
<div id=\"enquete-header\">
<div class=\"row\">
<div class=\"col-8\">
{% if Enquete.thumbnail is not null %}
<p class=\"enquete-detail-img text-center\">
<img src=\"{{ asset( 'SeEnquete4/assets/img/' ~ Enquete.thumbnail, 'plugin') }}\">
</p>
{% else %}
<h3 class=\"enquete-title\">{{ Enquete.title }}</h3>
{% endif %}
</div>
</div>
{% if Enquete.subTitle != '' %}
<div class=\"row\">
<div class=\"col\">
<p class=\"enquete-subtitle\">{{ Enquete.subTitle|raw|nl2br }}</p>
{# メールアドレスをお忘れの方、退会アンケートで使用するため、公開日時をコメントアウト #}
{# <div class=\"text-right\">
{{ '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 %}
</div> #}
</div>
</div>
{% endif %}
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"ordererInfo\">
<div class=\"card-body\">
{% for i, val in keyList %}
<div class=\"row mb-2\">
<div class=\"col\">
{% if val.key is defined %}
{% if personaliCheckKey != '' and val.key == personaliCheckKey %}
<fieldset class=\"form-group\">
{% if Enquete.personalText is defined and Enquete.personalText != '' %}
<div class=\"col-form-personal-agree\">
{{ Enquete.personalText|raw|nl2br }}
</div>
{% endif %}
<div class=\"col\">
{% if has_errors(form[val.key]) %}<p class=\" ec-required\">{{ form_errors(form[val.key]) }}</p>{% endif %}
{{ form_widget(form[val.key]) }}
</div>
</fieldset>
{% else %}
<fieldset class=\"form-group\">
<legend class=\"col-form-label required\">
{{ val.label }}
{% if val.required %}<span class=\"badge badge-primary ml-1\">{{ 'common.required'|trans }}</span>{% endif %}
</legend>
<div class=\"col\">
{% if has_errors(form[val.key]) %}<p class=\" ec-required\">{{ form_errors(form[val.key]) }}</p>{% endif %}
{{ form_widget(form[val.key]) }}
</div>
</fieldset>
{% endif %}
{% endif %}
{% if val.text is defined %}
<label class=\"col-form-normal-text\">{{ val.text }}</label>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-RegisterRole__actions enquete-submit-block\">
<div class=\"ec-off4Grid\">
<div class=\"ec-off4Grid__cell\">
<button type=\"submit\" class=\"ec-blockBtn--cancel\">{{ Enquete.submitTitle }}</button>
</div>
</div>
</div>
{{ form_end(form) }}
{% endblock %}
", "@SeEnquete4/detail.twig", "/home/mahjontv1326/kmj-tv.jp/public_html/dev.kmj-tv.jp/app/Plugin/SeEnquete4/Resource/template/detail.twig");
}
}