<?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;
/* login/index.html.twig */
class __TwigTemplate_71d1f35d1a2076ab4639b160afca5b581582fff0fbea82a4ff0ec86e19108f7b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'header' => [$this, 'block_header'],
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "login/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "login/index.html.twig"));
// line 2
$macros["web_macro"] = $this->macros["web_macro"] = $this->loadTemplate("macro.html.twig", "login/index.html.twig", 2)->unwrap();
// line 3
$this->extensions['Codeages\PluginBundle\Twig\HtmlExtension']->script(["libs/jquery-validation.js", "app/js/auth/login/index.js", "app/js/header/index.js"]);
// line 12
$context["bodyClass"] = "login index_bg";
// line 14
$context["position_code"] = 1;
// line 1
$this->parent = $this->loadTemplate("layout.html.twig", "login/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 5
public function block_header($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 6
echo " ";
$this->loadTemplate("@CorporateTraining/site-hint.html.twig", "login/index.html.twig", 6)->display($context);
// line 7
echo " ";
if ((0 === twig_compare((((isset($context["liveLogin"]) || array_key_exists("liveLogin", $context))) ? (_twig_default_filter((isset($context["liveLogin"]) || array_key_exists("liveLogin", $context) ? $context["liveLogin"] : (function () { throw new RuntimeError('Variable "liveLogin" does not exist.', 7, $this->source); })()), 0)) : (0)), 0))) {
// line 8
echo " ";
$this->loadTemplate("@CorporateTraining/login/login-background.html.twig", "login/index.html.twig", 8)->display($context);
// line 9
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.content_title"), "html", null, true);
echo " - ";
$this->displayParentBlock("title", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 15
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 16
echo " ";
$context["block"] = $this->extensions['AppBundle\Twig\DataExtension']->getData("Block", ["code" => "jianmo:login_position"]);
// line 17
echo "
";
// line 18
$context["sectionClass"] = "";
// line 19
echo " ";
if ((($this->extensions['AppBundle\Twig\WebExtension']->getSetting("login_bind.enabled") && ($this->extensions['AppBundle\Twig\WebExtension']->getSetting("login_bind.weixinweb_enabled") || $this->extensions['AppBundle\Twig\WebExtension']->getSetting("login_bind.dingtalkweb_enabled"))) || ($this->extensions['AppBundle\Twig\WebExtension']->getSetting("sync_department_setting.enable") && !(0 === twig_compare($this->extensions['AppBundle\Twig\WebExtension']->getSetting("sync_department_setting.type"), "LDAP"))))) {
// line 20
echo " ";
$context["sectionClass"] = "login-third-party";
// line 21
echo " ";
$context["loginThird"] = 1;
// line 22
echo " ";
}
// line 23
echo "
";
// line 24
if ((( !$this->extensions['AppBundle\Twig\WebExtension']->getSetting("login_bind.only_third_party_login") || (((isset($context["isMayday"]) || array_key_exists("isMayday", $context))) ? (_twig_default_filter((isset($context["isMayday"]) || array_key_exists("isMayday", $context) ? $context["isMayday"] : (function () { throw new RuntimeError('Variable "isMayday" does not exist.', 24, $this->source); })()), 0)) : (0))) && $this->extensions['AppBundle\Twig\WebExtension']->getSetting("login_bind.mobile_login"))) {
// line 25
echo " ";
$context["mobile_login_show"] = 1;
// line 26
echo " ";
} else {
// line 27
echo " ";
$context["mobile_login_show"] = 0;
// line 28
echo " ";
}
// line 29
echo "
";
// line 30
if (((0 === twig_compare((isset($context["mobile_login_show"]) || array_key_exists("mobile_login_show", $context) ? $context["mobile_login_show"] : (function () { throw new RuntimeError('Variable "mobile_login_show" does not exist.', 30, $this->source); })()), 1)) && (0 === twig_compare((((isset($context["loginThird"]) || array_key_exists("loginThird", $context))) ? (_twig_default_filter((isset($context["loginThird"]) || array_key_exists("loginThird", $context) ? $context["loginThird"] : (function () { throw new RuntimeError('Variable "loginThird" does not exist.', 30, $this->source); })()), 0)) : (0)), 1)))) {
// line 31
echo " ";
$context["sectionClass"] = "login-third-mobile";
// line 32
echo " ";
}
// line 33
echo "
";
// line 34
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "cookies", [], "any", false, false, false, 34), "get", ["modalOpened"], "method", false, false, false, 34), 1))) {
// line 35
echo " <a href=\"#modal\" class=\" hidden\" data-toggle=\"modal\"
data-url=\"";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("card_info", ["cardType" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 36, $this->source); })()), "request", [], "any", false, false, false, 36), "query", [], "any", false, false, false, 36), "get", ["cardType"], "method", false, false, false, 36), "cardId" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 36, $this->source); })()), "request", [], "any", false, false, false, 36), "query", [], "any", false, false, false, 36), "get", ["cardId"], "method", false, false, false, 36)]), "html", null, true);
echo "\"
class=\"hidden\"><span class=\"receive-modal\"></span></a>
";
}
// line 39
echo " <div class=\"login-container\" data-code=";
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("site.loginPosition"), "center"), "html", null, true);
echo ">
<div class=\"es-section login-section login-write-info ";
// line 40
echo twig_escape_filter($this->env, (isset($context["sectionClass"]) || array_key_exists("sectionClass", $context) ? $context["sectionClass"] : (function () { throw new RuntimeError('Variable "sectionClass" does not exist.', 40, $this->source); })()), "html", null, true);
echo " mbm\">
";
// line 41
if ($this->extensions['AppBundle\Twig\WebExtension']->getSetting("site.loginLogo")) {
// line 42
echo " <div class=\"login-logo-wrap text-center\">
<img class=\"login-logo\" src=\"";
// line 43
echo twig_escape_filter($this->env, $this->extensions['AppBundle\Twig\WebExtension']->getFpath(("../" . $this->extensions['AppBundle\Twig\WebExtension']->getSetting("site.loginLogo")), ""), "html", null, true);
echo "\">
</div>
";
} else {
// line 46
echo " <div class=\"login-logo-wrap text-center\">
<img class=\"login-logo\" src=\"/assets/img/logo/login_logo.png\">
</div>
";
}
// line 50
echo " <div class=\"login-main\">
";
// line 51
if ((((isset($context["mobile_login_show"]) || array_key_exists("mobile_login_show", $context))) ? (_twig_default_filter((isset($context["mobile_login_show"]) || array_key_exists("mobile_login_show", $context) ? $context["mobile_login_show"] : (function () { throw new RuntimeError('Variable "mobile_login_show" does not exist.', 51, $this->source); })()), 0)) : (0))) {
// line 52
echo " <ul class=\"login-nav login-nav-tabs\" role=\"tablist\">
<li class=\"js-tab-link active \" data-index=\"0\" role=\"presentation\"><a href=\"javascript:;\">";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.password_type"), "html", null, true);
echo "</a></li>
<li class=\"js-tab-link\" data-index=\"1\" role=\"presentation\"><a href=\"javascript:;\">";
// line 54
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.mobile_type"), "html", null, true);
echo "</a></li>
</ul>
";
}
// line 57
echo " <form id=\"login-form\" class=\"form-vertical\" method=\"post\" action=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_check");
echo "\">
";
// line 58
if (( !$this->extensions['AppBundle\Twig\WebExtension']->getSetting("login_bind.only_third_party_login") || (((isset($context["isMayday"]) || array_key_exists("isMayday", $context))) ? (_twig_default_filter((isset($context["isMayday"]) || array_key_exists("isMayday", $context) ? $context["isMayday"] : (function () { throw new RuntimeError('Variable "isMayday" does not exist.', 58, $this->source); })()), 0)) : (0)))) {
// line 60
echo " <div class=\"alert alert-danger alert-danger-position\">
";
// line 66
echo " </div>
";
// line 68
echo " ";
// line 69
echo " <div class=\"form-group mbl\">
<label class=\"control-label hidden\" for=\"login_username\">";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.account_label"), "html", null, true);
echo "</label>
<div class=\"controls input-icon-wrap\">
<i class=\"es-icon es-icon-my\"></i>
<input class=\"form-control input-md input-md-style\" id=\"login_username\" type=\"text\" name=\"_username\"
value=\"";
// line 74
echo twig_escape_filter($this->env, (isset($context["last_username"]) || array_key_exists("last_username", $context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.', 74, $this->source); })()), "html", null, true);
echo "\" required placeholder=\"";
if (($this->extensions['AppBundle\Twig\WebExtension']->isPluginInstalled("LDAP") && $this->extensions['CorporateTrainingBundle\Twig\Extension\WebExtension']->getParameter("ldap_login_enabled"))) {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.oauth.ldap.username_label"), "html", null, true);
} else {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.account_placeholder"), "html", null, true);
}
echo "\"/>
<div class=\"help-block\"></div>
</div>
</div>
<input type=\"hidden\" id=\"isMayday\" name=\"isMayday\" value=\"";
// line 78
echo twig_escape_filter($this->env, (((isset($context["isMayday"]) || array_key_exists("isMayday", $context))) ? (_twig_default_filter((isset($context["isMayday"]) || array_key_exists("isMayday", $context) ? $context["isMayday"] : (function () { throw new RuntimeError('Variable "isMayday" does not exist.', 78, $this->source); })()), 0)) : (0)), "html", null, true);
echo "\">
<div class=\"form-group login-form-group login-form-group--pwd\">
<label class=\"control-label hidden\" for=\"login_password\">";
// line 81
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.password_label"), "html", null, true);
echo "</label>
<div class=\"controls input-icon-wrap\">
<i class=\"es-icon es-icon-lock\"></i>
<input class=\"form-control input-md login-input input-md-style\" id=\"login_password\" type=\"password\"
name=\"_password\" required placeholder='";
// line 85
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.password_placeholder"), "html", null, true);
echo "' maxlength=\"20\"/>
</div>
</div>
<div class=\"form-group btn-block-wrap\">
<button class=\"btn btn-primary btn-block bor-no js-btn-login\" type=\"button\" data-normal-text=\"";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.submit_button"), "html", null, true);
echo "\" data-loading-text=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.btn.save.submiting"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.submit_button"), "html", null, true);
echo "</button>
</div>
";
// line 93
$this->loadTemplate("login/auto-login.html.twig", "login/index.html.twig", 93)->display($context);
// line 94
echo " ";
}
// line 95
echo " ";
$this->loadTemplate("login/oauth2-login.html.twig", "login/index.html.twig", 95)->display($context);
// line 96
echo " <div class=\"es-box-heading mtl\"></div>
<input type=\"hidden\" name=\"_target_path\" value=\"";
// line 98
echo twig_escape_filter($this->env, (isset($context["_target_path"]) || array_key_exists("_target_path", $context) ? $context["_target_path"] : (function () { throw new RuntimeError('Variable "_target_path" does not exist.', 98, $this->source); })()), "html", null, true);
echo "\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 99
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("site"), "html", null, true);
echo "\">
</form>
<form id=\"login-mobile-form\" class=\"form-vertical hidden\" method=\"post\" action=\"";
// line 101
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_sms");
echo "\">
";
// line 102
if (( !$this->extensions['AppBundle\Twig\WebExtension']->getSetting("login_bind.only_third_party_login") || (((isset($context["isMayday"]) || array_key_exists("isMayday", $context))) ? (_twig_default_filter((isset($context["isMayday"]) || array_key_exists("isMayday", $context) ? $context["isMayday"] : (function () { throw new RuntimeError('Variable "isMayday" does not exist.', 102, $this->source); })()), 0)) : (0)))) {
// line 103
echo " ";
// line 104
echo " <div class=\"form-group mbl\">
<label class=\"control-label hidden\" for=\"login_mobile\">";
// line 105
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.user.mobile"), "html", null, true);
echo "</label>
<div class=\"controls input-icon-wrap\">
<i class=\"es-icon es-icon-shoujihao\"></i>
<input class=\"form-control input-md input-md-style\" id=\"login_mobile\" type=\"text\" name=\"login_mobile\"
value=\"\" required placeholder=\"";
// line 109
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.user.mobile"), "html", null, true);
echo "\" data-url=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_user_mobile_check");
echo "\"/>
<div class=\"help-block\"></div>
</div>
</div>
<div class=\"form-group login-form-group login-form-group--pwd\">
<label class=\"control-label hidden\" for=\"login_sms_code\">";
// line 114
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.sms_code"), "html", null, true);
echo "</label>
<div class=\"controls input-icon-wrap\">
<i class=\"es-icon es-icon-duanxinyanzhengma\"></i>
<input class=\"form-control input-md login-input input-md-style\" id=\"login_sms_code\" type=\"text\"
name=\"login_sms_code\" required placeholder='";
// line 118
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.sms_code"), "html", null, true);
echo "' maxlength=\"20\"/>
</div>
<div class=\"login-mobile-code-btn\">
<a href=\"javascript:;\" class=\"js-sms-send\" data-sms-url=\"";
// line 121
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edu_cloud_sms_send");
echo "\" data-sms-type=\"sms_forget_password\">
<span id=\"js-time-left\"></span>
<span id=\"js-fetch-btn-text\">";
// line 123
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.sms.btn"), "html", null, true);
echo "</span>
</a>
</div>
</div>
<div class=\"form-group login-form-group login-form-group--pwd js-captcha_num hidden\">
<div class=\"controls input-icon-wrap\">
<i class=\"es-icon es-icon-shuziyanzhengma\"></i>
<input class=\"form-control input-md login-input input-md-style\" id=\"login_captcha_num\" type=\"text\"
name=\"login_captcha_num\" required placeholder='";
// line 131
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.sms.captcha.placeholder"), "html", null, true);
echo "' maxlength=\"20\" data-url=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_captcha_check");
echo "\"/>
</div>
<div class=\"login-mobile-code-btn\">
<img src=\"";
// line 134
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_captcha_num");
echo "\" data-resister-url=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_captcha_num");
echo "\" id=\"getcode_num\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.settings.security.change_captcha_code"), "html", null, true);
echo "\" style=\"cursor:pointer;height:35px;width:100%;position: relative;top: -15px;left: 20px;\">
</div>
</div>
<input type=\"hidden\" id=\"sms_token\" name=\"sms_token\" value=\"";
// line 137
echo twig_escape_filter($this->env, (((isset($context["isMayday"]) || array_key_exists("isMayday", $context))) ? (_twig_default_filter((isset($context["isMayday"]) || array_key_exists("isMayday", $context) ? $context["isMayday"] : (function () { throw new RuntimeError('Variable "isMayday" does not exist.', 137, $this->source); })()), 0)) : (0)), "html", null, true);
echo "\">
<div class=\"form-group btn-block-wrap\">
<button class=\"btn btn-primary btn-block bor-no js-btn-mobile-login\" type=\"button\" data-loading-text=\"";
// line 139
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.btn.save.submiting"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.submit_button"), "html", null, true);
echo "</button>
</div>
";
// line 142
$this->loadTemplate("login/auto-login.html.twig", "login/index.html.twig", 142)->display($context);
// line 143
echo " ";
}
// line 144
echo "
";
// line 145
$this->loadTemplate("login/oauth2-login.html.twig", "login/index.html.twig", 145)->display($context);
// line 146
echo " <div class=\"es-box-heading mtl\"></div>
<input type=\"hidden\" name=\"_target_path\" value=\"";
// line 147
echo twig_escape_filter($this->env, (isset($context["_target_path"]) || array_key_exists("_target_path", $context) ? $context["_target_path"] : (function () { throw new RuntimeError('Variable "_target_path" does not exist.', 147, $this->source); })()), "html", null, true);
echo "\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 148
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("site"), "html", null, true);
echo "\">
</form>
</div>
</div>
</div>
";
// line 154
$this->loadTemplate("@CorporateTraining/ct-default/footer-index.html.twig", "login/index.html.twig", 154)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 157
public function block_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 158
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "login/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 461 => 158, 451 => 157, 441 => 154, 432 => 148, 428 => 147, 425 => 146, 423 => 145, 420 => 144, 417 => 143, 415 => 142, 407 => 139, 402 => 137, 392 => 134, 384 => 131, 373 => 123, 368 => 121, 362 => 118, 355 => 114, 345 => 109, 338 => 105, 335 => 104, 333 => 103, 331 => 102, 327 => 101, 322 => 99, 318 => 98, 314 => 96, 311 => 95, 308 => 94, 306 => 93, 296 => 90, 288 => 85, 281 => 81, 275 => 78, 262 => 74, 255 => 70, 252 => 69, 250 => 68, 247 => 66, 244 => 60, 242 => 58, 237 => 57, 231 => 54, 227 => 53, 224 => 52, 222 => 51, 219 => 50, 213 => 46, 207 => 43, 204 => 42, 202 => 41, 198 => 40, 193 => 39, 187 => 36, 184 => 35, 182 => 34, 179 => 33, 176 => 32, 173 => 31, 171 => 30, 168 => 29, 165 => 28, 162 => 27, 159 => 26, 156 => 25, 154 => 24, 151 => 23, 148 => 22, 145 => 21, 142 => 20, 139 => 19, 137 => 18, 134 => 17, 131 => 16, 121 => 15, 100 => 13, 89 => 9, 86 => 8, 83 => 7, 80 => 6, 70 => 5, 59 => 1, 57 => 14, 55 => 12, 53 => 3, 51 => 2, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% import \"macro.html.twig\" as web_macro %}
{% do script(['libs/jquery-validation.js','app/js/auth/login/index.js','app/js/header/index.js']) %}
{% block header %}
{% include '@CorporateTraining/site-hint.html.twig' %}
{% if liveLogin|default(0) == 0 %}
{% include '@CorporateTraining/login/login-background.html.twig' %}
{% endif %}
{% endblock %}
{% set bodyClass = \"login index_bg\" %}
{% block title %}{{ 'user.login.content_title'|trans }} - {{ parent() }}{% endblock %}
{% set position_code = 1 %}
{% block content %}
{% set block = data('Block', {'code': 'jianmo:login_position'}) %}
{% set sectionClass = '' %}
{% if (setting('login_bind.enabled') and (setting('login_bind.weixinweb_enabled') or setting('login_bind.dingtalkweb_enabled'))) or setting('sync_department_setting.enable') and not (setting('sync_department_setting.type') == 'LDAP') %}
{% set sectionClass = 'login-third-party' %}
{% set loginThird = 1 %}
{% endif %}
{% if (not setting('login_bind.only_third_party_login') or isMayday|default(0)) and setting('login_bind.mobile_login')%}
{% set mobile_login_show = 1 %}
{% else %}
{% set mobile_login_show = 0 %}
{% endif %}
{% if mobile_login_show ==1 and loginThird|default(0) ==1%}
{% set sectionClass = 'login-third-mobile' %}
{% endif %}
{% if app.request.cookies.get('modalOpened') == 1 %}
<a href=\"#modal\" class=\" hidden\" data-toggle=\"modal\"
data-url=\"{{ path('card_info',{'cardType':app.request.query.get('cardType'),'cardId':app.request.query.get('cardId')}) }}\"
class=\"hidden\"><span class=\"receive-modal\"></span></a>
{% endif %}
<div class=\"login-container\" data-code={{ setting(\"site.loginPosition\")|default('center') }}>
<div class=\"es-section login-section login-write-info {{ sectionClass }} mbm\">
{% if setting('site.loginLogo') %}
<div class=\"login-logo-wrap text-center\">
<img class=\"login-logo\" src=\"{{ filepath('../' ~ setting('site.loginLogo'),'') }}\">
</div>
{% else %}
<div class=\"login-logo-wrap text-center\">
<img class=\"login-logo\" src=\"/assets/img/logo/login_logo.png\">
</div>
{% endif %}
<div class=\"login-main\">
{% if mobile_login_show|default(0) %}
<ul class=\"login-nav login-nav-tabs\" role=\"tablist\">
<li class=\"js-tab-link active \" data-index=\"0\" role=\"presentation\"><a href=\"javascript:;\">{{ 'login.password_type'|trans}}</a></li>
<li class=\"js-tab-link\" data-index=\"1\" role=\"presentation\"><a href=\"javascript:;\">{{ 'login.mobile_type'|trans}}</a></li>
</ul>
{% endif %}
<form id=\"login-form\" class=\"form-vertical\" method=\"post\" action=\"{{ path('login_check') }}\">
{% if not setting('login_bind.only_third_party_login') or isMayday|default(0) %}
{# {% if error %}#}
<div class=\"alert alert-danger alert-danger-position\">
{# {% if error.message == 'Bad credentials.' %}#}
{# {{ 'site.user_password.error_tips'|trans }}#}
{# {% else %}#}
{# {{ error.message|trans }}#}
{# {% endif %}#}
</div>
{# {% endif %}#}
{# {{ web_macro.flash_messages() }} #}
<div class=\"form-group mbl\">
<label class=\"control-label hidden\" for=\"login_username\">{{ 'user.login.account_label'|trans }}</label>
<div class=\"controls input-icon-wrap\">
<i class=\"es-icon es-icon-my\"></i>
<input class=\"form-control input-md input-md-style\" id=\"login_username\" type=\"text\" name=\"_username\"
value=\"{{ last_username }}\" required placeholder=\"{% if is_plugin_installed('LDAP') and get_parameter('ldap_login_enabled') %}{{ 'user.oauth.ldap.username_label'|trans }}{% else %}{{ 'user.login.account_placeholder'|trans }}{% endif %}\"/>
<div class=\"help-block\"></div>
</div>
</div>
<input type=\"hidden\" id=\"isMayday\" name=\"isMayday\" value=\"{{ isMayday|default(0) }}\">
<div class=\"form-group login-form-group login-form-group--pwd\">
<label class=\"control-label hidden\" for=\"login_password\">{{ 'user.login.password_label'|trans }}</label>
<div class=\"controls input-icon-wrap\">
<i class=\"es-icon es-icon-lock\"></i>
<input class=\"form-control input-md login-input input-md-style\" id=\"login_password\" type=\"password\"
name=\"_password\" required placeholder='{{ 'user.login.password_placeholder'|trans }}' maxlength=\"20\"/>
</div>
</div>
<div class=\"form-group btn-block-wrap\">
<button class=\"btn btn-primary btn-block bor-no js-btn-login\" type=\"button\" data-normal-text=\"{{ 'user.login.submit_button'|trans }}\" data-loading-text=\"{{'form.btn.save.submiting'|trans}}\">{{ 'user.login.submit_button'|trans }}</button>
</div>
{% include 'login/auto-login.html.twig' %}
{% endif %}
{% include 'login/oauth2-login.html.twig' %}
<div class=\"es-box-heading mtl\"></div>
<input type=\"hidden\" name=\"_target_path\" value=\"{{ _target_path }}\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('site') }}\">
</form>
<form id=\"login-mobile-form\" class=\"form-vertical hidden\" method=\"post\" action=\"{{ path('login_sms') }}\">
{% if not setting('login_bind.only_third_party_login') or isMayday|default(0) %}
{# {{ web_macro.flash_messages() }} #}
<div class=\"form-group mbl\">
<label class=\"control-label hidden\" for=\"login_mobile\">{{ 'admin.user.mobile'|trans }}</label>
<div class=\"controls input-icon-wrap\">
<i class=\"es-icon es-icon-shoujihao\"></i>
<input class=\"form-control input-md input-md-style\" id=\"login_mobile\" type=\"text\" name=\"login_mobile\"
value=\"\" required placeholder=\"{{ 'admin.user.mobile'|trans }}\" data-url=\"{{ path('login_user_mobile_check') }}\"/>
<div class=\"help-block\"></div>
</div>
</div>
<div class=\"form-group login-form-group login-form-group--pwd\">
<label class=\"control-label hidden\" for=\"login_sms_code\">{{ 'form.sms_code'|trans }}</label>
<div class=\"controls input-icon-wrap\">
<i class=\"es-icon es-icon-duanxinyanzhengma\"></i>
<input class=\"form-control input-md login-input input-md-style\" id=\"login_sms_code\" type=\"text\"
name=\"login_sms_code\" required placeholder='{{ 'form.sms_code'|trans }}' maxlength=\"20\"/>
</div>
<div class=\"login-mobile-code-btn\">
<a href=\"javascript:;\" class=\"js-sms-send\" data-sms-url=\"{{ path('edu_cloud_sms_send') }}\" data-sms-type=\"sms_forget_password\">
<span id=\"js-time-left\"></span>
<span id=\"js-fetch-btn-text\">{{ 'login.sms.btn'|trans }}</span>
</a>
</div>
</div>
<div class=\"form-group login-form-group login-form-group--pwd js-captcha_num hidden\">
<div class=\"controls input-icon-wrap\">
<i class=\"es-icon es-icon-shuziyanzhengma\"></i>
<input class=\"form-control input-md login-input input-md-style\" id=\"login_captcha_num\" type=\"text\"
name=\"login_captcha_num\" required placeholder='{{'login.sms.captcha.placeholder'|trans}}' maxlength=\"20\" data-url=\"{{ path('login_captcha_check') }}\"/>
</div>
<div class=\"login-mobile-code-btn\">
<img src=\"{{ path('register_captcha_num') }}\" data-resister-url=\"{{ path('register_captcha_num') }}\" id=\"getcode_num\" title=\"{{'user.settings.security.change_captcha_code'|trans}}\" style=\"cursor:pointer;height:35px;width:100%;position: relative;top: -15px;left: 20px;\">
</div>
</div>
<input type=\"hidden\" id=\"sms_token\" name=\"sms_token\" value=\"{{ isMayday|default(0) }}\">
<div class=\"form-group btn-block-wrap\">
<button class=\"btn btn-primary btn-block bor-no js-btn-mobile-login\" type=\"button\" data-loading-text=\"{{'form.btn.save.submiting'|trans}}\">{{ 'user.login.submit_button'|trans }}</button>
</div>
{% include 'login/auto-login.html.twig' %}
{% endif %}
{% include 'login/oauth2-login.html.twig' %}
<div class=\"es-box-heading mtl\"></div>
<input type=\"hidden\" name=\"_target_path\" value=\"{{ _target_path }}\">
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('site') }}\">
</form>
</div>
</div>
</div>
{% include '@CorporateTraining/ct-default/footer-index.html.twig' %}
{% endblock %}
{% block footer %}
{% endblock %}
", "login/index.html.twig", "/var/www/hangzhou/hz-2.77.edusoho.cn/app/Resources/views/login/index.html.twig");
}
}