app/cache/dev/Jianmo/twig/b3/b33317eb3d44bfc09345dda6c9093f7955f79b988a583de523626296b3d8e20c.php line 41

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