var/cache/dev/twig/83/8392f82dc4034f0ca26f50b4a314918f52a9b31f628cca62c53daad316223aae.php line 59

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. /* Shopping/shipping_edit.twig */
  14. class __TwigTemplate_efb1f183e5b9f7c382fbba59a12c9cb1c287d33231de7d01c0dc5a029dc64b06 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.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 11
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Shopping/shipping_edit.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Shopping/shipping_edit.twig"));
  39.         // line 13
  40.         $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); })()), [=> "Form/form_div_layout.twig"], true);
  41.         // line 15
  42.         $context["body_class"] = "cart_page";
  43.         // line 17
  44.         if (twig_test_empty($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER"))) {
  45.             // line 18
  46.             $context["title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("商品購入/お届け先の変更");
  47.         }
  48.         // line 11
  49.         $this->parent $this->loadTemplate("default_frame.twig""Shopping/shipping_edit.twig"11);
  50.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  53.         
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  55.     }
  56.     // line 21
  57.     public function block_javascript($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  64.         // line 22
  65.         echo "    <script src=\"//yubinbango.github.io/yubinbango/yubinbango.js\" charset=\"UTF-8\"></script>
  66. ";
  67.         
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  69.         
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  71.     }
  72.     // line 25
  73.     public function block_main($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  80.         // line 26
  81.         echo "
  82.     <div class=\"ec-role\">
  83.         <div class=\"ec-pageHeader\">
  84.             ";
  85.         // line 29
  86.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  87.             // line 30
  88.             echo "                <h1>";
  89.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お届け先の追加"), "html"nulltrue);
  90.             echo "</h1>
  91.             ";
  92.         } else {
  93.             // line 32
  94.             echo "                <h1>";
  95.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お届け先の変更"), "html"nulltrue);
  96.             echo "</h1>
  97.             ";
  98.         }
  99.         // line 34
  100.         echo "        </div>
  101.     </div>
  102.     <div class=\"ec-role\">
  103.         <div class=\"ec-registerRole\">
  104.             <div class=\"ec-off1Grid\">
  105.                 <div class=\"ec-off1Grid__cell\">
  106.                     <form method=\"post\" action=\"";
  107.         // line 41
  108.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shopping_shipping_edit", ["id" => (isset($context["shippingId"]) || array_key_exists("shippingId"$context) ? $context["shippingId"] : (function () { throw new RuntimeError('Variable "shippingId" does not exist.'41$this->source); })())]), "html"nulltrue);
  109.         echo "\" class=\"h-adr\">
  110.                         <span class=\"p-country-name\" style=\"display:none;\">Japan</span>
  111.                         ";
  112.         // line 43
  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.'43$this->source); })()), "_token", [], "any"falsefalsefalse43), 'widget');
  114.         echo "
  115.                         <div class=\"ec-borderedDefs\">
  116.                             <dl>
  117.                                 <dt>
  118.                                     ";
  119.         // line 47
  120.         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.'47$this->source); })()), "name", [], "any"falsefalsefalse47), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "お名前"]);
  121.         echo "
  122.                                 </dt>
  123.                                 <dd>
  124.                                     <div class=\"ec-halfInput";
  125.         // line 50
  126.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env$this->sourcetwig_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.'50$this->source); })()), "name", [], "any"falsefalsefalse50), "name01", [], "any"falsefalsefalse50), twig_get_attribute($this->env$this->sourcetwig_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.'50$this->source); })()), "name", [], "any"falsefalsefalse50), "name02", [], "any"falsefalsefalse50))) ? (" error") : (""));
  127.         echo "\">
  128.                                         ";
  129.         // line 51
  130.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse51), "name01", [], "any"falsefalsefalse51), 'widget', ["attr" => ["placeholder" => "姓"]]);
  131.         echo "
  132.                                         ";
  133.         // line 52
  134.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse52), "name02", [], "any"falsefalsefalse52), 'widget', ["attr" => ["placeholder" => "名"]]);
  135.         echo "
  136.                                         ";
  137.         // line 53
  138.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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.'53$this->source); })()), "name", [], "any"falsefalsefalse53), "name01", [], "any"falsefalsefalse53), 'errors');
  139.         echo "
  140.                                         ";
  141.         // line 54
  142.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse54), "name02", [], "any"falsefalsefalse54), 'errors');
  143.         echo "
  144.                                     </div>
  145.                                 </dd>
  146.                             </dl>
  147.                             <dl>
  148.                                 <dt>
  149.                                     ";
  150.         // line 60
  151.         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.'60$this->source); })()), "kana", [], "any"falsefalsefalse60), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "お名前(カナ)"]);
  152.         echo "
  153.                                 </dt>
  154.                                 <dd>
  155.                                     <div class=\"ec-halfInput";
  156.         // line 63
  157.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse63), "kana01", [], "any"falsefalsefalse63), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse63), "kana02", [], "any"falsefalsefalse63))) ? (" error") : (""));
  158.         echo "\">
  159.                                         ";
  160.         // line 64
  161.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse64), "kana01", [], "any"falsefalsefalse64), 'widget', ["attr" => ["placeholder" => "セイ"]]);
  162.         echo "
  163.                                         ";
  164.         // line 65
  165.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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.'65$this->source); })()), "kana", [], "any"falsefalsefalse65), "kana02", [], "any"falsefalsefalse65), 'widget', ["attr" => ["placeholder" => "メイ"]]);
  166.         echo "
  167.                                         ";
  168.         // line 66
  169.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse66), "kana01", [], "any"falsefalsefalse66), 'errors');
  170.         echo "
  171.                                         ";
  172.         // line 67
  173.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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.'67$this->source); })()), "kana", [], "any"falsefalsefalse67), "kana02", [], "any"falsefalsefalse67), 'errors');
  174.         echo "
  175.                                     </div>
  176.                                 </dd>
  177.                             </dl>
  178.                             <dl>
  179.                                 <dt>
  180.                                     ";
  181.         // line 73
  182.         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.'73$this->source); })()), "company_name", [], "any"falsefalsefalse73), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "会社名"]);
  183.         echo "
  184.                                 </dt>
  185.                                 <dd>
  186.                                     <div class=\"ec-halfInput";
  187.         // line 76
  188.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'76$this->source); })()), "company_name", [], "any"falsefalsefalse76))) ? (" error") : (""));
  189.         echo "\">
  190.                                         ";
  191.         // line 77
  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.'77$this->source); })()), "company_name", [], "any"falsefalsefalse77), 'widget');
  193.         echo "
  194.                                         ";
  195.         // line 78
  196.         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.'78$this->source); })()), "company_name", [], "any"falsefalsefalse78), 'errors');
  197.         echo "
  198.                                     </div>
  199.                                 </dd>
  200.                             </dl>
  201.                             <dl>
  202.                                 <dt>
  203.                                     ";
  204.         // line 84
  205.         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.'84$this->source); })()), "address", [], "any"falsefalsefalse84), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "住所"]);
  206.         echo "
  207.                                 </dt>
  208.                                 <dd>
  209.                                     <div class=\"ec-zipInput";
  210.         // line 87
  211.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'87$this->source); })()), "postal_code", [], "any"falsefalsefalse87))) ? (" error") : (""));
  212.         echo "\"><span>";
  213.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("〒"), "html"nulltrue);
  214.         echo "</span>
  215.                                         ";
  216.         // line 88
  217.         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.'88$this->source); })()), "postal_code", [], "any"falsefalsefalse88), 'widget');
  218.         echo "
  219.                                         <div class=\"ec-zipInputHelp\">
  220.                                             <div class=\"ec-zipInputHelp__icon\">
  221.                                                 <div class=\"ec-icon\"><img
  222.                                                             src=\"";
  223.         // line 92
  224.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/question-white.svg"), "html"nulltrue);
  225.         echo "\" alt=\"\">
  226.                                                 </div>
  227.                                             </div><a href=\"https://www.post.japanpost.jp/zipcode/\" target=\"_blank\"><span>";
  228.         // line 94
  229.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("郵便番号検索"), "html"nulltrue);
  230.         echo "</span></a>
  231.                                         </div>
  232.                                         ";
  233.         // line 96
  234.         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.'96$this->source); })()), "postal_code", [], "any"falsefalsefalse96), 'errors');
  235.         echo "
  236.                                     </div>
  237.                                     <div class=\"ec-select";
  238.         // line 99
  239.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'99$this->source); })()), "address", [], "any"falsefalsefalse99), "pref", [], "any"falsefalsefalse99))) ? (" error") : (""));
  240.         echo "\">
  241.                                         ";
  242.         // line 100
  243.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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.'100$this->source); })()), "address", [], "any"falsefalsefalse100), "pref", [], "any"falsefalsefalse100), 'widget');
  244.         echo "
  245.                                         ";
  246.         // line 101
  247.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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.'101$this->source); })()), "address", [], "any"falsefalsefalse101), "pref", [], "any"falsefalsefalse101), 'errors');
  248.         echo "
  249.                                     </div>
  250.                                     <div class=\"ec-input";
  251.         // line 103
  252.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env$this->sourcetwig_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.'103$this->source); })()), "address", [], "any"falsefalsefalse103), "addr01", [], "any"falsefalsefalse103))) ? (" error") : (""));
  253.         echo "\">
  254.                                         ";
  255.         // line 104
  256.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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); })()), "address", [], "any"falsefalsefalse104), "addr01", [], "any"falsefalsefalse104), 'widget', ["attr" => ["placeholder" => "市区町村名(例:大阪市北区)"]]);
  257.         echo "
  258.                                         ";
  259.         // line 105
  260.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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); })()), "address", [], "any"falsefalsefalse105), "addr01", [], "any"falsefalsefalse105), 'errors');
  261.         echo "
  262.                                     </div>
  263.                                     <div class=\"ec-input";
  264.         // line 107
  265.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env$this->sourcetwig_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.'107$this->source); })()), "address", [], "any"falsefalsefalse107), "addr02", [], "any"falsefalsefalse107))) ? (" error") : (""));
  266.         echo "\">
  267.                                         ";
  268.         // line 108
  269.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_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.'108$this->source); })()), "address", [], "any"falsefalsefalse108), "addr02", [], "any"falsefalsefalse108), 'widget', ["attr" => ["placeholder" => "番地・ビル名(例:西梅田1丁目6-8)"]]);
  270.         echo "
  271.                                         ";
  272.         // line 109
  273.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'109$this->source); })()), "address", [], "any"falsefalsefalse109), "addr02", [], "any"falsefalsefalse109), 'errors');
  274.         echo "
  275.                                     </div>
  276.                                 </dd>
  277.                             </dl>
  278.                             <dl>
  279.                                 <dt>
  280.                                     ";
  281.         // line 115
  282.         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.'115$this->source); })()), "phone_number", [], "any"falsefalsefalse115), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "電話番号"]);
  283.         echo "
  284.                                 </dt>
  285.                                 <dd>
  286.                                     <div class=\"ec-telInput";
  287.         // line 118
  288.         echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'118$this->source); })()), "phone_number", [], "any"falsefalsefalse118))) ? (" error") : (""));
  289.         echo "\">
  290.                                         ";
  291.         // line 119
  292.         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.'119$this->source); })()), "phone_number", [], "any"falsefalsefalse119), 'widget');
  293.         echo "
  294.                                         ";
  295.         // line 120
  296.         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.'120$this->source); })()), "phone_number", [], "any"falsefalsefalse120), 'errors');
  297.         echo "
  298.                                     </div>
  299.                                 </dd>
  300.                             </dl>
  301.                             ";
  302.         // line 125
  303.         echo "                            ";
  304.         $context['_parent'] = $context;
  305.         $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.'125$this->source); })()), function ($__f__) use ($context$macros) { $context["f"] = $__f__; return twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsefalse125), "eccube_form_options", [], "any"falsefalsefalse125), "auto_render", [], "any"falsefalsefalse125); }));
  306.         foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
  307.             // line 126
  308.             echo "                                ";
  309.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsefalse126), "eccube_form_options", [], "any"falsefalsefalse126), "form_theme", [], "any"falsefalsefalse126)) {
  310.                 // line 127
  311.                 echo "                                    ";
  312.                 $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme($context["f"], [=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsefalse127), "eccube_form_options", [], "any"falsefalsefalse127), "form_theme", [], "any"falsefalsefalse127)], true);
  313.                 // line 128
  314.                 echo "                                    ";
  315.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'row');
  316.                 echo "
  317.                                 ";
  318.             } else {
  319.                 // line 130
  320.                 echo "                                    <dl>
  321.                                         <dt>
  322.                                             ";
  323.                 // line 132
  324.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'label');
  325.                 echo "
  326.                                         </dt>
  327.                                         <dd>
  328.                                             <div class=\"";
  329.                 // line 135
  330.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsefalse135), "eccube_form_options", [], "any"falsefalsefalse135), "style_class", [], "any"falsefalsefalse135), "html"nulltrue);
  331.                 echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($context["f"])) ? (" error") : (""));
  332.                 echo "\">
  333.                                                 ";
  334.                 // line 136
  335.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'widget');
  336.                 echo "
  337.                                                 ";
  338.                 // line 137
  339.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'errors');
  340.                 echo "
  341.                                             </div>
  342.                                         </dd>
  343.                                     </dl>
  344.                                 ";
  345.             }
  346.             // line 142
  347.             echo "                            ";
  348.         }
  349.         $_parent $context['_parent'];
  350.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
  351.         $context array_intersect_key($context$_parent) + $_parent;
  352.         // line 143
  353.         echo "                        </div>
  354.                         <div class=\"ec-RegisterRole__actions\">
  355.                             <div class=\"ec-off4Grid\">
  356.                                 <div class=\"ec-off4Grid__cell\">
  357.                                     <button type=\"submit\" class=\"ec-blockBtn--action\">";
  358.         // line 147
  359.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("登録する"), "html"nulltrue);
  360.         echo "</button>
  361.                                     ";
  362.         // line 148
  363.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  364.             // line 149
  365.             echo "                                    <a href=\"";
  366.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shopping_shipping", ["id" => (isset($context["shippingId"]) || array_key_exists("shippingId"$context) ? $context["shippingId"] : (function () { throw new RuntimeError('Variable "shippingId" does not exist.'149$this->source); })())]), "html"nulltrue);
  367.             echo "\" class=\"ec-blockBtn--cancel\">";
  368.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("戻る"), "html"nulltrue);
  369.             echo "</a>
  370.                                     ";
  371.         } else {
  372.             // line 151
  373.             echo "                                        <a href=\"";
  374.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shopping");
  375.             echo "\" class=\"ec-blockBtn--cancel\">";
  376.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("戻る"), "html"nulltrue);
  377.             echo "</a>
  378.                                     ";
  379.         }
  380.         // line 153
  381.         echo "                                </div>
  382.                             </div>
  383.                         </div>
  384.                     </form>
  385.                 </div>
  386.             </div>
  387.         </div>
  388.     </div>
  389. ";
  390.         
  391.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  392.         
  393.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  394.     }
  395.     public function getTemplateName()
  396.     {
  397.         return "Shopping/shipping_edit.twig";
  398.     }
  399.     public function isTraitable()
  400.     {
  401.         return false;
  402.     }
  403.     public function getDebugInfo()
  404.     {
  405.         return array (  402 => 153,  394 => 151,  386 => 149,  384 => 148,  380 => 147,  374 => 143,  368 => 142,  360 => 137,  356 => 136,  351 => 135,  345 => 132,  341 => 130,  335 => 128,  332 => 127,  329 => 126,  324 => 125,  317 => 120,  313 => 119,  309 => 118,  303 => 115,  294 => 109,  290 => 108,  286 => 107,  281 => 105,  277 => 104,  273 => 103,  268 => 101,  264 => 100,  260 => 99,  254 => 96,  249 => 94,  244 => 92,  237 => 88,  231 => 87,  225 => 84,  216 => 78,  212 => 77,  208 => 76,  202 => 73,  193 => 67,  189 => 66,  185 => 65,  181 => 64,  177 => 63,  171 => 60,  162 => 54,  158 => 53,  154 => 52,  150 => 51,  146 => 50,  140 => 47,  133 => 43,  128 => 41,  119 => 34,  113 => 32,  107 => 30,  105 => 29,  100 => 26,  90 => 25,  79 => 22,  69 => 21,  58 => 11,  55 => 18,  53 => 17,  51 => 15,  49 => 13,  36 => 11,);
  406.     }
  407.     public function getSourceContext()
  408.     {
  409.         return new Source("{#
  410. This file is part of EC-CUBE
  411. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  412. http://www.ec-cube.co.jp/
  413. For the full copyright and license information, please view the LICENSE
  414. file that was distributed with this source code.
  415. #}
  416. {% extends 'default_frame.twig' %}
  417. {% form_theme form 'Form/form_div_layout.twig' %}
  418. {% set body_class = 'cart_page' %}
  419. {# ログイン状態によって、表示内容を切替 #}
  420. {% if is_granted('ROLE_USER') is empty %}
  421.     {% set title = '商品購入/お届け先の変更'|trans %}
  422. {% endif %}
  423. {% block javascript %}
  424.     <script src=\"//yubinbango.github.io/yubinbango/yubinbango.js\" charset=\"UTF-8\"></script>
  425. {% endblock javascript %}
  426. {% block main %}
  427.     <div class=\"ec-role\">
  428.         <div class=\"ec-pageHeader\">
  429.             {% if is_granted('ROLE_USER') %}
  430.                 <h1>{{ 'お届け先の追加'|trans }}</h1>
  431.             {% else %}
  432.                 <h1>{{ 'お届け先の変更'|trans }}</h1>
  433.             {% endif %}
  434.         </div>
  435.     </div>
  436.     <div class=\"ec-role\">
  437.         <div class=\"ec-registerRole\">
  438.             <div class=\"ec-off1Grid\">
  439.                 <div class=\"ec-off1Grid__cell\">
  440.                     <form method=\"post\" action=\"{{ url('shopping_shipping_edit', {'id': shippingId}) }}\" class=\"h-adr\">
  441.                         <span class=\"p-country-name\" style=\"display:none;\">Japan</span>
  442.                         {{ form_widget(form._token) }}
  443.                         <div class=\"ec-borderedDefs\">
  444.                             <dl>
  445.                                 <dt>
  446.                                     {{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
  447.                                 </dt>
  448.                                 <dd>
  449.                                     <div class=\"ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error'}}\">
  450.                                         {{ form_widget(form.name.name01, { 'attr': { 'placeholder': '姓' }}) }}
  451.                                         {{ form_widget(form.name.name02, { 'attr': { 'placeholder': '名' }}) }}
  452.                                         {{ form_errors(form.name.name01) }}
  453.                                         {{ form_errors(form.name.name02) }}
  454.                                     </div>
  455.                                 </dd>
  456.                             </dl>
  457.                             <dl>
  458.                                 <dt>
  459.                                     {{ form_label(form.kana, 'お名前(カナ)', { 'label_attr': { 'class': 'ec-label' }}) }}
  460.                                 </dt>
  461.                                 <dd>
  462.                                     <div class=\"ec-halfInput{{ has_errors(form.kana.kana01, form.kana.kana02) ? ' error'}}\">
  463.                                         {{ form_widget(form.kana.kana01, { 'attr': { 'placeholder': 'セイ' }}) }}
  464.                                         {{ form_widget(form.kana.kana02, { 'attr': { 'placeholder': 'メイ' }}) }}
  465.                                         {{ form_errors(form.kana.kana01) }}
  466.                                         {{ form_errors(form.kana.kana02) }}
  467.                                     </div>
  468.                                 </dd>
  469.                             </dl>
  470.                             <dl>
  471.                                 <dt>
  472.                                     {{ form_label(form.company_name, '会社名', { 'label_attr': { 'class': 'ec-label' }}) }}
  473.                                 </dt>
  474.                                 <dd>
  475.                                     <div class=\"ec-halfInput{{ has_errors(form.company_name) ? ' error' }}\">
  476.                                         {{ form_widget(form.company_name) }}
  477.                                         {{ form_errors(form.company_name) }}
  478.                                     </div>
  479.                                 </dd>
  480.                             </dl>
  481.                             <dl>
  482.                                 <dt>
  483.                                     {{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
  484.                                 </dt>
  485.                                 <dd>
  486.                                     <div class=\"ec-zipInput{{ has_errors(form.postal_code) ? ' error' }}\"><span>{{ '〒'|trans }}</span>
  487.                                         {{ form_widget(form.postal_code) }}
  488.                                         <div class=\"ec-zipInputHelp\">
  489.                                             <div class=\"ec-zipInputHelp__icon\">
  490.                                                 <div class=\"ec-icon\"><img
  491.                                                             src=\"{{ asset('assets/icon/question-white.svg') }}\" alt=\"\">
  492.                                                 </div>
  493.                                             </div><a href=\"https://www.post.japanpost.jp/zipcode/\" target=\"_blank\"><span>{{ '郵便番号検索'|trans }}</span></a>
  494.                                         </div>
  495.                                         {{ form_errors(form.postal_code) }}
  496.                                     </div>
  497.                                     <div class=\"ec-select{{ has_errors(form.address.pref) ? ' error' }}\">
  498.                                         {{ form_widget(form.address.pref) }}
  499.                                         {{ form_errors(form.address.pref) }}
  500.                                     </div>
  501.                                     <div class=\"ec-input{{ has_errors(form.address.addr01) ? ' error' }}\">
  502.                                         {{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
  503.                                         {{ form_errors(form.address.addr01) }}
  504.                                     </div>
  505.                                     <div class=\"ec-input{{ has_errors(form.address.addr02) ? ' error' }}\">
  506.                                         {{ form_widget(form.address.addr02,  { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
  507.                                         {{ form_errors(form.address.addr02) }}
  508.                                     </div>
  509.                                 </dd>
  510.                             </dl>
  511.                             <dl>
  512.                                 <dt>
  513.                                     {{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
  514.                                 </dt>
  515.                                 <dd>
  516.                                     <div class=\"ec-telInput{{ has_errors(form.phone_number) ? ' error' }}\">
  517.                                         {{ form_widget(form.phone_number) }}
  518.                                         {{ form_errors(form.phone_number) }}
  519.                                     </div>
  520.                                 </dd>
  521.                             </dl>
  522.                             {# エンティティ拡張の自動出力 #}
  523.                             {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  524.                                 {% if f.vars.eccube_form_options.form_theme %}
  525.                                     {% form_theme f f.vars.eccube_form_options.form_theme %}
  526.                                     {{ form_row(f) }}
  527.                                 {% else %}
  528.                                     <dl>
  529.                                         <dt>
  530.                                             {{ form_label(f) }}
  531.                                         </dt>
  532.                                         <dd>
  533.                                             <div class=\"{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}\">
  534.                                                 {{ form_widget(f) }}
  535.                                                 {{ form_errors(f) }}
  536.                                             </div>
  537.                                         </dd>
  538.                                     </dl>
  539.                                 {% endif %}
  540.                             {% endfor %}
  541.                         </div>
  542.                         <div class=\"ec-RegisterRole__actions\">
  543.                             <div class=\"ec-off4Grid\">
  544.                                 <div class=\"ec-off4Grid__cell\">
  545.                                     <button type=\"submit\" class=\"ec-blockBtn--action\">{{ '登録する'|trans }}</button>
  546.                                     {% if is_granted('ROLE_USER') %}
  547.                                     <a href=\"{{ url('shopping_shipping', { 'id': shippingId }) }}\" class=\"ec-blockBtn--cancel\">{{ '戻る'|trans }}</a>
  548.                                     {% else %}
  549.                                         <a href=\"{{ url('shopping') }}\" class=\"ec-blockBtn--cancel\">{{ '戻る'|trans }}</a>
  550.                                     {% endif %}
  551.                                 </div>
  552.                             </div>
  553.                         </div>
  554.                     </form>
  555.                 </div>
  556.             </div>
  557.         </div>
  558.     </div>
  559. {% endblock %}
  560. ""Shopping/shipping_edit.twig""/home/daiwafood/www/ec/app/template/mizunasu/Shopping/shipping_edit.twig");
  561.     }
  562. }