var/cache/dev/twig/a9/a932d2db88e4b668c7b8822bcd5e74c8986eab6c89806b5c2e00ee52e041c17a.php line 48

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.twig */
  14. class __TwigTemplate_60e5e78ab2d52af1799f79c89781b293cbcda1d55b77b03fcc4c61ac4d58cbce 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.             'main' => [$this'block_main'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 11
  29.         return "default_frame.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Shopping/shipping.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Shopping/shipping.twig"));
  38.         $this->parent $this->loadTemplate("default_frame.twig""Shopping/shipping.twig"11);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 13
  46.     public function block_main($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  53.         // line 14
  54.         echo "    <div class=\"ec-role\">
  55.         <div class=\"ec-pageHeader\">
  56.             <h1>";
  57.         // line 16
  58.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お届け先の指定"), "html"nulltrue);
  59.         echo "</h1>
  60.         </div>
  61.     </div>
  62.     <div class=\"ec-registerRole\">
  63.         <div class=\"ec-off1Grid\">
  64.             <div class=\"ec-off1Grid__cell\">
  65.                 <div class=\"ec-addressRole\">
  66.                     ";
  67.         // line 24
  68.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Customer"]) || array_key_exists("Customer"$context) ? $context["Customer"] : (function () { throw new RuntimeError('Variable "Customer" does not exist.'24$this->source); })()), "CustomerAddresses", [], "any"falsefalsefalse24)) < 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.'24$this->source); })()), "eccube_deliv_addr_max", [], "any"falsefalsefalse24))) {
  69.             // line 25
  70.             echo "                        <div class=\"ec-addressRole__actions\"><a class=\"ec-inlineBtn\" href=\"";
  71.             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.'25$this->source); })())]), "html"nulltrue);
  72.             echo "\">";
  73.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("新規お届け先を追加する"), "html"nulltrue);
  74.             echo "</a></div>
  75.                     ";
  76.         } else {
  77.             // line 27
  78.             echo "                        <div class=\"ec-alert-warning\">
  79.                             <div class=\"ec-alert-warning__text\">
  80.                                 <div class=\"ec-alert-warning__icon\"><img src=\"";
  81.             // line 29
  82.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  83.             echo "\"/></div>
  84.                                 ";
  85.             // line 30
  86.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お届け先登録の上限の%count%件に達しています。お届け先を入力したい場合は、削除か変更を行ってください。", ["%count%" => 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.'30$this->source); })()), "eccube_deliv_addr_max", [], "any"falsefalsefalse30)]), "html"nulltrue);
  87.             echo "
  88.                             </div>
  89.                         </div>
  90.                     ";
  91.         }
  92.         // line 34
  93.         echo "                    ";
  94.         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.'34$this->source); })()), "addresses", [], "any"falsefalsefalse34))) {
  95.             // line 35
  96.             echo "                        <div class=\"ec-alert-warning\">
  97.                             <div class=\"ec-alert-warning__text\">
  98.                                 <div class=\"ec-alert-warning__icon\"><img src=\"";
  99.             // line 37
  100.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/exclamation-white.svg"), "html"nulltrue);
  101.             echo "\"/></div>
  102.                                 ";
  103.             // line 38
  104.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お届け先を指定してください"), "html"nulltrue);
  105.             echo "
  106.                             </div>
  107.                         </div>
  108.                     ";
  109.         }
  110.         // line 42
  111.         echo "                </div>
  112.                 <form method=\"post\" action=\"";
  113.         // line 44
  114.         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.'44$this->source); })())]), "html"nulltrue);
  115.         echo "\">
  116.                     ";
  117.         // line 45
  118.         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.'45$this->source); })()), "_token", [], "any"falsefalsefalse45), 'widget');
  119.         echo "
  120.                     <div class=\"ec-addressList\">
  121.                         ";
  122.         // line 47
  123.         $context['_parent'] = $context;
  124.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_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.'47$this->source); })()), "addresses", [], "any"falsefalsefalse47), "vars", [], "any"falsefalsefalse47), "choices", [], "any"falsefalsefalse47));
  125.         foreach ($context['_seq'] as $context["_key"] => $context["choice"]) {
  126.             // line 48
  127.             echo "                            ";
  128.             $context["Address"] = twig_get_attribute($this->env$this->source$context["choice"], "data", [], "any"falsefalsefalse48);
  129.             // line 49
  130.             echo "                        <div class=\"ec-addressList__item\">
  131.                             <div class=\"ec-addressList__remove\">
  132.                                 ";
  133.             // line 51
  134.             $context["checked"] = ((Symfony\Bridge\Twig\Extension\twig_is_selected_choice($context["choice"], twig_get_attribute($this->env$this->sourcetwig_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); })()), "addresses", [], "any"falsefalsefalse51), "vars", [], "any"falsefalsefalse51), "value", [], "any"falsefalsefalse51))) ? ("checked=\"checked\"") : (""));
  135.             // line 52
  136.             echo "                                <input type=\"radio\" id=\"address";
  137.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["choice"], "value", [], "any"falsefalsefalse52), "html"nulltrue);
  138.             echo "\" name=\"";
  139.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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); })()), "addresses", [], "any"falsefalsefalse52), "vars", [], "any"falsefalsefalse52), "full_name", [], "any"falsefalsefalse52), "html"nulltrue);
  140.             echo "\" value=\"";
  141.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["choice"], "value", [], "any"falsefalsefalse52), "html"nulltrue);
  142.             echo "\" ";
  143.             echo twig_escape_filter($this->env, (isset($context["checked"]) || array_key_exists("checked"$context) ? $context["checked"] : (function () { throw new RuntimeError('Variable "checked" does not exist.'52$this->source); })()), "html"nulltrue);
  144.             echo " />
  145.                             </div>
  146.                             <div class=\"ec-addressList__address\">
  147.                                 <div>";
  148.             // line 55
  149.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Address"]) || array_key_exists("Address"$context) ? $context["Address"] : (function () { throw new RuntimeError('Variable "Address" does not exist.'55$this->source); })()), "name01", [], "any"falsefalsefalse55), "html"nulltrue);
  150.             echo "&nbsp;";
  151.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Address"]) || array_key_exists("Address"$context) ? $context["Address"] : (function () { throw new RuntimeError('Variable "Address" does not exist.'55$this->source); })()), "name02", [], "any"falsefalsefalse55), "html"nulltrue);
  152.             echo "</div>
  153.                                 <div>〒";
  154.             // line 56
  155.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Address"]) || array_key_exists("Address"$context) ? $context["Address"] : (function () { throw new RuntimeError('Variable "Address" does not exist.'56$this->source); })()), "postal_code", [], "any"falsefalsefalse56), "html"nulltrue);
  156.             echo " ";
  157.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Address"]) || array_key_exists("Address"$context) ? $context["Address"] : (function () { throw new RuntimeError('Variable "Address" does not exist.'56$this->source); })()), "Pref", [], "any"falsefalsefalse56), "html"nulltrue);
  158.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Address"]) || array_key_exists("Address"$context) ? $context["Address"] : (function () { throw new RuntimeError('Variable "Address" does not exist.'56$this->source); })()), "addr01", [], "any"falsefalsefalse56), "html"nulltrue);
  159.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Address"]) || array_key_exists("Address"$context) ? $context["Address"] : (function () { throw new RuntimeError('Variable "Address" does not exist.'56$this->source); })()), "addr02", [], "any"falsefalsefalse56), "html"nulltrue);
  160.             echo "</div>
  161.                                 <div>";
  162.             // line 57
  163.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["Address"]) || array_key_exists("Address"$context) ? $context["Address"] : (function () { throw new RuntimeError('Variable "Address" does not exist.'57$this->source); })()), "phone_number", [], "any"falsefalsefalse57), "html"nulltrue);
  164.             echo "</div>
  165.                             </div>
  166.                         </div>
  167.                         ";
  168.         }
  169.         $_parent $context['_parent'];
  170.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['choice'], $context['_parent'], $context['loop']);
  171.         $context array_intersect_key($context$_parent) + $_parent;
  172.         // line 61
  173.         echo "                    </div>
  174.                     <div class=\"ec-registerRole__actions\">
  175.                         <div class=\"ec-off4Grid\">
  176.                             <div class=\"ec-off4Grid__cell\">
  177.                                 <button type=\"submit\" class=\"ec-blockBtn--action\">";
  178.         // line 66
  179.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("選択したお届け先に送る"), "html"nulltrue);
  180.         echo "</button>
  181.                                 <a class=\"ec-blockBtn--cancel\" href=\"";
  182.         // line 67
  183.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("shopping");
  184.         echo "\">";
  185.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("戻る"), "html"nulltrue);
  186.         echo "</a>
  187.                             </div>
  188.                         </div>
  189.                     </div>
  190.                 </form>
  191.             </div>
  192.         </div>
  193.     </div>
  194. ";
  195.         
  196.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  197.         
  198.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  199.     }
  200.     public function getTemplateName()
  201.     {
  202.         return "Shopping/shipping.twig";
  203.     }
  204.     public function isTraitable()
  205.     {
  206.         return false;
  207.     }
  208.     public function getDebugInfo()
  209.     {
  210.         return array (  200 => 67,  196 => 66,  189 => 61,  179 => 57,  171 => 56,  165 => 55,  152 => 52,  150 => 51,  146 => 49,  143 => 48,  139 => 47,  134 => 45,  130 => 44,  126 => 42,  119 => 38,  115 => 37,  111 => 35,  108 => 34,  101 => 30,  97 => 29,  93 => 27,  85 => 25,  83 => 24,  72 => 16,  68 => 14,  58 => 13,  35 => 11,);
  211.     }
  212.     public function getSourceContext()
  213.     {
  214.         return new Source("{#
  215. This file is part of EC-CUBE
  216. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  217. http://www.ec-cube.co.jp/
  218. For the full copyright and license information, please view the LICENSE
  219. file that was distributed with this source code.
  220. #}
  221. {% extends 'default_frame.twig' %}
  222. {% block main %}
  223.     <div class=\"ec-role\">
  224.         <div class=\"ec-pageHeader\">
  225.             <h1>{{ 'お届け先の指定'|trans }}</h1>
  226.         </div>
  227.     </div>
  228.     <div class=\"ec-registerRole\">
  229.         <div class=\"ec-off1Grid\">
  230.             <div class=\"ec-off1Grid__cell\">
  231.                 <div class=\"ec-addressRole\">
  232.                     {% if Customer.CustomerAddresses|length < eccube_config.eccube_deliv_addr_max %}
  233.                         <div class=\"ec-addressRole__actions\"><a class=\"ec-inlineBtn\" href=\"{{ url('shopping_shipping_edit', {'id': shippingId}) }}\">{{ '新規お届け先を追加する'|trans }}</a></div>
  234.                     {% else %}
  235.                         <div class=\"ec-alert-warning\">
  236.                             <div class=\"ec-alert-warning__text\">
  237.                                 <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"/></div>
  238.                                 {{ 'お届け先登録の上限の%count%件に達しています。お届け先を入力したい場合は、削除か変更を行ってください。'|trans({ '%count%': eccube_config.eccube_deliv_addr_max }) }}
  239.                             </div>
  240.                         </div>
  241.                     {% endif %}
  242.                     {% if has_errors(form.addresses) %}
  243.                         <div class=\"ec-alert-warning\">
  244.                             <div class=\"ec-alert-warning__text\">
  245.                                 <div class=\"ec-alert-warning__icon\"><img src=\"{{ asset('assets/icon/exclamation-white.svg') }}\"/></div>
  246.                                 {{ 'お届け先を指定してください'|trans }}
  247.                             </div>
  248.                         </div>
  249.                     {% endif %}
  250.                 </div>
  251.                 <form method=\"post\" action=\"{{ url('shopping_shipping', {'id': shippingId}) }}\">
  252.                     {{ form_widget(form._token) }}
  253.                     <div class=\"ec-addressList\">
  254.                         {% for choice in form.addresses.vars.choices %}
  255.                             {% set Address = choice.data %}
  256.                         <div class=\"ec-addressList__item\">
  257.                             <div class=\"ec-addressList__remove\">
  258.                                 {% set checked = choice is selectedchoice(form.addresses.vars.value) ? 'checked=\"checked\"' : '' %}
  259.                                 <input type=\"radio\" id=\"address{{ choice.value }}\" name=\"{{ form.addresses.vars.full_name }}\" value=\"{{ choice.value }}\" {{ checked }} />
  260.                             </div>
  261.                             <div class=\"ec-addressList__address\">
  262.                                 <div>{{ Address.name01 }}&nbsp;{{ Address.name02 }}</div>
  263.                                 <div>〒{{ Address.postal_code }} {{ Address.Pref }}{{ Address.addr01 }}{{ Address.addr02 }}</div>
  264.                                 <div>{{ Address.phone_number }}</div>
  265.                             </div>
  266.                         </div>
  267.                         {% endfor %}
  268.                     </div>
  269.                     <div class=\"ec-registerRole__actions\">
  270.                         <div class=\"ec-off4Grid\">
  271.                             <div class=\"ec-off4Grid__cell\">
  272.                                 <button type=\"submit\" class=\"ec-blockBtn--action\">{{ '選択したお届け先に送る'|trans }}</button>
  273.                                 <a class=\"ec-blockBtn--cancel\" href=\"{{ url('shopping') }}\">{{ '戻る'|trans }}</a>
  274.                             </div>
  275.                         </div>
  276.                     </div>
  277.                 </form>
  278.             </div>
  279.         </div>
  280.     </div>
  281. {% endblock %}
  282. ""Shopping/shipping.twig""/home/daiwafood/www/ec/app/template/mizunasu/Shopping/shipping.twig");
  283.     }
  284. }