<?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;
/* Contact/index.twig */
class __TwigTemplate_a76e9c50f62745c2f908d93ad03f3102 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'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Contact/index.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Contact/index.twig"));
// line 13
$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.', 13, $this->source); })()), [0 => "Form/form_div_layout.twig"], true);
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Contact/index.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 16
echo " <script src=\"//yubinbango.github.io/yubinbango/yubinbango.js\" charset=\"UTF-8\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 19
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 20
echo " ";
$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.', 20, $this->source); })()), [0 => "Form/form_custom_theme.twig"], true);
// line 21
echo "
<div class=\"ec-role narrow-contents\">
<div class=\"ec-pageHeader\">
<h1>";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お問い合わせ"), "html", null, true);
echo "</h1>
</div>
<div class=\"content-inner\">
<div class=\"content-contact\">
<form method=\"post\" action=\"";
// line 28
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
echo "\" class=\"h-adr\" novalidate>
<span class=\"p-country-name\" style=\"display:none;\">Japan</span>
";
// line 30
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.', 30, $this->source); })()), "_token", [], "any", false, false, true, 30), 30, $this->source), 'widget');
echo "
<div class=\"form-container\">
<dl class=\"required-field\">
<dt>";
// line 33
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("会社名または事業所名"), "html", null, true);
echo "</dt>
<dd>
<div class=\"form-unit__input\">";
// line 35
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.', 35, $this->source); })()), "company_name", [], "any", false, false, true, 35), 35, $this->source), 'widget');
echo "</div>
<span class=\"";
// line 36
echo (($this->extensions['Eccube\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.', 36, $this->source); })()), "company_name", [], "any", false, false, true, 36), 36, $this->source))) ? (" error") : (""));
echo "\">";
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.', 36, $this->source); })()), "company_name", [], "any", false, false, true, 36), 36, $this->source), 'errors');
echo "</span>
</dd>
</dl>
<dl class=\"required-field\">
<dt>";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご担当者様"), "html", null, true);
echo "</dt>
<dd class=\"separate-form\">
<div class=\"half-field\">
<div class=\"form-unit__input\">
";
// line 44
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 44, $this->source); })()), "name", [], "any", false, false, true, 44), "name01", [], "any", false, false, true, 44), 44, $this->source), 'widget', ["attr" => ["placeholder" => ""]]);
echo "
<label for=\"";
// line 45
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 45, $this->source); })()), "name", [], "any", false, false, true, 45), "name01", [], "any", false, false, true, 45), "vars", [], "any", false, false, true, 45), "id", [], "any", false, false, true, 45), 45, $this->source), "html", null, true);
echo "\" class=\"placeholder\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("姓"), "html", null, true);
echo "</label>
</div>
<span class=\"";
// line 47
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 47, $this->source); })()), "name", [], "any", false, false, true, 47), "name01", [], "any", false, false, true, 47), 47, $this->source))) ? (" error") : (""));
echo "\">";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 47, $this->source); })()), "name", [], "any", false, false, true, 47), "name01", [], "any", false, false, true, 47), 47, $this->source), 'errors');
echo "</span>
</div>
<div class=\"half-field\">
<div class=\"form-unit__input half-field\">
";
// line 51
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 51, $this->source); })()), "name", [], "any", false, false, true, 51), "name02", [], "any", false, false, true, 51), 51, $this->source), 'widget', ["attr" => ["placeholder" => ""]]);
echo "
<label for=\"";
// line 52
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 52, $this->source); })()), "name", [], "any", false, false, true, 52), "name02", [], "any", false, false, true, 52), "vars", [], "any", false, false, true, 52), "id", [], "any", false, false, true, 52), 52, $this->source), "html", null, true);
echo "\" class=\"placeholder\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("名"), "html", null, true);
echo "</label>
</div>
<span class=\"";
// line 54
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 54, $this->source); })()), "name", [], "any", false, false, true, 54), "name02", [], "any", false, false, true, 54), 54, $this->source))) ? (" error") : (""));
echo "\">";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 54, $this->source); })()), "name", [], "any", false, false, true, 54), "name02", [], "any", false, false, true, 54), 54, $this->source), 'errors');
echo "</span>
</div>
</dd>
</dl>
<dl>
<dt>";
// line 59
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご担当者様(カナ)"), "html", null, true);
echo "</dt>
<dd class=\"separate-form\">
<div class=\"half-field\">
<div class=\"form-unit__input\">
";
// line 63
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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); })()), "kana", [], "any", false, false, true, 63), "kana01", [], "any", false, false, true, 63), 63, $this->source), 'widget', ["attr" => ["placeholder" => ""]]);
echo "
<label for=\"";
// line 64
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 64, $this->source); })()), "kana", [], "any", false, false, true, 64), "kana01", [], "any", false, false, true, 64), "vars", [], "any", false, false, true, 64), "id", [], "any", false, false, true, 64), 64, $this->source), "html", null, true);
echo "\" class=\"placeholder\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("セイ"), "html", null, true);
echo "</label>
</div>
<span class=\"";
// line 66
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 66, $this->source); })()), "kana", [], "any", false, false, true, 66), "kana01", [], "any", false, false, true, 66), 66, $this->source))) ? (" error") : (""));
echo "\">";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 66, $this->source); })()), "kana", [], "any", false, false, true, 66), "kana01", [], "any", false, false, true, 66), 66, $this->source), 'errors');
echo "</span>
</div>
<div class=\"half-field\">
<div class=\"form-unit__input\">
";
// line 70
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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); })()), "kana", [], "any", false, false, true, 70), "kana02", [], "any", false, false, true, 70), 70, $this->source), 'widget', ["attr" => ["placeholder" => ""]]);
echo "
<label for=\"";
// line 71
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 71, $this->source); })()), "kana", [], "any", false, false, true, 71), "kana02", [], "any", false, false, true, 71), "vars", [], "any", false, false, true, 71), "id", [], "any", false, false, true, 71), 71, $this->source), "html", null, true);
echo "\" class=\"placeholder\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メイ"), "html", null, true);
echo "</label>
</div>
<span class=\"";
// line 73
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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); })()), "kana", [], "any", false, false, true, 73), "kana02", [], "any", false, false, true, 73), 73, $this->source))) ? (" error") : (""));
echo "\">";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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); })()), "kana", [], "any", false, false, true, 73), "kana02", [], "any", false, false, true, 73), 73, $this->source), 'errors');
echo "</span>
</div>
</dd>
</dl>
<dl>
<dt>";
// line 78
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("電話番号"), "html", null, true);
echo "</dt>
<dd>
<div class=\"separate-form\">
<div class=\"half-field\">
<div class=\"form-unit__input\">
";
// line 83
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.', 83, $this->source); })()), "phone_number", [], "any", false, false, true, 83), 83, $this->source), 'widget', ["attr" => ["style" => "ime-mode: disabled;", "placeholder" => ""]]);
echo "
<label for=\"";
// line 84
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 84, $this->source); })()), "phone_number", [], "any", false, false, true, 84), "vars", [], "any", false, false, true, 84), "id", [], "any", false, false, true, 84), 84, $this->source), "html", null, true);
echo "\" class=\"placeholder\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("XXXXXXXXXXX"), "html", null, true);
echo "</label>
</div>
<span class=\"";
// line 86
echo (($this->extensions['Eccube\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.', 86, $this->source); })()), "phone_number", [], "any", false, false, true, 86), 86, $this->source))) ? (" error") : (""));
echo "\">";
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); })()), "phone_number", [], "any", false, false, true, 86), 86, $this->source), 'errors');
echo "</span>
</div>
</div>
</dd>
</dl>
<dl class=\"required-field\">
<dt>";
// line 92
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メールアドレス"), "html", null, true);
echo "</dt>
<dd>
<div class=\"form-unit__input\">
";
// line 95
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.', 95, $this->source); })()), "email", [], "any", false, false, true, 95), 95, $this->source), 'widget', ["attr" => ["style" => "ime-mode: disabled;", "placeholder" => ""]]);
echo "
<label for=\"";
// line 96
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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); })()), "email", [], "any", false, false, true, 96), "vars", [], "any", false, false, true, 96), "id", [], "any", false, false, true, 96), 96, $this->source), "html", null, true);
echo "\" class=\"placeholder\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("xxxxx@example.co.jp"), "html", null, true);
echo "</label>
</div>
<span class=\"";
// line 98
echo (($this->extensions['Eccube\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.', 98, $this->source); })()), "email", [], "any", false, false, true, 98), 98, $this->source))) ? (" error") : (""));
echo "\">";
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); })()), "email", [], "any", false, false, true, 98), 98, $this->source), 'errors');
echo "</span>
</dd>
</dl>
<dl class=\"required-field\">
<dt>";
// line 102
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お問い合わせ内容"), "html", null, true);
echo "</dt>
<dd>
<div class=\"form-unit__contents\">";
// line 104
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.', 104, $this->source); })()), "contents", [], "any", false, false, true, 104), 104, $this->source), 'widget');
echo "</div>
<span class=\"";
// line 105
echo (($this->extensions['Eccube\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.', 105, $this->source); })()), "contents", [], "any", false, false, true, 105), 105, $this->source))) ? (" error") : (""));
echo "\">";
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.', 105, $this->source); })()), "contents", [], "any", false, false, true, 105), 105, $this->source), 'errors');
echo "</span>
<span class=\"field-notes\">";
// line 106
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご注文に関するお問い合わせの際は「ご注文番号」をご記入ください。"), "html", null, true);
echo "</span>
</dd>
</dl>
";
// line 110
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 110, $this->source); })()), function ($__f__) use ($context, $macros) { $context["f"] = $__f__; return twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, true, 110), "eccube_form_options", [], "any", false, false, true, 110), "auto_render", [], "any", false, false, true, 110); }));
foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
// line 111
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, true, 111), "eccube_form_options", [], "any", false, false, true, 111), "form_theme", [], "any", false, false, true, 111)) {
// line 112
echo " ";
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme($context["f"], [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, true, 112), "eccube_form_options", [], "any", false, false, true, 112), "form_theme", [], "any", false, false, true, 112)], true);
// line 113
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 113, $this->source), 'row');
echo "
";
} else {
// line 115
echo " <dl>
<dt>
";
// line 117
$context["label_class"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, true, true, 117), "label_attr", [], "any", false, true, true, 117), "class", [], "any", true, true, true, 117)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, true, 117), "label_attr", [], "any", false, false, true, 117), "class", [], "any", false, false, true, 117)) : (""));
// line 118
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 118, $this->source), 'label', ["label_attr" => ["class" => ($this->sandbox->ensureToStringAllowed((isset($context["label_class"]) || array_key_exists("label_class", $context) ? $context["label_class"] : (function () { throw new RuntimeError('Variable "label_class" does not exist.', 118, $this->source); })()), 118, $this->source) . " ec-label")]] + (twig_test_empty($_label_ = $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, true, 118), "label", [], "any", false, false, true, 118), 118, $this->source)) ? [] : ["label" => $_label_]));
echo "
</dt>
<dd>
<div class=\"";
// line 121
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, true, 121), "eccube_form_options", [], "any", false, false, true, 121), "style_class", [], "any", false, false, true, 121), 121, $this->source), "html", null, true);
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed($context["f"], 121, $this->source))) ? (" error") : (""));
echo "\">
";
// line 122
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 122, $this->source), 'widget');
echo "
";
// line 123
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 123, $this->source), 'errors');
echo "
</div>
</dd>
</dl>
";
}
// line 128
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 129
echo " </div>
<div class=\"form-unit__actions\">
<button type=\"submit\" class=\"ec-blockBtn--action\" name=\"mode\" value=\"confirm\">";
// line 131
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("確認ページへ"), "html", null, true);
echo "</button>
</div>
</form>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Contact/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 369 => 131, 365 => 129, 359 => 128, 351 => 123, 347 => 122, 342 => 121, 335 => 118, 333 => 117, 329 => 115, 323 => 113, 320 => 112, 317 => 111, 312 => 110, 306 => 106, 300 => 105, 296 => 104, 291 => 102, 282 => 98, 275 => 96, 271 => 95, 265 => 92, 254 => 86, 247 => 84, 243 => 83, 235 => 78, 225 => 73, 218 => 71, 214 => 70, 205 => 66, 198 => 64, 194 => 63, 187 => 59, 177 => 54, 170 => 52, 166 => 51, 157 => 47, 150 => 45, 146 => 44, 139 => 40, 130 => 36, 126 => 35, 121 => 33, 115 => 30, 110 => 28, 103 => 24, 98 => 21, 95 => 20, 85 => 19, 74 => 16, 64 => 15, 53 => 11, 51 => 13, 38 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.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' %}
{% form_theme form 'Form/form_div_layout.twig' %}
{% block javascript %}
<script src=\"//yubinbango.github.io/yubinbango/yubinbango.js\" charset=\"UTF-8\"></script>
{% endblock javascript %}
{% block main %}
{% form_theme form 'Form/form_custom_theme.twig' %}
<div class=\"ec-role narrow-contents\">
<div class=\"ec-pageHeader\">
<h1>{{ 'お問い合わせ'|trans }}</h1>
</div>
<div class=\"content-inner\">
<div class=\"content-contact\">
<form method=\"post\" action=\"{{ url('contact') }}\" class=\"h-adr\" novalidate>
<span class=\"p-country-name\" style=\"display:none;\">Japan</span>
{{ form_widget(form._token) }}
<div class=\"form-container\">
<dl class=\"required-field\">
<dt>{{ '会社名または事業所名'|trans }}</dt>
<dd>
<div class=\"form-unit__input\">{{ form_widget(form.company_name) }}</div>
<span class=\"{{ has_errors(form.company_name) ? ' error' }}\">{{ form_errors(form.company_name) }}</span>
</dd>
</dl>
<dl class=\"required-field\">
<dt>{{ 'ご担当者様'|trans }}</dt>
<dd class=\"separate-form\">
<div class=\"half-field\">
<div class=\"form-unit__input\">
{{ form_widget(form.name.name01, { 'attr': { 'placeholder': '' }}) }}
<label for=\"{{ form.name.name01.vars.id }}\" class=\"placeholder\">{{ '姓'|trans }}</label>
</div>
<span class=\"{{ has_errors(form.name.name01) ? ' error' }}\">{{ form_errors(form.name.name01) }}</span>
</div>
<div class=\"half-field\">
<div class=\"form-unit__input half-field\">
{{ form_widget(form.name.name02, { 'attr': { 'placeholder': '' }}) }}
<label for=\"{{ form.name.name02.vars.id }}\" class=\"placeholder\">{{ '名'|trans }}</label>
</div>
<span class=\"{{ has_errors(form.name.name02) ? ' error' }}\">{{ form_errors(form.name.name02) }}</span>
</div>
</dd>
</dl>
<dl>
<dt>{{ 'ご担当者様(カナ)'|trans }}</dt>
<dd class=\"separate-form\">
<div class=\"half-field\">
<div class=\"form-unit__input\">
{{ form_widget(form.kana.kana01, { 'attr': { 'placeholder': '' }}) }}
<label for=\"{{ form.kana.kana01.vars.id }}\" class=\"placeholder\">{{ 'セイ'|trans }}</label>
</div>
<span class=\"{{ has_errors(form.kana.kana01) ? ' error' }}\">{{ form_errors(form.kana.kana01) }}</span>
</div>
<div class=\"half-field\">
<div class=\"form-unit__input\">
{{ form_widget(form.kana.kana02, { 'attr': { 'placeholder': '' }}) }}
<label for=\"{{ form.kana.kana02.vars.id }}\" class=\"placeholder\">{{ 'メイ'|trans }}</label>
</div>
<span class=\"{{ has_errors(form.kana.kana02) ? ' error' }}\">{{ form_errors(form.kana.kana02) }}</span>
</div>
</dd>
</dl>
<dl>
<dt>{{ '電話番号'|trans }}</dt>
<dd>
<div class=\"separate-form\">
<div class=\"half-field\">
<div class=\"form-unit__input\">
{{ form_widget(form.phone_number, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder': ''}}) }}
<label for=\"{{ form.phone_number.vars.id }}\" class=\"placeholder\">{{ 'XXXXXXXXXXX'|trans }}</label>
</div>
<span class=\"{{ has_errors(form.phone_number) ? ' error' }}\">{{ form_errors(form.phone_number) }}</span>
</div>
</div>
</dd>
</dl>
<dl class=\"required-field\">
<dt>{{ 'メールアドレス'|trans }}</dt>
<dd>
<div class=\"form-unit__input\">
{{ form_widget(form.email, { 'attr': { 'style' : 'ime-mode: disabled;', 'placeholder': '' }}) }}
<label for=\"{{ form.email.vars.id }}\" class=\"placeholder\">{{ 'xxxxx@example.co.jp'|trans }}</label>
</div>
<span class=\"{{ has_errors(form.email) ? ' error' }}\">{{ form_errors(form.email) }}</span>
</dd>
</dl>
<dl class=\"required-field\">
<dt>{{ 'お問い合わせ内容'|trans }}</dt>
<dd>
<div class=\"form-unit__contents\">{{ form_widget(form.contents) }}</div>
<span class=\"{{ has_errors(form.contents) ? ' error' }}\">{{ form_errors(form.contents) }}</span>
<span class=\"field-notes\">{{ 'ご注文に関するお問い合わせの際は「ご注文番号」をご記入ください。'|trans }}</span>
</dd>
</dl>
{# エンティティ拡張の自動出力 #}
{% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
{% if f.vars.eccube_form_options.form_theme %}
{% form_theme f f.vars.eccube_form_options.form_theme %}
{{ form_row(f) }}
{% else %}
<dl>
<dt>
{% set label_class = f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
{{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
</dt>
<dd>
<div class=\"{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}\">
{{ form_widget(f) }}
{{ form_errors(f) }}
</div>
</dd>
</dl>
{% endif %}
{% endfor %}
</div>
<div class=\"form-unit__actions\">
<button type=\"submit\" class=\"ec-blockBtn--action\" name=\"mode\" value=\"confirm\">{{ '確認ページへ'|trans }}</button>
</div>
</form>
</div>
</div>
</div>
{% endblock %}
", "Contact/index.twig", "/home/xs362797/magamar.jp/public_html/app/template/magamar/Contact/index.twig");
}
public function checkSecurity()
{
static $tags = array("form_theme" => 13, "for" => 110, "if" => 111, "set" => 117);
static $filters = array("escape" => 24, "trans" => 24, "filter" => 110);
static $functions = array("url" => 28, "form_widget" => 30, "has_errors" => 36, "form_errors" => 36, "form_row" => 113, "form_label" => 118);
try {
$this->sandbox->checkSecurity(
['form_theme', 'for', 'if', 'set'],
['escape', 'trans', 'filter'],
['url', 'form_widget', 'has_errors', 'form_errors', 'form_row', 'form_label']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}