app/cache/dev/Jianmo/twig/b8/b8ea570de3d0fae36ea3e5143f3de814f0c2fa6952f839ecb6ff300c4aeab0a8.php line 60

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. /* login/index.html.twig */
  14. class __TwigTemplate_71d1f35d1a2076ab4639b160afca5b581582fff0fbea82a4ff0ec86e19108f7b extends 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.             'header' => [$this'block_header'],
  24.             'title' => [$this'block_title'],
  25.             'content' => [$this'block_content'],
  26.             'footer' => [$this'block_footer'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "layout.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""login/index.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""login/index.html.twig"));
  41.         // line 2
  42.         $macros["web_macro"] = $this->macros["web_macro"] = $this->loadTemplate("macro.html.twig""login/index.html.twig"2)->unwrap();
  43.         // line 3
  44.         $this->extensions['Codeages\PluginBundle\Twig\HtmlExtension']->script(["libs/jquery-validation.js""app/js/auth/login/index.js""app/js/header/index.js"]);
  45.         // line 12
  46.         $context["bodyClass"] = "login index_bg";
  47.         // line 14
  48.         $context["position_code"] = 1;
  49.         // line 1
  50.         $this->parent $this->loadTemplate("layout.html.twig""login/index.html.twig"1);
  51.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  52.         
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  54.         
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  56.     }
  57.     // line 5
  58.     public function block_header($context, array $blocks = [])
  59.     {
  60.         $macros $this->macros;
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  65.         // line 6
  66.         echo "  ";
  67.         $this->loadTemplate("@CorporateTraining/site-hint.html.twig""login/index.html.twig"6)->display($context);
  68.         // line 7
  69.         echo "  ";
  70.         if ((=== 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))) {
  71.             // line 8
  72.             echo "    ";
  73.             $this->loadTemplate("@CorporateTraining/login/login-background.html.twig""login/index.html.twig"8)->display($context);
  74.             // line 9
  75.             echo "  ";
  76.         }
  77.         
  78.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  79.         
  80.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  81.     }
  82.     // line 13
  83.     public function block_title($context, array $blocks = [])
  84.     {
  85.         $macros $this->macros;
  86.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  88.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  90.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.content_title"), "html"nulltrue);
  91.         echo " - ";
  92.         $this->displayParentBlock("title"$context$blocks);
  93.         
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  95.         
  96.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  97.     }
  98.     // line 15
  99.     public function block_content($context, array $blocks = [])
  100.     {
  101.         $macros $this->macros;
  102.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  103.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  104.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  105.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  106.         // line 16
  107.         echo "  ";
  108.         $context["block"] = $this->extensions['AppBundle\Twig\DataExtension']->getData("Block", ["code" => "jianmo:login_position"]);
  109.         // line 17
  110.         echo "
  111.   ";
  112.         // line 18
  113.         $context["sectionClass"] = "";
  114.         // line 19
  115.         echo "  ";
  116.         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") &&  !(=== twig_compare($this->extensions['AppBundle\Twig\WebExtension']->getSetting("sync_department_setting.type"), "LDAP"))))) {
  117.             // line 20
  118.             echo "    ";
  119.             $context["sectionClass"] = "login-third-party";
  120.             // line 21
  121.             echo "    ";
  122.             $context["loginThird"] = 1;
  123.             // line 22
  124.             echo "  ";
  125.         }
  126.         // line 23
  127.         echo "
  128.   ";
  129.         // line 24
  130.         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"))) {
  131.             // line 25
  132.             echo "    ";
  133.             $context["mobile_login_show"] = 1;
  134.             // line 26
  135.             echo "  ";
  136.         } else {
  137.             // line 27
  138.             echo "    ";
  139.             $context["mobile_login_show"] = 0;
  140.             // line 28
  141.             echo "  ";
  142.         }
  143.         // line 29
  144.         echo "
  145.   ";
  146.         // line 30
  147.         if (((=== 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)) && (=== 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)))) {
  148.             // line 31
  149.             echo "    ";
  150.             $context["sectionClass"] = "login-third-mobile";
  151.             // line 32
  152.             echo "  ";
  153.         }
  154.         // line 33
  155.         echo "
  156.   ";
  157.         // line 34
  158.         if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse34), "cookies", [], "any"falsefalsefalse34), "get", ["modalOpened"], "method"falsefalsefalse34), 1))) {
  159.             // line 35
  160.             echo "    <a href=\"#modal\" class=\" hidden\" data-toggle=\"modal\"
  161.        data-url=\"";
  162.             // line 36
  163.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("card_info", ["cardType" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse36), "query", [], "any"falsefalsefalse36), "get", ["cardType"], "method"falsefalsefalse36), "cardId" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse36), "query", [], "any"falsefalsefalse36), "get", ["cardId"], "method"falsefalsefalse36)]), "html"nulltrue);
  164.             echo "\"
  165.        class=\"hidden\"><span class=\"receive-modal\"></span></a>
  166.   ";
  167.         }
  168.         // line 39
  169.         echo "  <div class=\"login-container\" data-code=";
  170.         echo twig_escape_filter($this->env_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("site.loginPosition"), "center"), "html"nulltrue);
  171.         echo ">
  172.     <div class=\"es-section login-section login-write-info ";
  173.         // line 40
  174.         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"nulltrue);
  175.         echo "  mbm\">
  176.       ";
  177.         // line 41
  178.         if ($this->extensions['AppBundle\Twig\WebExtension']->getSetting("site.loginLogo")) {
  179.             // line 42
  180.             echo "        <div class=\"login-logo-wrap text-center\">
  181.           <img class=\"login-logo\" src=\"";
  182.             // line 43
  183.             echo twig_escape_filter($this->env$this->extensions['AppBundle\Twig\WebExtension']->getFpath(("../" $this->extensions['AppBundle\Twig\WebExtension']->getSetting("site.loginLogo")), ""), "html"nulltrue);
  184.             echo "\">
  185.         </div>
  186.       ";
  187.         } else {
  188.             // line 46
  189.             echo "        <div class=\"login-logo-wrap text-center\">
  190.           <img class=\"login-logo\" src=\"/assets/img/logo/login_logo.png\">
  191.         </div>
  192.       ";
  193.         }
  194.         // line 50
  195.         echo "      <div class=\"login-main\">
  196.         ";
  197.         // line 51
  198.         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))) {
  199.             // line 52
  200.             echo "          <ul class=\"login-nav login-nav-tabs\" role=\"tablist\">
  201.             <li class=\"js-tab-link active \" data-index=\"0\" role=\"presentation\"><a href=\"javascript:;\">";
  202.             // line 53
  203.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.password_type"), "html"nulltrue);
  204.             echo "</a></li>
  205.             <li class=\"js-tab-link\" data-index=\"1\" role=\"presentation\"><a href=\"javascript:;\">";
  206.             // line 54
  207.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.mobile_type"), "html"nulltrue);
  208.             echo "</a></li>
  209.           </ul>
  210.         ";
  211.         }
  212.         // line 57
  213.         echo "        <form id=\"login-form\" class=\"form-vertical\" method=\"post\" action=\"";
  214.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_check");
  215.         echo "\">
  216.           ";
  217.         // line 58
  218.         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)))) {
  219.             // line 60
  220.             echo "              <div class=\"alert alert-danger alert-danger-position\">
  221. ";
  222.             // line 66
  223.             echo "              </div>
  224. ";
  225.             // line 68
  226.             echo "            ";
  227.             // line 69
  228.             echo "            <div class=\"form-group mbl\">
  229.               <label class=\"control-label hidden\" for=\"login_username\">";
  230.             // line 70
  231.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.account_label"), "html"nulltrue);
  232.             echo "</label>
  233.               <div class=\"controls input-icon-wrap\">
  234.                 <i class=\"es-icon es-icon-my\"></i>
  235.                 <input class=\"form-control input-md input-md-style\" id=\"login_username\" type=\"text\" name=\"_username\"
  236.                        value=\"";
  237.             // line 74
  238.             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"nulltrue);
  239.             echo "\" required placeholder=\"";
  240.             if (($this->extensions['AppBundle\Twig\WebExtension']->isPluginInstalled("LDAP") && $this->extensions['CorporateTrainingBundle\Twig\Extension\WebExtension']->getParameter("ldap_login_enabled"))) {
  241.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.oauth.ldap.username_label"), "html"nulltrue);
  242.             } else {
  243.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.account_placeholder"), "html"nulltrue);
  244.             }
  245.             echo "\"/>
  246.                 <div class=\"help-block\"></div>
  247.               </div>
  248.             </div>
  249.             <input type=\"hidden\" id=\"isMayday\" name=\"isMayday\" value=\"";
  250.             // line 78
  251.             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"nulltrue);
  252.             echo "\">
  253.             <div class=\"form-group login-form-group login-form-group--pwd\">
  254.               <label class=\"control-label hidden\" for=\"login_password\">";
  255.             // line 81
  256.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.password_label"), "html"nulltrue);
  257.             echo "</label>
  258.               <div class=\"controls input-icon-wrap\">
  259.                 <i class=\"es-icon es-icon-lock\"></i>
  260.                 <input class=\"form-control input-md login-input input-md-style\" id=\"login_password\" type=\"password\"
  261.                        name=\"_password\" required placeholder='";
  262.             // line 85
  263.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.password_placeholder"), "html"nulltrue);
  264.             echo "' maxlength=\"20\"/>
  265.               </div>
  266.             </div>
  267.             <div class=\"form-group btn-block-wrap\">
  268.               <button class=\"btn btn-primary btn-block bor-no js-btn-login\" type=\"button\" data-normal-text=\"";
  269.             // line 90
  270.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.submit_button"), "html"nulltrue);
  271.             echo "\" data-loading-text=\"";
  272.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.btn.save.submiting"), "html"nulltrue);
  273.             echo "\">";
  274.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.submit_button"), "html"nulltrue);
  275.             echo "</button>
  276.             </div>
  277.             ";
  278.             // line 93
  279.             $this->loadTemplate("login/auto-login.html.twig""login/index.html.twig"93)->display($context);
  280.             // line 94
  281.             echo "          ";
  282.         }
  283.         // line 95
  284.         echo "          ";
  285.         $this->loadTemplate("login/oauth2-login.html.twig""login/index.html.twig"95)->display($context);
  286.         // line 96
  287.         echo "          <div class=\"es-box-heading mtl\"></div>
  288.           <input type=\"hidden\" name=\"_target_path\" value=\"";
  289.         // line 98
  290.         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"nulltrue);
  291.         echo "\">
  292.           <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  293.         // line 99
  294.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("site"), "html"nulltrue);
  295.         echo "\">
  296.         </form>
  297.         <form id=\"login-mobile-form\" class=\"form-vertical hidden\" method=\"post\" action=\"";
  298.         // line 101
  299.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_sms");
  300.         echo "\">
  301.           ";
  302.         // line 102
  303.         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)))) {
  304.             // line 103
  305.             echo "            ";
  306.             // line 104
  307.             echo "            <div class=\"form-group mbl\">
  308.               <label class=\"control-label hidden\" for=\"login_mobile\">";
  309.             // line 105
  310.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.user.mobile"), "html"nulltrue);
  311.             echo "</label>
  312.               <div class=\"controls input-icon-wrap\">
  313.                 <i class=\"es-icon es-icon-shoujihao\"></i>
  314.                 <input class=\"form-control input-md input-md-style\" id=\"login_mobile\" type=\"text\" name=\"login_mobile\"
  315.                        value=\"\" required placeholder=\"";
  316.             // line 109
  317.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.user.mobile"), "html"nulltrue);
  318.             echo "\" data-url=\"";
  319.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_user_mobile_check");
  320.             echo "\"/>
  321.                 <div class=\"help-block\"></div>
  322.               </div>
  323.             </div>
  324.             <div class=\"form-group login-form-group login-form-group--pwd\">
  325.               <label class=\"control-label hidden\" for=\"login_sms_code\">";
  326.             // line 114
  327.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.sms_code"), "html"nulltrue);
  328.             echo "</label>
  329.               <div class=\"controls input-icon-wrap\">
  330.                 <i class=\"es-icon es-icon-duanxinyanzhengma\"></i>
  331.                 <input class=\"form-control input-md login-input input-md-style\" id=\"login_sms_code\" type=\"text\"
  332.                        name=\"login_sms_code\" required placeholder='";
  333.             // line 118
  334.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.sms_code"), "html"nulltrue);
  335.             echo "' maxlength=\"20\"/>
  336.               </div>
  337.               <div class=\"login-mobile-code-btn\">
  338.                 <a href=\"javascript:;\" class=\"js-sms-send\" data-sms-url=\"";
  339.             // line 121
  340.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edu_cloud_sms_send");
  341.             echo "\" data-sms-type=\"sms_forget_password\">
  342.                   <span id=\"js-time-left\"></span>
  343.                   <span id=\"js-fetch-btn-text\">";
  344.             // line 123
  345.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.sms.btn"), "html"nulltrue);
  346.             echo "</span>
  347.                 </a>
  348.               </div>
  349.             </div>
  350.             <div class=\"form-group login-form-group login-form-group--pwd  js-captcha_num hidden\">
  351.               <div class=\"controls input-icon-wrap\">
  352.                 <i class=\"es-icon es-icon-shuziyanzhengma\"></i>
  353.                 <input class=\"form-control input-md login-input input-md-style\" id=\"login_captcha_num\" type=\"text\"
  354.                        name=\"login_captcha_num\" required placeholder='";
  355.             // line 131
  356.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.sms.captcha.placeholder"), "html"nulltrue);
  357.             echo "' maxlength=\"20\" data-url=\"";
  358.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_captcha_check");
  359.             echo "\"/>
  360.               </div>
  361.               <div class=\"login-mobile-code-btn\">
  362.                 <img src=\"";
  363.             // line 134
  364.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_captcha_num");
  365.             echo "\" data-resister-url=\"";
  366.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_captcha_num");
  367.             echo "\" id=\"getcode_num\" title=\"";
  368.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.settings.security.change_captcha_code"), "html"nulltrue);
  369.             echo "\" style=\"cursor:pointer;height:35px;width:100%;position: relative;top: -15px;left: 20px;\">
  370.               </div>
  371.             </div>
  372.             <input type=\"hidden\" id=\"sms_token\" name=\"sms_token\" value=\"";
  373.             // line 137
  374.             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"nulltrue);
  375.             echo "\">
  376.             <div class=\"form-group btn-block-wrap\">
  377.               <button class=\"btn btn-primary btn-block bor-no js-btn-mobile-login\" type=\"button\" data-loading-text=\"";
  378.             // line 139
  379.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.btn.save.submiting"), "html"nulltrue);
  380.             echo "\">";
  381.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.submit_button"), "html"nulltrue);
  382.             echo "</button>
  383.             </div>
  384.             ";
  385.             // line 142
  386.             $this->loadTemplate("login/auto-login.html.twig""login/index.html.twig"142)->display($context);
  387.             // line 143
  388.             echo "          ";
  389.         }
  390.         // line 144
  391.         echo "
  392.           ";
  393.         // line 145
  394.         $this->loadTemplate("login/oauth2-login.html.twig""login/index.html.twig"145)->display($context);
  395.         // line 146
  396.         echo "          <div class=\"es-box-heading mtl\"></div>
  397.           <input type=\"hidden\" name=\"_target_path\" value=\"";
  398.         // line 147
  399.         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"nulltrue);
  400.         echo "\">
  401.           <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  402.         // line 148
  403.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("site"), "html"nulltrue);
  404.         echo "\">
  405.         </form>
  406.       </div>
  407.     </div>
  408.   </div>
  409.   ";
  410.         // line 154
  411.         $this->loadTemplate("@CorporateTraining/ct-default/footer-index.html.twig""login/index.html.twig"154)->display($context);
  412.         
  413.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  414.         
  415.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  416.     }
  417.     // line 157
  418.     public function block_footer($context, array $blocks = [])
  419.     {
  420.         $macros $this->macros;
  421.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  422.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  423.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  424.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  425.         // line 158
  426.         echo "
  427. ";
  428.         
  429.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  430.         
  431.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  432.     }
  433.     /**
  434.      * @codeCoverageIgnore
  435.      */
  436.     public function getTemplateName()
  437.     {
  438.         return "login/index.html.twig";
  439.     }
  440.     /**
  441.      * @codeCoverageIgnore
  442.      */
  443.     public function isTraitable()
  444.     {
  445.         return false;
  446.     }
  447.     /**
  448.      * @codeCoverageIgnore
  449.      */
  450.     public function getDebugInfo()
  451.     {
  452.         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,);
  453.     }
  454.     public function getSourceContext()
  455.     {
  456.         return new Source("{% extends 'layout.html.twig' %}
  457. {% import \"macro.html.twig\" as web_macro %}
  458. {% do script(['libs/jquery-validation.js','app/js/auth/login/index.js','app/js/header/index.js']) %}
  459. {% block header %}
  460.   {% include '@CorporateTraining/site-hint.html.twig' %}
  461.   {% if liveLogin|default(0) == 0 %}
  462.     {% include '@CorporateTraining/login/login-background.html.twig' %}
  463.   {% endif %}
  464. {% endblock %}
  465. {% set bodyClass = \"login index_bg\" %}
  466. {% block title %}{{ 'user.login.content_title'|trans }} - {{ parent() }}{% endblock %}
  467. {% set position_code = 1 %}
  468. {% block content %}
  469.   {% set block = data('Block', {'code': 'jianmo:login_position'}) %}
  470.   {% set sectionClass = '' %}
  471.   {% 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') %}
  472.     {% set sectionClass = 'login-third-party' %}
  473.     {% set loginThird = 1 %}
  474.   {% endif %}
  475.   {% if (not setting('login_bind.only_third_party_login') or isMayday|default(0)) and setting('login_bind.mobile_login')%}
  476.     {% set mobile_login_show = 1 %}
  477.   {% else %}
  478.     {% set mobile_login_show = 0 %}
  479.   {% endif %}
  480.   {% if mobile_login_show ==1 and loginThird|default(0) ==1%}
  481.     {% set sectionClass = 'login-third-mobile' %}
  482.   {% endif %}
  483.   {% if app.request.cookies.get('modalOpened') == 1 %}
  484.     <a href=\"#modal\" class=\" hidden\" data-toggle=\"modal\"
  485.        data-url=\"{{ path('card_info',{'cardType':app.request.query.get('cardType'),'cardId':app.request.query.get('cardId')}) }}\"
  486.        class=\"hidden\"><span class=\"receive-modal\"></span></a>
  487.   {% endif %}
  488.   <div class=\"login-container\" data-code={{ setting(\"site.loginPosition\")|default('center') }}>
  489.     <div class=\"es-section login-section login-write-info {{ sectionClass }}  mbm\">
  490.       {% if setting('site.loginLogo') %}
  491.         <div class=\"login-logo-wrap text-center\">
  492.           <img class=\"login-logo\" src=\"{{ filepath('../' ~ setting('site.loginLogo'),'') }}\">
  493.         </div>
  494.       {% else %}
  495.         <div class=\"login-logo-wrap text-center\">
  496.           <img class=\"login-logo\" src=\"/assets/img/logo/login_logo.png\">
  497.         </div>
  498.       {% endif %}
  499.       <div class=\"login-main\">
  500.         {% if mobile_login_show|default(0) %}
  501.           <ul class=\"login-nav login-nav-tabs\" role=\"tablist\">
  502.             <li class=\"js-tab-link active \" data-index=\"0\" role=\"presentation\"><a href=\"javascript:;\">{{ 'login.password_type'|trans}}</a></li>
  503.             <li class=\"js-tab-link\" data-index=\"1\" role=\"presentation\"><a href=\"javascript:;\">{{ 'login.mobile_type'|trans}}</a></li>
  504.           </ul>
  505.         {% endif %}
  506.         <form id=\"login-form\" class=\"form-vertical\" method=\"post\" action=\"{{ path('login_check') }}\">
  507.           {% if not setting('login_bind.only_third_party_login') or isMayday|default(0)  %}
  508. {#            {% if error %}#}
  509.               <div class=\"alert alert-danger alert-danger-position\">
  510. {#                {% if error.message == 'Bad credentials.' %}#}
  511. {#                  {{ 'site.user_password.error_tips'|trans }}#}
  512. {#                {% else %}#}
  513. {#                  {{ error.message|trans }}#}
  514. {#                {% endif %}#}
  515.               </div>
  516. {#            {% endif %}#}
  517.             {# {{ web_macro.flash_messages() }} #}
  518.             <div class=\"form-group mbl\">
  519.               <label class=\"control-label hidden\" for=\"login_username\">{{ 'user.login.account_label'|trans }}</label>
  520.               <div class=\"controls input-icon-wrap\">
  521.                 <i class=\"es-icon es-icon-my\"></i>
  522.                 <input class=\"form-control input-md input-md-style\" id=\"login_username\" type=\"text\" name=\"_username\"
  523.                        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 %}\"/>
  524.                 <div class=\"help-block\"></div>
  525.               </div>
  526.             </div>
  527.             <input type=\"hidden\" id=\"isMayday\" name=\"isMayday\" value=\"{{ isMayday|default(0) }}\">
  528.             <div class=\"form-group login-form-group login-form-group--pwd\">
  529.               <label class=\"control-label hidden\" for=\"login_password\">{{ 'user.login.password_label'|trans }}</label>
  530.               <div class=\"controls input-icon-wrap\">
  531.                 <i class=\"es-icon es-icon-lock\"></i>
  532.                 <input class=\"form-control input-md login-input input-md-style\" id=\"login_password\" type=\"password\"
  533.                        name=\"_password\" required placeholder='{{ 'user.login.password_placeholder'|trans }}' maxlength=\"20\"/>
  534.               </div>
  535.             </div>
  536.             <div class=\"form-group btn-block-wrap\">
  537.               <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>
  538.             </div>
  539.             {% include 'login/auto-login.html.twig' %}
  540.           {% endif %}
  541.           {% include 'login/oauth2-login.html.twig' %}
  542.           <div class=\"es-box-heading mtl\"></div>
  543.           <input type=\"hidden\" name=\"_target_path\" value=\"{{ _target_path }}\">
  544.           <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('site') }}\">
  545.         </form>
  546.         <form id=\"login-mobile-form\" class=\"form-vertical hidden\" method=\"post\" action=\"{{ path('login_sms') }}\">
  547.           {% if not setting('login_bind.only_third_party_login') or isMayday|default(0)  %}
  548.             {# {{ web_macro.flash_messages() }} #}
  549.             <div class=\"form-group mbl\">
  550.               <label class=\"control-label hidden\" for=\"login_mobile\">{{ 'admin.user.mobile'|trans }}</label>
  551.               <div class=\"controls input-icon-wrap\">
  552.                 <i class=\"es-icon es-icon-shoujihao\"></i>
  553.                 <input class=\"form-control input-md input-md-style\" id=\"login_mobile\" type=\"text\" name=\"login_mobile\"
  554.                        value=\"\" required placeholder=\"{{ 'admin.user.mobile'|trans }}\" data-url=\"{{ path('login_user_mobile_check') }}\"/>
  555.                 <div class=\"help-block\"></div>
  556.               </div>
  557.             </div>
  558.             <div class=\"form-group login-form-group login-form-group--pwd\">
  559.               <label class=\"control-label hidden\" for=\"login_sms_code\">{{ 'form.sms_code'|trans }}</label>
  560.               <div class=\"controls input-icon-wrap\">
  561.                 <i class=\"es-icon es-icon-duanxinyanzhengma\"></i>
  562.                 <input class=\"form-control input-md login-input input-md-style\" id=\"login_sms_code\" type=\"text\"
  563.                        name=\"login_sms_code\" required placeholder='{{ 'form.sms_code'|trans }}' maxlength=\"20\"/>
  564.               </div>
  565.               <div class=\"login-mobile-code-btn\">
  566.                 <a href=\"javascript:;\" class=\"js-sms-send\" data-sms-url=\"{{ path('edu_cloud_sms_send') }}\" data-sms-type=\"sms_forget_password\">
  567.                   <span id=\"js-time-left\"></span>
  568.                   <span id=\"js-fetch-btn-text\">{{ 'login.sms.btn'|trans }}</span>
  569.                 </a>
  570.               </div>
  571.             </div>
  572.             <div class=\"form-group login-form-group login-form-group--pwd  js-captcha_num hidden\">
  573.               <div class=\"controls input-icon-wrap\">
  574.                 <i class=\"es-icon es-icon-shuziyanzhengma\"></i>
  575.                 <input class=\"form-control input-md login-input input-md-style\" id=\"login_captcha_num\" type=\"text\"
  576.                        name=\"login_captcha_num\" required placeholder='{{'login.sms.captcha.placeholder'|trans}}' maxlength=\"20\" data-url=\"{{ path('login_captcha_check') }}\"/>
  577.               </div>
  578.               <div class=\"login-mobile-code-btn\">
  579.                 <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;\">
  580.               </div>
  581.             </div>
  582.             <input type=\"hidden\" id=\"sms_token\" name=\"sms_token\" value=\"{{ isMayday|default(0) }}\">
  583.             <div class=\"form-group btn-block-wrap\">
  584.               <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>
  585.             </div>
  586.             {% include 'login/auto-login.html.twig' %}
  587.           {% endif %}
  588.           {% include 'login/oauth2-login.html.twig' %}
  589.           <div class=\"es-box-heading mtl\"></div>
  590.           <input type=\"hidden\" name=\"_target_path\" value=\"{{ _target_path }}\">
  591.           <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('site') }}\">
  592.         </form>
  593.       </div>
  594.     </div>
  595.   </div>
  596.   {% include '@CorporateTraining/ct-default/footer-index.html.twig' %}
  597. {% endblock %}
  598. {% block footer %}
  599. {% endblock %}
  600. ""login/index.html.twig""/var/www/hangzhou/hz-2.77.edusoho.cn/app/Resources/views/login/index.html.twig");
  601.     }
  602. }