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

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.         // line 27
  61.         echo "    <script>
  62.         ";
  63.         // line 28
  64.         $context['_parent'] = $context;
  65.         $context['_seq'] = twig_ensure_traversable((isset($context["Schools"]) || array_key_exists("Schools"$context) ? $context["Schools"] : (function () { throw new RuntimeError('Variable "Schools" does not exist.'28$this->source); })()));
  66.         foreach ($context['_seq'] as $context["_key"] => $context["school"]) {
  67.             // line 29
  68.             echo "            \$('#School option[value=\"";
  69.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["school"], "school_id", [], "any"falsefalsetrue29), 29$this->source), "html"nulltrue);
  70.             echo "\"]').attr('data-key-visible', ";
  71.             echo ((twig_get_attribute($this->env$this->source$context["school"], "visible_school_key", [], "any"falsefalsetrue29)) ? (1) : (0));
  72.             echo ");
  73.         ";
  74.         }
  75.         $_parent $context['_parent'];
  76.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['school'], $context['_parent'], $context['loop']);
  77.         $context array_intersect_key($context$_parent) + $_parent;
  78.         // line 31
  79.         echo "        \$('#School').change(function(){
  80.             if(\$('option:selected', \$(this)).data('key-visible')) {
  81.                 \$('#top_box__name').show();
  82.             }
  83.             else {
  84.                 \$('#top_box__name').hide();
  85.             }
  86.         });
  87.         \$('#top_box__body').submit(function(){
  88.             \$('#top_box__name .form-group .error').remove();
  89.             if(\$('#top_box__name').is(\":visible\") && !\$('#school_key').val()) {
  90.                 \$('#top_box__name .form-group').append('<p class=\"red error\">入力してください</p>');
  91.                 return false;
  92.             }
  93.         });
  94.         // パスワード表示/非表示を切り替える関数
  95.         function togglePasswordVisibility(event) {
  96.             const parent = \$(event.target).closest('.password-wrap');
  97.             const eyeSlash = parent.find('.eye-slash-solid');
  98.             const eye = parent.find('.eye-solid');
  99.             const passwordInput = parent.find('.password-input');
  100.             // 表示/非表示を切り替える処理
  101.             eyeSlash.toggle();
  102.             eye.toggle();
  103.             passwordInput.attr('type', passwordInput.attr('type') === 'password' ? 'text' : 'password');
  104.         }
  105.         // イベントリスナーの設定
  106.         \$('.eye-slash-solid, .eye-solid').on('click', togglePasswordVisibility);
  107.         \$('.eye-solid').click();
  108.     </script>
  109. ";
  110.         
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  112.         
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  114.     }
  115.     // line 67
  116.     public function block_stylesheet($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  123.         // line 68
  124.         echo "<style>
  125. .input_School select{
  126.     width: 48% !important;
  127. }
  128. .password-wrap {
  129.     position: relative;
  130. }
  131. .password-wrap img {
  132.     position: absolute;
  133.     top: 50%;
  134.     right: 16px;
  135.     transform: translateY(-50%);
  136.     width: 15px;
  137. }
  138. .input_School select,
  139. input#school_key{
  140. \twidth: 100% !important;
  141. \t}
  142. a.forgot{
  143. \tcolor: #007EBE; 
  144. \ttext-decoration: underline; 
  145. \tfont-size:90%;
  146. \ttext-align:center;
  147. }
  148. @media only screen and (min-width: 768px){
  149. .input_School select,
  150. input#school_key{
  151. \twidth: 55% !important;
  152. \t}
  153. .password-wrap img {
  154. \tright: 48%;
  155. \t}
  156. }
  157. </style>
  158. ";
  159.         
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  161.         
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  163.     }
  164.     // line 104
  165.     public function block_main($context, array $blocks = [])
  166.     {
  167.         $macros $this->macros;
  168.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  169.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  171.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  172.         // line 105
  173.         echo "<h1 class=\"title_bar nikke\">学校情報認証</h1>
  174. <div id=\"top_wrap\" class=\"container-fluid\">
  175.     <div id=\"top_box\" class=\"row\">
  176.         <div id=\"top_box__body\" class=\"col-md-10 col-md-offset-1\">
  177.         ";
  178.         // line 110
  179.         if (((null === (isset($context["School"]) || array_key_exists("School"$context) ? $context["School"] : (function () { throw new RuntimeError('Variable "School" does not exist.'110$this->source); })())) || 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.'110$this->source); })()), "visible", [], "any"falsefalsetrue110))) {
  180.             // line 111
  181.             echo "            ";
  182.             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.'111$this->source); })())) {
  183.                 // line 112
  184.                 echo "                <p>※ 学校コードに該当していないので、ご確認お願い致します。</p>
  185.             ";
  186.             } else {
  187.                 // line 114
  188.                 echo "                <form method=\"post\" action=\"";
  189.                 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.'114$this->source); })())]), "html"nulltrue);
  190.                 echo "\">
  191.                     ";
  192.                 // line 116
  193.                 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.'116$this->source); })()), "_token", [], "any"falsefalsetrue116), 116$this->source), 'widget');
  194.                 echo "
  195.                     <div id=\"top_box__body_inner\" class=\"dl_table\">
  196.                         ";
  197.                 // line 118
  198.                 if ((null === (isset($context["School"]) || array_key_exists("School"$context) ? $context["School"] : (function () { throw new RuntimeError('Variable "School" does not exist.'118$this->source); })()))) {
  199.                     // line 119
  200.                     echo "                            <dl id=\"top_box__School\" class=\"entrybox_select_input\">
  201.                                 <dt>";
  202.                     // line 120
  203.                     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.'120$this->source); })()), "School", [], "any"falsefalsetrue120), 120$this->source), 'label');
  204.                     echo "</dt>
  205.                                 <dd class=\"form-group input_School\">
  206.                                     ";
  207.                     // line 122
  208.                     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.'122$this->source); })()), "School", [], "any"falsefalsetrue122), 122$this->source), 'widget');
  209.                     echo "
  210.                                     ";
  211.                     // line 123
  212.                     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.'123$this->source); })()), "School", [], "any"falsefalsetrue123), 123$this->source), 'errors');
  213.                     echo "
  214.                                 </dd>
  215.                             </dl>
  216.                         ";
  217.                 } else {
  218.                     // line 127
  219.                     echo "                            <dl id=\"top_box__kana\">
  220.                                 <dt></dt>
  221.                                 <dd class=\"form-group input_name\">
  222.                                     ";
  223.                     // line 130
  224.                     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.'130$this->source); })()), "school_name", [], "any"falsefalsetrue130), 130$this->source), "html"nulltrue);
  225.                     echo "
  226.                                 </dd>
  227.                             </dl>
  228.                         ";
  229.                 }
  230.                 // line 134
  231.                 echo "                        ";
  232.                 if (((isset($context["School"]) || array_key_exists("School"$context) ? $context["School"] : (function () { throw new RuntimeError('Variable "School" does not exist.'134$this->source); })()) && (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.'134$this->source); })()), "visible_school_key", [], "any"falsefalsetrue134) != 1))) {
  233.                     // line 135
  234.                     echo "                            <div style=\"display:none\">
  235.                                 ";
  236.                     // line 136
  237.                     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.'136$this->source); })()), "school_key", [], "any"falsefalsetrue136), 136$this->source), 'widget', ["attr" => ["value" => 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.'136$this->source); })()), "school_key", [], "any"falsefalsetrue136)]]);
  238.                     echo "
  239.                                 ";
  240.                     // line 137
  241.                     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.'137$this->source); })()), "school_key", [], "any"falsefalsetrue137), 137$this->source), 'errors');
  242.                     echo "
  243.                             </div>
  244.                         ";
  245.                 } else {
  246.                     // line 140
  247.                     echo "                            <dl id=\"top_box__name\" class=\"entrybox_select_input\">
  248.                                 <dt><label>学校キー</label></dt>
  249.                                 <dd class=\"form-group password-wrap\">
  250.                                     ";
  251.                     // line 143
  252.                     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.'143$this->source); })()), "school_key", [], "any"falsefalsetrue143), 143$this->source), 'widget', ["attr" => ["class" => "password-input"]]);
  253.                     echo "
  254.                                     ";
  255.                     // line 144
  256.                     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.'144$this->source); })()), "school_key", [], "any"falsefalsetrue144), 144$this->source), 'errors');
  257.                     echo "
  258.                                     <img class=\"eye-slash-solid\" src=\"";
  259.                     // line 145
  260.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/eye-slash-solid.svg"), "html"nulltrue);
  261.                     echo "\">
  262.                                     <img class=\"eye-solid\" src=\"";
  263.                     // line 146
  264.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/eye-solid.svg"), "html"nulltrue);
  265.                     echo "\" style=\"display: none;\">
  266.                                     ";
  267.                     // line 147
  268.                     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.'147$this->source); })()) == 1)) {
  269.                         // line 148
  270.                         echo "                                    <span>※認証に失敗しました。</span>
  271.                                     ";
  272.                     }
  273.                     // line 150
  274.                     echo "                                </dd>
  275.                             </dl>
  276.                         ";
  277.                 }
  278.                 // line 153
  279.                 echo "                        <input id=\"top_box__hidden_mode\" type=\"hidden\" name=\"mode\" value=\"certify\">
  280.                     </div>
  281.                     <div id=\"top_box__footer\" class=\"row no-padding\">
  282.                         <div id=\"top_box__button_menu\" class=\"btn_group col-sm-offset-4 col-sm-4\">
  283.                             <p>
  284.                                 <button type=\"submit\" class=\"btn btn-primary btn-block def_btn ya radius1\">生徒情報の登録へ</button>
  285.                             </p>
  286. \t\t\t\t<p>
  287. \t\t\t\t\t<a class=\"def_btn ya radius1 color05\" href=\"";
  288.                 // line 162
  289.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  290.                 echo "\">会員登録済みの方はこちら</a>
  291. \t\t\t\t</p>
  292.                         </div>
  293.                     </div>
  294.                 </form>
  295.             ";
  296.             }
  297.             // line 168
  298.             echo "        ";
  299.         } else {
  300.             // line 169
  301.             echo "            <p style=\"text-align: center\">この学校URLは現在非公開となっています。</p>
  302.         ";
  303.         }
  304.         // line 171
  305.         echo "        </div>
  306.         <!-- /.col -->
  307.     </div>
  308.     <!-- /.row -->
  309. </div>
  310. ";
  311.         
  312.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  313.         
  314.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  315.     }
  316.     public function getTemplateName()
  317.     {
  318.         return "Entry/school_certification.twig";
  319.     }
  320.     public function isTraitable()
  321.     {
  322.         return false;
  323.     }
  324.     public function getDebugInfo()
  325.     {
  326.         return array (  336 => 171,  332 => 169,  329 => 168,  320 => 162,  309 => 153,  304 => 150,  300 => 148,  298 => 147,  294 => 146,  290 => 145,  286 => 144,  282 => 143,  277 => 140,  271 => 137,  267 => 136,  264 => 135,  261 => 134,  254 => 130,  249 => 127,  242 => 123,  238 => 122,  233 => 120,  230 => 119,  228 => 118,  223 => 116,  217 => 114,  213 => 112,  210 => 111,  208 => 110,  201 => 105,  191 => 104,  147 => 68,  137 => 67,  93 => 31,  82 => 29,  78 => 28,  75 => 27,  65 => 26,  54 => 22,  52 => 24,  39 => 22,);
  327.     }
  328.     public function getSourceContext()
  329.     {
  330.         return new Source("{#
  331. This file is part of EC-CUBE
  332. Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
  333. http://www.lockon.co.jp/
  334. This program is free software; you can redistribute it and/or
  335. modify it under the terms of the GNU General Public License
  336. as published by the Free Software Foundation; either version 2
  337. of the License, or (at your option) any later version.
  338. This program is distributed in the hope that it will be useful,
  339. but WITHOUT ANY WARRANTY; without even the implied warranty of
  340. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  341. GNU General Public License for more details.
  342. You should have received a copy of the GNU General Public License
  343. along with this program; if not, write to the Free Software
  344. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  345. #}
  346. {% extends 'default_frame.twig' %}
  347. {% set body_class = 'registration_page' %}
  348. {% block javascript %}
  349.     <script>
  350.         {% for school in Schools %}
  351.             \$('#School option[value=\"{{ school.school_id }}\"]').attr('data-key-visible', {{ school.visible_school_key ? 1 : 0 }});
  352.         {% endfor %}
  353.         \$('#School').change(function(){
  354.             if(\$('option:selected', \$(this)).data('key-visible')) {
  355.                 \$('#top_box__name').show();
  356.             }
  357.             else {
  358.                 \$('#top_box__name').hide();
  359.             }
  360.         });
  361.         \$('#top_box__body').submit(function(){
  362.             \$('#top_box__name .form-group .error').remove();
  363.             if(\$('#top_box__name').is(\":visible\") && !\$('#school_key').val()) {
  364.                 \$('#top_box__name .form-group').append('<p class=\"red error\">入力してください</p>');
  365.                 return false;
  366.             }
  367.         });
  368.         // パスワード表示/非表示を切り替える関数
  369.         function togglePasswordVisibility(event) {
  370.             const parent = \$(event.target).closest('.password-wrap');
  371.             const eyeSlash = parent.find('.eye-slash-solid');
  372.             const eye = parent.find('.eye-solid');
  373.             const passwordInput = parent.find('.password-input');
  374.             // 表示/非表示を切り替える処理
  375.             eyeSlash.toggle();
  376.             eye.toggle();
  377.             passwordInput.attr('type', passwordInput.attr('type') === 'password' ? 'text' : 'password');
  378.         }
  379.         // イベントリスナーの設定
  380.         \$('.eye-slash-solid, .eye-solid').on('click', togglePasswordVisibility);
  381.         \$('.eye-solid').click();
  382.     </script>
  383. {% endblock javascript %}
  384. {% block stylesheet %}
  385. <style>
  386. .input_School select{
  387.     width: 48% !important;
  388. }
  389. .password-wrap {
  390.     position: relative;
  391. }
  392. .password-wrap img {
  393.     position: absolute;
  394.     top: 50%;
  395.     right: 16px;
  396.     transform: translateY(-50%);
  397.     width: 15px;
  398. }
  399. .input_School select,
  400. input#school_key{
  401. \twidth: 100% !important;
  402. \t}
  403. a.forgot{
  404. \tcolor: #007EBE; 
  405. \ttext-decoration: underline; 
  406. \tfont-size:90%;
  407. \ttext-align:center;
  408. }
  409. @media only screen and (min-width: 768px){
  410. .input_School select,
  411. input#school_key{
  412. \twidth: 55% !important;
  413. \t}
  414. .password-wrap img {
  415. \tright: 48%;
  416. \t}
  417. }
  418. </style>
  419. {% endblock stylesheet %}
  420. {% block main %}
  421. <h1 class=\"title_bar nikke\">学校情報認証</h1>
  422. <div id=\"top_wrap\" class=\"container-fluid\">
  423.     <div id=\"top_box\" class=\"row\">
  424.         <div id=\"top_box__body\" class=\"col-md-10 col-md-offset-1\">
  425.         {% if School is null or School.visible %}
  426.             {% if school_not_found %}
  427.                 <p>※ 学校コードに該当していないので、ご確認お願い致します。</p>
  428.             {% else %}
  429.                 <form method=\"post\" action=\"{{ url('entry', { gcd : gcd }) }}\">
  430.                     {{ form_widget(form._token) }}
  431.                     <div id=\"top_box__body_inner\" class=\"dl_table\">
  432.                         {% if School is null %}
  433.                             <dl id=\"top_box__School\" class=\"entrybox_select_input\">
  434.                                 <dt>{{ form_label(form.School) }}</dt>
  435.                                 <dd class=\"form-group input_School\">
  436.                                     {{ form_widget(form.School) }}
  437.                                     {{ form_errors(form.School) }}
  438.                                 </dd>
  439.                             </dl>
  440.                         {% else %}
  441.                             <dl id=\"top_box__kana\">
  442.                                 <dt></dt>
  443.                                 <dd class=\"form-group input_name\">
  444.                                     {{ School.school_name }}
  445.                                 </dd>
  446.                             </dl>
  447.                         {% endif %}
  448.                         {% if School and School.visible_school_key != 1 %}
  449.                             <div style=\"display:none\">
  450.                                 {{ form_widget(form.school_key, {'attr': {'value': School.school_key}}) }}
  451.                                 {{ form_errors(form.school_key) }}
  452.                             </div>
  453.                         {% else %}
  454.                             <dl id=\"top_box__name\" class=\"entrybox_select_input\">
  455.                                 <dt><label>学校キー</label></dt>
  456.                                 <dd class=\"form-group password-wrap\">
  457.                                     {{ form_widget(form.school_key, {attr : {class : 'password-input'}}) }}
  458.                                     {{ form_errors(form.school_key) }}
  459.                                     <img class=\"eye-slash-solid\" src=\"{{ asset('assets/icon/eye-slash-solid.svg') }}\">
  460.                                     <img class=\"eye-solid\" src=\"{{ asset('assets/icon/eye-solid.svg') }}\" style=\"display: none;\">
  461.                                     {% if certification_error_flg == 1 %}
  462.                                     <span>※認証に失敗しました。</span>
  463.                                     {% endif %}
  464.                                 </dd>
  465.                             </dl>
  466.                         {% endif %}
  467.                         <input id=\"top_box__hidden_mode\" type=\"hidden\" name=\"mode\" value=\"certify\">
  468.                     </div>
  469.                     <div id=\"top_box__footer\" class=\"row no-padding\">
  470.                         <div id=\"top_box__button_menu\" class=\"btn_group col-sm-offset-4 col-sm-4\">
  471.                             <p>
  472.                                 <button type=\"submit\" class=\"btn btn-primary btn-block def_btn ya radius1\">生徒情報の登録へ</button>
  473.                             </p>
  474. \t\t\t\t<p>
  475. \t\t\t\t\t<a class=\"def_btn ya radius1 color05\" href=\"{{ url('mypage_login') }}\">会員登録済みの方はこちら</a>
  476. \t\t\t\t</p>
  477.                         </div>
  478.                     </div>
  479.                 </form>
  480.             {% endif %}
  481.         {% else %}
  482.             <p style=\"text-align: center\">この学校URLは現在非公開となっています。</p>
  483.         {% endif %}
  484.         </div>
  485.         <!-- /.col -->
  486.     </div>
  487.     <!-- /.row -->
  488. </div>
  489. {% endblock %}""Entry/school_certification.twig""/home/nmmito01/mu-ecshop.com/public_html/app/template/unishop/Entry/school_certification.twig");
  490.     }
  491.     
  492.     public function checkSecurity()
  493.     {
  494.         static $tags = array("set" => 24"for" => 28"if" => 110);
  495.         static $filters = array("escape" => 29);
  496.         static $functions = array("url" => 114"form_widget" => 116"form_label" => 120"form_errors" => 123"asset" => 145);
  497.         try {
  498.             $this->sandbox->checkSecurity(
  499.                 ['set''for''if'],
  500.                 ['escape'],
  501.                 ['url''form_widget''form_label''form_errors''asset']
  502.             );
  503.         } catch (SecurityError $e) {
  504.             $e->setSourceContext($this->source);
  505.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  506.                 $e->setTemplateLine($tags[$e->getTagName()]);
  507.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  508.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  509.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  510.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  511.             }
  512.             throw $e;
  513.         }
  514.     }
  515. }