app/cache/dev/Jianmo/twig/e9/e9039eb3ea63b609362616930ae86ccb0f77a13559dc7f25d765494388b5480f.php line 433

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_41c76abd681e6165230685a1fd57f4ff635e0db18fb8bf52392b4aab00ab0520 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")) && (((isset($context["sms_login_open"]) || array_key_exists("sms_login_open"$context))) ? (_twig_default_filter((isset($context["sms_login_open"]) || array_key_exists("sms_login_open"$context) ? $context["sms_login_open"] : (function () { throw new RuntimeError('Variable "sms_login_open" does not exist.'24$this->source); })()), 0)) : (0)))) {
  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 59
  220.             echo "            <div class=\"form-group mb10\">
  221.               <label class=\"control-label hidden\" for=\"login_username\">";
  222.             // line 60
  223.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.account_label"), "html"nulltrue);
  224.             echo "</label>
  225.               <div class=\"controls input-icon-wrap\">
  226.                 <i class=\"es-icon es-icon-my\"></i>
  227.                 <input class=\"form-control input-md input-md-style\" id=\"login_username\" type=\"text\" name=\"_username\"
  228.                        value=\"";
  229.             // line 64
  230.             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.'64$this->source); })()), "html"nulltrue);
  231.             echo "\" required placeholder=\"";
  232.             if (($this->extensions['AppBundle\Twig\WebExtension']->isPluginInstalled("LDAP") && $this->extensions['CorporateTrainingBundle\Twig\Extension\WebExtension']->getParameter("ldap_login_enabled"))) {
  233.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.oauth.ldap.username_label"), "html"nulltrue);
  234.             } else {
  235.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.account_placeholder"), "html"nulltrue);
  236.             }
  237.             echo "\"/>
  238.                 <div class=\"help-block\"></div>
  239.               </div>
  240.             </div>
  241.             <input type=\"hidden\" id=\"isMayday\" name=\"isMayday\" value=\"";
  242.             // line 68
  243.             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.'68$this->source); })()), 0)) : (0)), "html"nulltrue);
  244.             echo "\">
  245.             <div class=\"form-group login-form-group login-form-group--pwd mb10\">
  246.               <label class=\"control-label hidden\" for=\"login_password\">";
  247.             // line 71
  248.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.password_label"), "html"nulltrue);
  249.             echo "</label>
  250.               <div class=\"controls input-icon-wrap\" style=\"position:relative;\">
  251.                 <i class=\"es-icon es-icon-lock\"></i>
  252.                 <input class=\"form-control input-md login-input input-md-style\" id=\"login_password\" type=\"password\"
  253.                        name=\"_password\" required placeholder='";
  254.             // line 75
  255.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.password_placeholder"), "html"nulltrue);
  256.             echo "' maxlength=\"20\"/>
  257.                 <button type=\"button\" class=\"login-password-toggle js-toggle-password\" tabindex=\"-1\" style=\"position:absolute;right:25px;top:-10%;transform:translateY(-50%);background:none;border:none;padding:0;cursor:pointer;line-height:1;\">
  258.                   <i class=\"es-icon es-icon-close\" style=\"font-size: 19px;\"></i>
  259.                 </button>
  260.               </div>
  261.             </div>
  262.             <div class=\"form-group btn-block-wrap\">
  263.               <button class=\"btn btn-primary btn-block bor-no js-btn-login\" type=\"button\" data-normal-text=\"";
  264.             // line 83
  265.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.submit_button"), "html"nulltrue);
  266.             echo "\" data-loading-text=\"";
  267.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.btn.save.submiting"), "html"nulltrue);
  268.             echo "\">";
  269.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.submit_button"), "html"nulltrue);
  270.             echo "</button>
  271.             </div>
  272.             ";
  273.             // line 86
  274.             $this->loadTemplate("login/auto-login.html.twig""login/index.html.twig"86)->display($context);
  275.             // line 87
  276.             echo "          ";
  277.         }
  278.         // line 88
  279.         echo "          ";
  280.         $this->loadTemplate("login/oauth2-login.html.twig""login/index.html.twig"88)->display($context);
  281.         // line 89
  282.         echo "          <div class=\"es-box-heading mtl\"></div>
  283.           <input type=\"hidden\" name=\"_target_path\" value=\"";
  284.         // line 91
  285.         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.'91$this->source); })()), "html"nulltrue);
  286.         echo "\">
  287.           <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  288.         // line 92
  289.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("site"), "html"nulltrue);
  290.         echo "\">
  291.         </form>
  292.         <form id=\"login-mobile-form\" class=\"form-vertical hidden\" method=\"post\" action=\"";
  293.         // line 94
  294.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login_sms");
  295.         echo "\">
  296.           ";
  297.         // line 95
  298.         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.'95$this->source); })()), 0)) : (0))) && (((isset($context["sms_login_open"]) || array_key_exists("sms_login_open"$context))) ? (_twig_default_filter((isset($context["sms_login_open"]) || array_key_exists("sms_login_open"$context) ? $context["sms_login_open"] : (function () { throw new RuntimeError('Variable "sms_login_open" does not exist.'95$this->source); })()), 0)) : (0)))) {
  299.             // line 96
  300.             echo "            ";
  301.             // line 97
  302.             echo "            <div class=\"form-group mb10\">
  303.               <label class=\"control-label hidden\" for=\"login_mobile\">";
  304.             // line 98
  305.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.user.mobile"), "html"nulltrue);
  306.             echo "</label>
  307.               <div class=\"controls input-icon-wrap\">
  308.                 <i class=\"es-icon es-icon-shoujihao\"></i>
  309.                 <input class=\"form-control input-md input-md-style\" id=\"login_mobile\" type=\"text\" name=\"login_mobile\"
  310.                        value=\"\" required placeholder=\"";
  311.             // line 102
  312.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.user.mobile"), "html"nulltrue);
  313.             echo "\" />
  314.                 <div class=\"help-block\"></div>
  315.               </div>
  316.             </div>
  317.             <div class=\"form-group login-form-group login-form-group--pwd mb10\">
  318.               <label class=\"control-label hidden\" for=\"login_sms_code\">";
  319.             // line 107
  320.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.sms_code"), "html"nulltrue);
  321.             echo "</label>
  322.               <div class=\"controls input-icon-wrap\">
  323.                 <i class=\"es-icon es-icon-duanxinyanzhengma\"></i>
  324.                 <input class=\"form-control input-md login-input input-md-style\" id=\"login_sms_code\" type=\"text\"
  325.                        name=\"login_sms_code\" required placeholder='";
  326.             // line 111
  327.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.sms_code"), "html"nulltrue);
  328.             echo "' maxlength=\"20\"/>
  329.               </div>
  330.               <div class=\"login-mobile-code-btn\">
  331.                 <a href=\"javascript:;\" class=\"js-sms-send\" data-sms-url=\"";
  332.             // line 114
  333.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edu_cloud_sms_send");
  334.             echo "\" data-sms-type=\"sms_login\">
  335.                   <span id=\"js-time-left\"></span>
  336.                   <span id=\"js-fetch-btn-text\">";
  337.             // line 116
  338.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.sms.btn"), "html"nulltrue);
  339.             echo "</span>
  340.                 </a>
  341.               </div>
  342.             </div>
  343.             <div class=\"form-group login-form-group login-form-group--pwd js-captcha_num mb10\">
  344.               <div class=\"controls input-icon-wrap\">
  345.                 <i class=\"es-icon es-icon-shuziyanzhengma\"></i>
  346.                 <input class=\"form-control input-md login-input input-md-style\" id=\"login_captcha_num\" type=\"text\"
  347.                        name=\"login_captcha_num\" placeholder='";
  348.             // line 124
  349.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login.sms.captcha.placeholder"), "html"nulltrue);
  350.             echo "' maxlength=\"20\" />
  351.                 <div class=\"help-block\"></div>
  352.               </div>
  353.               <div class=\"login-mobile-code-btn\">
  354.                 <img src=\"";
  355.             // line 128
  356.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("captcha_gen");
  357.             echo "\" data-resister-url=\"";
  358.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("captcha_gen");
  359.             echo "\" id=\"getcode_num\" title=\"";
  360.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.settings.security.change_captcha_code"), "html"nulltrue);
  361.             echo "\" style=\"cursor:pointer;height:35px;width:100%;position: relative;top: -15px;left: 20px;\">
  362.               </div>
  363.             </div>
  364.             <input type=\"hidden\" id=\"sms_token\" name=\"sms_token\" value=\"";
  365.             // line 131
  366.             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.'131$this->source); })()), 0)) : (0)), "html"nulltrue);
  367.             echo "\">
  368.             <div class=\"form-group btn-block-wrap\">
  369.               <button class=\"btn btn-primary btn-block bor-no js-btn-mobile-login\" type=\"button\" data-loading-text=\"";
  370.             // line 133
  371.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.btn.save.submiting"), "html"nulltrue);
  372.             echo "\">";
  373.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.login.submit_button"), "html"nulltrue);
  374.             echo "</button>
  375.             </div>
  376.             ";
  377.             // line 136
  378.             $this->loadTemplate("login/auto-login.html.twig""login/index.html.twig"136)->display($context);
  379.             // line 137
  380.             echo "          ";
  381.         }
  382.         // line 138
  383.         echo "
  384.           ";
  385.         // line 139
  386.         $this->loadTemplate("login/oauth2-login.html.twig""login/index.html.twig"139)->display($context);
  387.         // line 140
  388.         echo "          <div class=\"es-box-heading mtl\"></div>
  389.           <input type=\"hidden\" name=\"_target_path\" value=\"";
  390.         // line 141
  391.         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.'141$this->source); })()), "html"nulltrue);
  392.         echo "\">
  393.           <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  394.         // line 142
  395.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("site"), "html"nulltrue);
  396.         echo "\">
  397.         </form>
  398.       </div>
  399.     </div>
  400.   </div>
  401.   ";
  402.         // line 148
  403.         $this->loadTemplate("@CorporateTraining/ct-default/footer-index.html.twig""login/index.html.twig"148)->display($context);
  404.         
  405.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  406.         
  407.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  408.     }
  409.     // line 151
  410.     public function block_footer($context, array $blocks = [])
  411.     {
  412.         $macros $this->macros;
  413.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  414.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  415.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  416.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  417.         
  418.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  419.         
  420.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  421.     }
  422.     /**
  423.      * @codeCoverageIgnore
  424.      */
  425.     public function getTemplateName()
  426.     {
  427.         return "login/index.html.twig";
  428.     }
  429.     /**
  430.      * @codeCoverageIgnore
  431.      */
  432.     public function isTraitable()
  433.     {
  434.         return false;
  435.     }
  436.     /**
  437.      * @codeCoverageIgnore
  438.      */
  439.     public function getDebugInfo()
  440.     {
  441.         return array (  443 => 151,  433 => 148,  424 => 142,  420 => 141,  417 => 140,  415 => 139,  412 => 138,  409 => 137,  407 => 136,  399 => 133,  394 => 131,  384 => 128,  377 => 124,  366 => 116,  361 => 114,  355 => 111,  348 => 107,  340 => 102,  333 => 98,  330 => 97,  328 => 96,  326 => 95,  322 => 94,  317 => 92,  313 => 91,  309 => 89,  306 => 88,  303 => 87,  301 => 86,  291 => 83,  280 => 75,  273 => 71,  267 => 68,  254 => 64,  247 => 60,  244 => 59,  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,);
  442.     }
  443.     public function getSourceContext()
  444.     {
  445.         return new Source("{% extends 'layout.html.twig' %}
  446. {% import \"macro.html.twig\" as web_macro %}
  447. {% do script(['libs/jquery-validation.js','app/js/auth/login/index.js','app/js/header/index.js']) %}
  448. {% block header %}
  449.   {% include '@CorporateTraining/site-hint.html.twig' %}
  450.   {% if liveLogin|default(0) == 0 %}
  451.     {% include '@CorporateTraining/login/login-background.html.twig' %}
  452.   {% endif %}
  453. {% endblock %}
  454. {% set bodyClass = \"login index_bg\" %}
  455. {% block title %}{{ 'user.login.content_title'|trans }} - {{ parent() }}{% endblock %}
  456. {% set position_code = 1 %}
  457. {% block content %}
  458.   {% set block = data('Block', {'code': 'jianmo:login_position'}) %}
  459.   {% set sectionClass = '' %}
  460.   {% 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') %}
  461.     {% set sectionClass = 'login-third-party' %}
  462.     {% set loginThird = 1 %}
  463.   {% endif %}
  464.   {% if (not setting('login_bind.only_third_party_login') or isMayday|default(0)) and setting('login_bind.mobile_login') and sms_login_open|default(0) %}
  465.     {% set mobile_login_show = 1 %}
  466.   {% else %}
  467.     {% set mobile_login_show = 0 %}
  468.   {% endif %}
  469.   {% if mobile_login_show ==1 and loginThird|default(0) ==1%}
  470.     {% set sectionClass = 'login-third-mobile' %}
  471.   {% endif %}
  472.   {% if app.request.cookies.get('modalOpened') == 1 %}
  473.     <a href=\"#modal\" class=\" hidden\" data-toggle=\"modal\"
  474.        data-url=\"{{ path('card_info',{'cardType':app.request.query.get('cardType'),'cardId':app.request.query.get('cardId')}) }}\"
  475.        class=\"hidden\"><span class=\"receive-modal\"></span></a>
  476.   {% endif %}
  477.   <div class=\"login-container\" data-code={{ setting(\"site.loginPosition\")|default('center') }}>
  478.     <div class=\"es-section login-section login-write-info {{ sectionClass }}  mbm\">
  479.       {% if setting('site.loginLogo') %}
  480.         <div class=\"login-logo-wrap text-center\">
  481.           <img class=\"login-logo\" src=\"{{ filepath('../' ~ setting('site.loginLogo'),'') }}\">
  482.         </div>
  483.       {% else %}
  484.         <div class=\"login-logo-wrap text-center\">
  485.           <img class=\"login-logo\" src=\"/assets/img/logo/login_logo.png\">
  486.         </div>
  487.       {% endif %}
  488.       <div class=\"login-main\">
  489.         {% if mobile_login_show|default(0) %}
  490.           <ul class=\"login-nav login-nav-tabs\" role=\"tablist\">
  491.             <li class=\"js-tab-link active \" data-index=\"0\" role=\"presentation\"><a href=\"javascript:;\">{{ 'login.password_type'|trans}}</a></li>
  492.             <li class=\"js-tab-link\" data-index=\"1\" role=\"presentation\"><a href=\"javascript:;\">{{ 'login.mobile_type'|trans}}</a></li>
  493.           </ul>
  494.         {% endif %}
  495.         <form id=\"login-form\" class=\"form-vertical\" method=\"post\" action=\"{{ path('login_check') }}\">
  496.           {% if not setting('login_bind.only_third_party_login') or isMayday|default(0)  %}
  497.             <div class=\"form-group mb10\">
  498.               <label class=\"control-label hidden\" for=\"login_username\">{{ 'user.login.account_label'|trans }}</label>
  499.               <div class=\"controls input-icon-wrap\">
  500.                 <i class=\"es-icon es-icon-my\"></i>
  501.                 <input class=\"form-control input-md input-md-style\" id=\"login_username\" type=\"text\" name=\"_username\"
  502.                        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 %}\"/>
  503.                 <div class=\"help-block\"></div>
  504.               </div>
  505.             </div>
  506.             <input type=\"hidden\" id=\"isMayday\" name=\"isMayday\" value=\"{{ isMayday|default(0) }}\">
  507.             <div class=\"form-group login-form-group login-form-group--pwd mb10\">
  508.               <label class=\"control-label hidden\" for=\"login_password\">{{ 'user.login.password_label'|trans }}</label>
  509.               <div class=\"controls input-icon-wrap\" style=\"position:relative;\">
  510.                 <i class=\"es-icon es-icon-lock\"></i>
  511.                 <input class=\"form-control input-md login-input input-md-style\" id=\"login_password\" type=\"password\"
  512.                        name=\"_password\" required placeholder='{{ 'user.login.password_placeholder'|trans }}' maxlength=\"20\"/>
  513.                 <button type=\"button\" class=\"login-password-toggle js-toggle-password\" tabindex=\"-1\" style=\"position:absolute;right:25px;top:-10%;transform:translateY(-50%);background:none;border:none;padding:0;cursor:pointer;line-height:1;\">
  514.                   <i class=\"es-icon es-icon-close\" style=\"font-size: 19px;\"></i>
  515.                 </button>
  516.               </div>
  517.             </div>
  518.             <div class=\"form-group btn-block-wrap\">
  519.               <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>
  520.             </div>
  521.             {% include 'login/auto-login.html.twig' %}
  522.           {% endif %}
  523.           {% include 'login/oauth2-login.html.twig' %}
  524.           <div class=\"es-box-heading mtl\"></div>
  525.           <input type=\"hidden\" name=\"_target_path\" value=\"{{ _target_path }}\">
  526.           <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('site') }}\">
  527.         </form>
  528.         <form id=\"login-mobile-form\" class=\"form-vertical hidden\" method=\"post\" action=\"{{ path('login_sms') }}\">
  529.           {% if (not setting('login_bind.only_third_party_login') or isMayday|default(0)) and sms_login_open|default(0) %}
  530.             {# {{ web_macro.flash_messages() }} #}
  531.             <div class=\"form-group mb10\">
  532.               <label class=\"control-label hidden\" for=\"login_mobile\">{{ 'admin.user.mobile'|trans }}</label>
  533.               <div class=\"controls input-icon-wrap\">
  534.                 <i class=\"es-icon es-icon-shoujihao\"></i>
  535.                 <input class=\"form-control input-md input-md-style\" id=\"login_mobile\" type=\"text\" name=\"login_mobile\"
  536.                        value=\"\" required placeholder=\"{{ 'admin.user.mobile'|trans }}\" />
  537.                 <div class=\"help-block\"></div>
  538.               </div>
  539.             </div>
  540.             <div class=\"form-group login-form-group login-form-group--pwd mb10\">
  541.               <label class=\"control-label hidden\" for=\"login_sms_code\">{{ 'form.sms_code'|trans }}</label>
  542.               <div class=\"controls input-icon-wrap\">
  543.                 <i class=\"es-icon es-icon-duanxinyanzhengma\"></i>
  544.                 <input class=\"form-control input-md login-input input-md-style\" id=\"login_sms_code\" type=\"text\"
  545.                        name=\"login_sms_code\" required placeholder='{{ 'form.sms_code'|trans }}' maxlength=\"20\"/>
  546.               </div>
  547.               <div class=\"login-mobile-code-btn\">
  548.                 <a href=\"javascript:;\" class=\"js-sms-send\" data-sms-url=\"{{ path('edu_cloud_sms_send') }}\" data-sms-type=\"sms_login\">
  549.                   <span id=\"js-time-left\"></span>
  550.                   <span id=\"js-fetch-btn-text\">{{ 'login.sms.btn'|trans }}</span>
  551.                 </a>
  552.               </div>
  553.             </div>
  554.             <div class=\"form-group login-form-group login-form-group--pwd js-captcha_num mb10\">
  555.               <div class=\"controls input-icon-wrap\">
  556.                 <i class=\"es-icon es-icon-shuziyanzhengma\"></i>
  557.                 <input class=\"form-control input-md login-input input-md-style\" id=\"login_captcha_num\" type=\"text\"
  558.                        name=\"login_captcha_num\" placeholder='{{'login.sms.captcha.placeholder'|trans}}' maxlength=\"20\" />
  559.                 <div class=\"help-block\"></div>
  560.               </div>
  561.               <div class=\"login-mobile-code-btn\">
  562.                 <img src=\"{{ path('captcha_gen') }}\" data-resister-url=\"{{ path('captcha_gen') }}\" id=\"getcode_num\" title=\"{{'user.settings.security.change_captcha_code'|trans}}\" style=\"cursor:pointer;height:35px;width:100%;position: relative;top: -15px;left: 20px;\">
  563.               </div>
  564.             </div>
  565.             <input type=\"hidden\" id=\"sms_token\" name=\"sms_token\" value=\"{{ isMayday|default(0) }}\">
  566.             <div class=\"form-group btn-block-wrap\">
  567.               <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>
  568.             </div>
  569.             {% include 'login/auto-login.html.twig' %}
  570.           {% endif %}
  571.           {% include 'login/oauth2-login.html.twig' %}
  572.           <div class=\"es-box-heading mtl\"></div>
  573.           <input type=\"hidden\" name=\"_target_path\" value=\"{{ _target_path }}\">
  574.           <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('site') }}\">
  575.         </form>
  576.       </div>
  577.     </div>
  578.   </div>
  579.   {% include '@CorporateTraining/ct-default/footer-index.html.twig' %}
  580. {% endblock %}
  581. {% block footer %}{% endblock %}
  582. ""login/index.html.twig""/var/www/hangzhou/hz-4.77.edusoho.cn/app/Resources/views/login/index.html.twig");
  583.     }
  584. }