var/cache/dev/twig/f9/f9e16e31879776e24b25281e0bd30058.php line 55

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. /* Entry/school_certification.twig */
  14. class __TwigTemplate_d80ac9515890670e3e304d88eb93f3eb extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'stylesheet' => [$this'block_stylesheet'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 22
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Entry/school_certification.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Entry/school_certification.twig"));
  42.         // line 24
  43.         $context["body_class"] = "registration_page";
  44.         // line 22
  45.         $this->parent $this->loadTemplate("default_frame.twig""Entry/school_certification.twig"22);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 26
  53.     public function block_javascript($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  60.         
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62.         
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64.     }
  65.     // line 29
  66.     public function block_stylesheet($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  73.         // line 30
  74.         echo "<style>
  75. .input_School select{
  76.     width: 48% !important;
  77. }
  78. </style>
  79. ";
  80.         
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  82.         
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  84.     }
  85.     // line 37
  86.     public function block_main($context, array $blocks = [])
  87.     {
  88.         $macros $this->macros;
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  93.         // line 38
  94.         echo "<h1 class=\"title_bar nikke\">学校情報認証</h1>
  95. <div id=\"top_wrap\" class=\"container-fluid\">
  96.     <div id=\"top_box\" class=\"row\">
  97.         <div id=\"top_box__body\" class=\"col-md-10 col-md-offset-1\">
  98.         ";
  99.         // line 43
  100.         if ((isset($context["school_not_found"]) || array_key_exists("school_not_found"$context) ? $context["school_not_found"] : (function () { throw new RuntimeError('Variable "school_not_found" does not exist.'43$this->source); })())) {
  101.             // line 44
  102.             echo "            <p>※ 学校コードに該当していないので、ご確認お願い致します。</p>
  103.         ";
  104.         } else {
  105.             // line 46
  106.             echo "            <form method=\"post\" action=\"";
  107.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry", ["gcd" => (isset($context["gcd"]) || array_key_exists("gcd"$context) ? $context["gcd"] : (function () { throw new RuntimeError('Variable "gcd" does not exist.'46$this->source); })())]), "html"nulltrue);
  108.             echo "\">
  109.                \t";
  110.             // line 48
  111.             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.'48$this->source); })()), "_token", [], "any"falsefalsetrue48), 48$this->source), 'widget');
  112.             echo "
  113.                 <div id=\"top_box__body_inner\" class=\"dl_table\">
  114.                     ";
  115.             // line 50
  116.             if ((null === (isset($context["School"]) || array_key_exists("School"$context) ? $context["School"] : (function () { throw new RuntimeError('Variable "School" does not exist.'50$this->source); })()))) {
  117.                 // line 51
  118.                 echo "                        <dl id=\"top_box__School\">
  119.                             <dt>";
  120.                 // line 52
  121.                 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.'52$this->source); })()), "School", [], "any"falsefalsetrue52), 52$this->source), 'label');
  122.                 echo "</dt>
  123.                             <dd class=\"form-group input_School\">
  124.                                 ";
  125.                 // line 54
  126.                 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.'54$this->source); })()), "School", [], "any"falsefalsetrue54), 54$this->source), 'widget');
  127.                 echo "
  128.                                 ";
  129.                 // line 55
  130.                 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.'55$this->source); })()), "School", [], "any"falsefalsetrue55), 55$this->source), 'errors');
  131.                 echo "
  132.                             </dd>
  133.                         </dl>
  134.                     ";
  135.             } else {
  136.                 // line 59
  137.                 echo "                        <dl id=\"top_box__kana\">
  138.                             <dt></dt>
  139.                             <dd class=\"form-group input_name\">
  140.                                 ";
  141.                 // line 62
  142.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["School"]) || array_key_exists("School"$context) ? $context["School"] : (function () { throw new RuntimeError('Variable "School" does not exist.'62$this->source); })()), "school_name", [], "any"falsefalsetrue62), 62$this->source), "html"nulltrue);
  143.                 echo "
  144.                             </dd>
  145.                         </dl>
  146.                     ";
  147.             }
  148.             // line 66
  149.             echo "                    <dl id=\"top_box__name\">
  150.                         <dt></dt>
  151.                         <dd class=\"form-group input_name\">
  152.                             ";
  153.             // line 69
  154.             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.'69$this->source); })()), "school_key", [], "any"falsefalsetrue69), 69$this->source), 'widget');
  155.             echo "
  156.                             ";
  157.             // line 70
  158.             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.'70$this->source); })()), "school_key", [], "any"falsefalsetrue70), 70$this->source), 'errors');
  159.             echo "
  160.                             ";
  161.             // line 71
  162.             if (((isset($context["certification_error_flg"]) || array_key_exists("certification_error_flg"$context) ? $context["certification_error_flg"] : (function () { throw new RuntimeError('Variable "certification_error_flg" does not exist.'71$this->source); })()) == 1)) {
  163.                 // line 72
  164.                 echo "                            <span>※認証に失敗しました。</span>
  165.                             ";
  166.             }
  167.             // line 74
  168.             echo "                        </dd>
  169.                     </dl>
  170.                     <input id=\"top_box__hidden_mode\" type=\"hidden\" name=\"mode\" value=\"certify\">
  171.                 </div>
  172.                 <div id=\"top_box__footer\" class=\"row no-padding\">
  173.                     <div id=\"top_box__button_menu\" class=\"btn_group col-sm-offset-4 col-sm-4\">
  174.                         <p>
  175.                             <button type=\"submit\" class=\"btn btn-primary btn-block def_btn ya radius1\">生徒情報の登録へ</button>
  176.                         </p>
  177.                     </div>
  178.                 </div>
  179.             </form>
  180.         ";
  181.         }
  182.         // line 88
  183.         echo "        </div>
  184.         <!-- /.col -->
  185.     </div>
  186.     <!-- /.row -->
  187. </div>
  188. ";
  189.         
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  191.         
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  193.     }
  194.     public function getTemplateName()
  195.     {
  196.         return "Entry/school_certification.twig";
  197.     }
  198.     public function isTraitable()
  199.     {
  200.         return false;
  201.     }
  202.     public function getDebugInfo()
  203.     {
  204.         return array (  210 => 88,  194 => 74,  190 => 72,  188 => 71,  184 => 70,  180 => 69,  175 => 66,  168 => 62,  163 => 59,  156 => 55,  152 => 54,  147 => 52,  144 => 51,  142 => 50,  137 => 48,  131 => 46,  127 => 44,  125 => 43,  118 => 38,  108 => 37,  93 => 30,  83 => 29,  65 => 26,  54 => 22,  52 => 24,  39 => 22,);
  205.     }
  206.     public function getSourceContext()
  207.     {
  208.         return new Source("{#
  209. This file is part of EC-CUBE
  210. Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
  211. http://www.lockon.co.jp/
  212. This program is free software; you can redistribute it and/or
  213. modify it under the terms of the GNU General Public License
  214. as published by the Free Software Foundation; either version 2
  215. of the License, or (at your option) any later version.
  216. This program is distributed in the hope that it will be useful,
  217. but WITHOUT ANY WARRANTY; without even the implied warranty of
  218. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  219. GNU General Public License for more details.
  220. You should have received a copy of the GNU General Public License
  221. along with this program; if not, write to the Free Software
  222. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  223. #}
  224. {% extends 'default_frame.twig' %}
  225. {% set body_class = 'registration_page' %}
  226. {% block javascript %}
  227. {% endblock javascript %}
  228. {% block stylesheet %}
  229. <style>
  230. .input_School select{
  231.     width: 48% !important;
  232. }
  233. </style>
  234. {% endblock stylesheet %}
  235. {% block main %}
  236. <h1 class=\"title_bar nikke\">学校情報認証</h1>
  237. <div id=\"top_wrap\" class=\"container-fluid\">
  238.     <div id=\"top_box\" class=\"row\">
  239.         <div id=\"top_box__body\" class=\"col-md-10 col-md-offset-1\">
  240.         {% if school_not_found %}
  241.             <p>※ 学校コードに該当していないので、ご確認お願い致します。</p>
  242.         {% else %}
  243.             <form method=\"post\" action=\"{{ url('entry', { gcd : gcd }) }}\">
  244.                \t{{ form_widget(form._token) }}
  245.                 <div id=\"top_box__body_inner\" class=\"dl_table\">
  246.                     {% if School is null %}
  247.                         <dl id=\"top_box__School\">
  248.                             <dt>{{ form_label(form.School) }}</dt>
  249.                             <dd class=\"form-group input_School\">
  250.                                 {{ form_widget(form.School) }}
  251.                                 {{ form_errors(form.School) }}
  252.                             </dd>
  253.                         </dl>
  254.                     {% else %}
  255.                         <dl id=\"top_box__kana\">
  256.                             <dt></dt>
  257.                             <dd class=\"form-group input_name\">
  258.                                 {{ School.school_name }}
  259.                             </dd>
  260.                         </dl>
  261.                     {% endif %}
  262.                     <dl id=\"top_box__name\">
  263.                         <dt></dt>
  264.                         <dd class=\"form-group input_name\">
  265.                             {{ form_widget(form.school_key) }}
  266.                             {{ form_errors(form.school_key) }}
  267.                             {% if certification_error_flg == 1 %}
  268.                             <span>※認証に失敗しました。</span>
  269.                             {% endif %}
  270.                         </dd>
  271.                     </dl>
  272.                     <input id=\"top_box__hidden_mode\" type=\"hidden\" name=\"mode\" value=\"certify\">
  273.                 </div>
  274.                 <div id=\"top_box__footer\" class=\"row no-padding\">
  275.                     <div id=\"top_box__button_menu\" class=\"btn_group col-sm-offset-4 col-sm-4\">
  276.                         <p>
  277.                             <button type=\"submit\" class=\"btn btn-primary btn-block def_btn ya radius1\">生徒情報の登録へ</button>
  278.                         </p>
  279.                     </div>
  280.                 </div>
  281.             </form>
  282.         {% endif %}
  283.         </div>
  284.         <!-- /.col -->
  285.     </div>
  286.     <!-- /.row -->
  287. </div>
  288. {% endblock %}""Entry/school_certification.twig""/home/nmiwakim01/seifuku-kimpara.com/public_html/app/template/unishop/Entry/school_certification.twig");
  289.     }
  290.     
  291.     public function checkSecurity()
  292.     {
  293.         static $tags = array("set" => 24"if" => 43);
  294.         static $filters = array("escape" => 46);
  295.         static $functions = array("url" => 46"form_widget" => 48"form_label" => 52"form_errors" => 55);
  296.         try {
  297.             $this->sandbox->checkSecurity(
  298.                 ['set''if'],
  299.                 ['escape'],
  300.                 ['url''form_widget''form_label''form_errors']
  301.             );
  302.         } catch (SecurityError $e) {
  303.             $e->setSourceContext($this->source);
  304.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  305.                 $e->setTemplateLine($tags[$e->getTagName()]);
  306.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  307.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  308.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  309.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  310.             }
  311.             throw $e;
  312.         }
  313.     }
  314. }