<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Entry/school_certification.twig */
class __TwigTemplate_d80ac9515890670e3e304d88eb93f3eb extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 22
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Entry/school_certification.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Entry/school_certification.twig"));
// line 24
$context["body_class"] = "registration_page";
// line 22
$this->parent = $this->loadTemplate("default_frame.twig", "Entry/school_certification.twig", 22);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 26
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 29
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 30
echo "<style>
.input_School select{
width: 48% !important;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 37
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 38
echo "<h1 class=\"title_bar nikke\">学校情報認証</h1>
<div id=\"top_wrap\" class=\"container-fluid\">
<div id=\"top_box\" class=\"row\">
<div id=\"top_box__body\" class=\"col-md-10 col-md-offset-1\">
";
// line 43
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); })())) {
// line 44
echo " <p>※ 学校コードに該当していないので、ご確認お願い致します。</p>
";
} else {
// line 46
echo " <form method=\"post\" action=\"";
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", null, true);
echo "\">
\t";
// line 48
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", false, false, true, 48), 48, $this->source), 'widget');
echo "
<div id=\"top_box__body_inner\" class=\"dl_table\">
";
// line 50
if ((null === (isset($context["School"]) || array_key_exists("School", $context) ? $context["School"] : (function () { throw new RuntimeError('Variable "School" does not exist.', 50, $this->source); })()))) {
// line 51
echo " <dl id=\"top_box__School\">
<dt>";
// line 52
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", false, false, true, 52), 52, $this->source), 'label');
echo "</dt>
<dd class=\"form-group input_School\">
";
// line 54
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", false, false, true, 54), 54, $this->source), 'widget');
echo "
";
// line 55
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", false, false, true, 55), 55, $this->source), 'errors');
echo "
</dd>
</dl>
";
} else {
// line 59
echo " <dl id=\"top_box__kana\">
<dt></dt>
<dd class=\"form-group input_name\">
";
// line 62
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", false, false, true, 62), 62, $this->source), "html", null, true);
echo "
</dd>
</dl>
";
}
// line 66
echo " <dl id=\"top_box__name\">
<dt></dt>
<dd class=\"form-group input_name\">
";
// line 69
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", false, false, true, 69), 69, $this->source), 'widget');
echo "
";
// line 70
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", false, false, true, 70), 70, $this->source), 'errors');
echo "
";
// line 71
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)) {
// line 72
echo " <span>※認証に失敗しました。</span>
";
}
// line 74
echo " </dd>
</dl>
<input id=\"top_box__hidden_mode\" type=\"hidden\" name=\"mode\" value=\"certify\">
</div>
<div id=\"top_box__footer\" class=\"row no-padding\">
<div id=\"top_box__button_menu\" class=\"btn_group col-sm-offset-4 col-sm-4\">
<p>
<button type=\"submit\" class=\"btn btn-primary btn-block def_btn ya radius1\">生徒情報の登録へ</button>
</p>
</div>
</div>
</form>
";
}
// line 88
echo " </div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Entry/school_certification.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
http://www.lockon.co.jp/
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'registration_page' %}
{% block javascript %}
{% endblock javascript %}
{% block stylesheet %}
<style>
.input_School select{
width: 48% !important;
}
</style>
{% endblock stylesheet %}
{% block main %}
<h1 class=\"title_bar nikke\">学校情報認証</h1>
<div id=\"top_wrap\" class=\"container-fluid\">
<div id=\"top_box\" class=\"row\">
<div id=\"top_box__body\" class=\"col-md-10 col-md-offset-1\">
{% if school_not_found %}
<p>※ 学校コードに該当していないので、ご確認お願い致します。</p>
{% else %}
<form method=\"post\" action=\"{{ url('entry', { gcd : gcd }) }}\">
\t{{ form_widget(form._token) }}
<div id=\"top_box__body_inner\" class=\"dl_table\">
{% if School is null %}
<dl id=\"top_box__School\">
<dt>{{ form_label(form.School) }}</dt>
<dd class=\"form-group input_School\">
{{ form_widget(form.School) }}
{{ form_errors(form.School) }}
</dd>
</dl>
{% else %}
<dl id=\"top_box__kana\">
<dt></dt>
<dd class=\"form-group input_name\">
{{ School.school_name }}
</dd>
</dl>
{% endif %}
<dl id=\"top_box__name\">
<dt></dt>
<dd class=\"form-group input_name\">
{{ form_widget(form.school_key) }}
{{ form_errors(form.school_key) }}
{% if certification_error_flg == 1 %}
<span>※認証に失敗しました。</span>
{% endif %}
</dd>
</dl>
<input id=\"top_box__hidden_mode\" type=\"hidden\" name=\"mode\" value=\"certify\">
</div>
<div id=\"top_box__footer\" class=\"row no-padding\">
<div id=\"top_box__button_menu\" class=\"btn_group col-sm-offset-4 col-sm-4\">
<p>
<button type=\"submit\" class=\"btn btn-primary btn-block def_btn ya radius1\">生徒情報の登録へ</button>
</p>
</div>
</div>
</form>
{% endif %}
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
{% endblock %}", "Entry/school_certification.twig", "/home/nmiwakim01/seifuku-kimpara.com/public_html/app/template/unishop/Entry/school_certification.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 24, "if" => 43);
static $filters = array("escape" => 46);
static $functions = array("url" => 46, "form_widget" => 48, "form_label" => 52, "form_errors" => 55);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['escape'],
['url', 'form_widget', 'form_label', 'form_errors']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}