app/cache/dev/Jianmo/twig/11/1131ce4b2bea00ae53c144ca95d7c546e6996a96a7e8958431154b11d9cc36a6.php line 353

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. /* password-reset/index.html.twig */
  14. class __TwigTemplate_bd892067e5dd7cfb39091e2a2d52cb77297c21a49838cc7afdb9589d69fda2aa 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""password-reset/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""password-reset/index.html.twig"));
  41.         // line 9
  42.         $context["bodyClass"] = "pwd_reset index_bg_item";
  43.         // line 11
  44.         $this->extensions['Codeages\PluginBundle\Twig\HtmlExtension']->script(["libs/jquery-validation.js""app/js/auth/password-reset/index.js"]);
  45.         // line 1
  46.         $this->parent $this->loadTemplate("layout.html.twig""password-reset/index.html.twig"1);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  50.         
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  52.     }
  53.     // line 3
  54.     public function block_header($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  61.         // line 4
  62.         echo "  ";
  63.         $this->loadTemplate("site-hint.html.twig""password-reset/index.html.twig"4)->display($context);
  64.         // line 5
  65.         echo "  ";
  66.         echo $this->extensions['AppBundle\Twig\BlockExtension']->showBlock("jianmo:login_bg");
  67.         echo "
  68.   ";
  69.         
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  71.         
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  73.     }
  74.     // line 10
  75.     public function block_title($context, array $blocks = [])
  76.     {
  77.         $macros $this->macros;
  78.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  80.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  82.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.title"), "html"nulltrue);
  83.         echo " - ";
  84.         $this->displayParentBlock("title"$context$blocks);
  85.         
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  87.         
  88.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  89.     }
  90.     // line 18
  91.     public function block_content($context, array $blocks = [])
  92.     {
  93.         $macros $this->macros;
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  95.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  96.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  97.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  98.         // line 19
  99.         echo "  <div class=\"pwd-reset-container\">
  100.     <div class=\"pwd-reset-section\">
  101.       <div class=\"panel panel-default panel-page pwd-reset-main clearfix\">
  102.         ";
  103.         // line 22
  104.         if ((((!== twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_email_crm.status"), "disable"), "enable")) && (!== twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_sms.sms_enabled"), ""), "1"))) && (!== twig_compare($this->extensions['AppBundle\Twig\WebExtension']->getSetting("mailer.enabled"""), "1")))) {
  105.             // line 23
  106.             echo "          <h3 class=\"text-center mbxl\">";
  107.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content"), "html"nulltrue);
  108.             echo "</h3>
  109.           <div class=\"text-center mbm\"><a class=\"btn btn-default\" href=\"javascript:history.back();\">";
  110.             // line 24
  111.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.btn.return"), "html"nulltrue);
  112.             echo "</a></div>
  113.         ";
  114.         } else {
  115.             // line 26
  116.             echo "          <h2 class=\"ft-xlg text-center mbxl\">";
  117.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.title"), "html"nulltrue);
  118.             echo "</h2>
  119.         ";
  120.         }
  121.         // line 28
  122.         echo "        <ul class=\"nav nav-tabs js-find-password\">
  123.           ";
  124.         // line 29
  125.         if (((=== twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_email_crm.status"), "disable"), "enable")) || (=== twig_compare($this->extensions['AppBundle\Twig\WebExtension']->getSetting("mailer.enabled"""), "1")))) {
  126.             // line 30
  127.             echo "          <li class=\"active js-find-by-email nav-reset-tab\">
  128.             <a style=\"cursor: pointer;\">";
  129.             // line 31
  130.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.email"), "html"nulltrue);
  131.             echo "
  132.             </a>
  133.           </li>
  134.           ";
  135.         }
  136.         // line 35
  137.         echo "          ";
  138.         if ((=== twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_sms.sms_enabled"), ""), "1"))) {
  139.             // line 36
  140.             echo "            <li class=\"js-find-by-mobile nav-reset-tab\">
  141.               <a style=\"cursor: pointer;\">";
  142.             // line 37
  143.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.mobile"), "html"nulltrue);
  144.             echo "
  145.               </a>
  146.             </li>
  147.           ";
  148.         }
  149.         // line 41
  150.         echo "        </ul>
  151.         ";
  152.         // line 43
  153.         if (((=== twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_email_crm.status"), "disable"), "enable")) || (=== twig_compare($this->extensions['AppBundle\Twig\WebExtension']->getSetting("mailer.enabled"""), "1")))) {
  154.             // line 44
  155.             echo "        <form id=\"password-reset-form\" class=\"form-vertical\" method=\"post\">
  156.           <div class=\"form-group input-icon-wrap\">
  157.             ";
  158.             // line 46
  159.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'46$this->source); })()), "email", [], "any"falsefalsefalse46), 'label', ["label_attr" => ["class" => "control-label hidden"]] + (twig_test_empty($_label_ $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.email")) ? [] : ["label" => $_label_]));
  160.             echo "
  161.             <i class=\"es-icon es-icon-mail\"></i>
  162.             <div class=\"controls\">
  163.               ";
  164.             // line 49
  165.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'49$this->source); })()), "email", [], "any"falsefalsefalse49), 'widget', ["attr" => ["class" => "form-control input-md-style""placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.email.placeholder")]]);
  166.             echo "
  167.               <p class=\"help-block\">";
  168.             // line 50
  169.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(" ", ["%name%" => $this->extensions['AppBundle\Twig\WebExtension']->getSetting("site.name")]), "html"nulltrue);
  170.             echo "</p>
  171.             </div>
  172.           </div>
  173.           <div class=\"form-group\">
  174.             <div class=\"controls password-btn-block-wrap\">
  175.               ";
  176.             // line 55
  177.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'55$this->source); })()), 'rest');
  178.             echo "
  179.               <button type=\"submit\" class=\"btn btn-primary btn-block bor-no\"
  180.                       data-loading-text=\"";
  181.             // line 57
  182.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.btn.reset_btn.loading"), "html"nulltrue);
  183.             echo "...\">";
  184.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.btn.reset_btn"), "html"nulltrue);
  185.             echo "</button>
  186.             </div>
  187.             ";
  188.             // line 60
  189.             if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'60$this->source); })())) {
  190.                 // line 61
  191.                 echo "              <div id=\"alertxx\" class=\"alert alert-danger-position\">";
  192.                 echo twig_escape_filter($this->env, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'61$this->source); })()), "html"nulltrue);
  193.                 echo "</div> ";
  194.             }
  195.             // line 62
  196.             echo "            <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  197.             echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("site"), "html"nulltrue);
  198.             echo "\">
  199.           </div>
  200.           <div class=\"pull-right mbm\"><a class=\"link-gray\" href=\"";
  201.             // line 64
  202.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  203.             echo "\">";
  204.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.btn.return"), "html"nulltrue);
  205.             echo "</a></div>
  206.         </form>
  207.         ";
  208.         }
  209.         // line 67
  210.         echo "
  211.         ";
  212.         // line 68
  213.         if ((=== twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_sms.sms_enabled"), ""), "1"))) {
  214.             // line 69
  215.             echo "        <form id=\"password-reset-by-mobile-form\" class=\"form-vertical\"
  216.               action=\"";
  217.             // line 70
  218.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("password_reset_by_sms");
  219.             echo "\" method=\"post\" ";
  220.             if ((((=== twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_email_crm.status"), "disable"), "enable")) || (=== twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_sms.sms_enabled"), ""), "1"))) && ((=== twig_compare($this->extensions['AppBundle\Twig\WebExtension']->getSetting("mailer.enabled"""), "1")) || (=== twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_email_crm.status"), "disable"), "enable"))))) {
  221.                 echo " style=\"display:none;\" ";
  222.             }
  223.             echo ">
  224.           ";
  225.             // line 77
  226.             echo "
  227.           <div class=\"form-group\">
  228.             <label class=\"control-label required hidden\" for=\"mobile\">";
  229.             // line 79
  230.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.mobile"), "html"nulltrue);
  231.             echo "</label>
  232.             <div class=\"controls input-icon-wrap\">
  233.               <i class=\"es-icon es-icon-phone1 phone-icon\"></i>
  234.               <input type=\"text\" id=\"mobile\" name=\"mobile\"
  235.                      data-url=\"";
  236.             // line 83
  237.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("password_reset_check_mobile");
  238.             echo "\"
  239.                      class=\"form-control input-md-style\" data-role=\"mobile\"
  240.                      placeholder=\"";
  241.             // line 85
  242.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.mobile.placeholder"), "html"nulltrue);
  243.             echo "\">
  244.             </div>
  245.           </div>
  246.           <div class=\"form-group\">
  247.             <label class=\"control-label required hidden\" for=\"sms-code\">";
  248.             // line 90
  249.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.sms_code"), "html"nulltrue);
  250.             echo "</label>
  251.             <div class=\"controls input-icon-wrap\">
  252.               <div class=\"sms-check-btn pull-right\">
  253.                 <a href=\"#modal\" data-toggle=\"modal\" class=\"btn btn-default btn-sm js-sms-send disabled\"
  254.                    data-url=\"";
  255.             // line 94
  256.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_captcha_modal");
  257.             echo "\"
  258.                    data-sms-url=\"";
  259.             // line 95
  260.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edu_cloud_sms_send");
  261.             echo "\">
  262.                   <span id=\"js-time-left\"></span>
  263.                   <span id=\"js-fetch-btn-text\">";
  264.             // line 97
  265.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.get_sms_code"), "html"nulltrue);
  266.             echo "</span>
  267.                 </a>
  268.               </div>
  269.               <div class=\"sms-check-input\">
  270.                 <input type=\"text\" class=\"form-control input-md-sms-style input-md-style\" id=\"sms-code\"
  271.                        name=\"sms_code\" required=\"required\"
  272.                        data-url=\"";
  273.             // line 103
  274.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edu_cloud_sms_check", ["type" => "sms_forget_password"]);
  275.             echo "\"
  276.                        placeholder=\"";
  277.             // line 104
  278.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.sms_check"), "html"nulltrue);
  279.             echo "\">
  280.               </div>
  281.               <div class=\"help-block\"></div>
  282.             </div>
  283.           </div>
  284.           <div class=\"form-group\">
  285.             <div class=\"controls password-btn-block-wrap\">
  286.               <button type=\"submit\" class=\"btn btn-primary btn-lg btn-block bor-no\"
  287.                       data-loading-text=\"";
  288.             // line 114
  289.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.submit_btn_loading"), "html"nulltrue);
  290.             echo "\">";
  291.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.btn.reset_btn"), "html"nulltrue);
  292.             echo "</button>
  293.             </div>
  294.             <input type=\"hidden\" name=\"_csrf_token\" value=\"";
  295.             // line 117
  296.             echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("site"), "html"nulltrue);
  297.             echo "\">
  298.           </div>
  299.           <div class=\"pull-right mbm\"><a class=\"link-gray\" href=\"javascript:history.back();\">";
  300.             // line 120
  301.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.btn.return"), "html"nulltrue);
  302.             echo "</a></div>
  303.         </form>
  304.         ";
  305.         }
  306.         // line 123
  307.         echo "      </div><!-- /panel -->
  308.     </div>
  309.   </div>
  310. ";
  311.         
  312.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  313.         
  314.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  315.     }
  316.     // line 130
  317.     public function block_footer($context, array $blocks = [])
  318.     {
  319.         $macros $this->macros;
  320.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  321.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  322.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  323.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  324.         // line 131
  325.         echo "
  326.   ";
  327.         // line 132
  328.         $this->loadTemplate("@CorporateTraining/ct-default/footer-index.html.twig""password-reset/index.html.twig"132)->display($context);
  329.         
  330.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  331.         
  332.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  333.     }
  334.     /**
  335.      * @codeCoverageIgnore
  336.      */
  337.     public function getTemplateName()
  338.     {
  339.         return "password-reset/index.html.twig";
  340.     }
  341.     /**
  342.      * @codeCoverageIgnore
  343.      */
  344.     public function isTraitable()
  345.     {
  346.         return false;
  347.     }
  348.     /**
  349.      * @codeCoverageIgnore
  350.      */
  351.     public function getDebugInfo()
  352.     {
  353.         return array (  366 => 132,  363 => 131,  353 => 130,  338 => 123,  332 => 120,  326 => 117,  318 => 114,  305 => 104,  301 => 103,  292 => 97,  287 => 95,  283 => 94,  276 => 90,  268 => 85,  263 => 83,  256 => 79,  252 => 77,  244 => 70,  241 => 69,  239 => 68,  236 => 67,  228 => 64,  222 => 62,  217 => 61,  215 => 60,  207 => 57,  202 => 55,  194 => 50,  190 => 49,  184 => 46,  180 => 44,  178 => 43,  174 => 41,  167 => 37,  164 => 36,  161 => 35,  154 => 31,  151 => 30,  149 => 29,  146 => 28,  140 => 26,  135 => 24,  130 => 23,  128 => 22,  123 => 19,  113 => 18,  92 => 10,  79 => 5,  76 => 4,  66 => 3,  55 => 1,  53 => 11,  51 => 9,  38 => 1,);
  354.     }
  355.     public function getSourceContext()
  356.     {
  357.         return new Source("{% extends 'layout.html.twig' %}
  358. {% block header %}
  359.   {% include 'site-hint.html.twig' %}
  360.   {{ block_show('jianmo:login_bg') }}
  361.   {#{% include '@CorporateTraining/ct-default/header.html.twig' %}#}
  362. {% endblock %}
  363. {% set bodyClass = \"pwd_reset index_bg_item\" %}
  364. {% block title %}{{ 'password_reset.title'|trans }} - {{ parent() }}{% endblock %}
  365. {% do script(['libs/jquery-validation.js','app/js/auth/password-reset/index.js']) %}
  366. {#{% block stylesheets %}
  367.     {{ parent() }}
  368.     <link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('bundles/corporatetraining/css/main.css') }}\">
  369. {% endblock %}#}
  370. {% block content %}
  371.   <div class=\"pwd-reset-container\">
  372.     <div class=\"pwd-reset-section\">
  373.       <div class=\"panel panel-default panel-page pwd-reset-main clearfix\">
  374.         {% if (setting('cloud_email_crm.status')|default('disable')) != 'enable' and (setting('cloud_sms.sms_enabled')|default('')) != '1' and (setting('mailer.enabled', '')) != '1' %}
  375.           <h3 class=\"text-center mbxl\">{{ 'password_reset.content'|trans }}</h3>
  376.           <div class=\"text-center mbm\"><a class=\"btn btn-default\" href=\"javascript:history.back();\">{{ 'form.btn.return'|trans }}</a></div>
  377.         {% else %}
  378.           <h2 class=\"ft-xlg text-center mbxl\">{{ 'password_reset.content.title'|trans }}</h2>
  379.         {% endif %}
  380.         <ul class=\"nav nav-tabs js-find-password\">
  381.           {% if (setting('cloud_email_crm.status')|default('disable')) == 'enable' or (setting('mailer.enabled', '')) == '1'%}
  382.           <li class=\"active js-find-by-email nav-reset-tab\">
  383.             <a style=\"cursor: pointer;\">{{ 'password_reset.content.email'|trans }}
  384.             </a>
  385.           </li>
  386.           {% endif %}
  387.           {% if (setting('cloud_sms.sms_enabled')|default('')) == '1' %}
  388.             <li class=\"js-find-by-mobile nav-reset-tab\">
  389.               <a style=\"cursor: pointer;\">{{ 'password_reset.content.mobile'|trans }}
  390.               </a>
  391.             </li>
  392.           {% endif %}
  393.         </ul>
  394.         {% if (setting('cloud_email_crm.status')|default('disable')) == 'enable' or (setting('mailer.enabled', '')) == '1' %}
  395.         <form id=\"password-reset-form\" class=\"form-vertical\" method=\"post\">
  396.           <div class=\"form-group input-icon-wrap\">
  397.             {{ form_label(form.email, 'password_reset.content.email'|trans, {label_attr:{class:'control-label hidden'}}) }}
  398.             <i class=\"es-icon es-icon-mail\"></i>
  399.             <div class=\"controls\">
  400.               {{ form_widget(form.email, {attr:{class:'form-control input-md-style', placeholder:'password_reset.content.email.placeholder'|trans}}) }}
  401.               <p class=\"help-block\">{{ ' '|trans({'%name%': setting('site.name')}) }}</p>
  402.             </div>
  403.           </div>
  404.           <div class=\"form-group\">
  405.             <div class=\"controls password-btn-block-wrap\">
  406.               {{ form_rest(form) }}
  407.               <button type=\"submit\" class=\"btn btn-primary btn-block bor-no\"
  408.                       data-loading-text=\"{{ 'password_reset.content.btn.reset_btn.loading'|trans }}...\">{{ 'password_reset.content.btn.reset_btn'|trans }}</button>
  409.             </div>
  410.             {% if error %}
  411.               <div id=\"alertxx\" class=\"alert alert-danger-position\">{{ error }}</div> {% endif %}
  412.             <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('site') }}\">
  413.           </div>
  414.           <div class=\"pull-right mbm\"><a class=\"link-gray\" href=\"{{ path('login') }}\">{{ 'form.btn.return'|trans }}</a></div>
  415.         </form>
  416.         {% endif %}
  417.         {% if (setting('cloud_sms.sms_enabled')|default('')) == '1' %}
  418.         <form id=\"password-reset-by-mobile-form\" class=\"form-vertical\"
  419.               action=\"{{ path('password_reset_by_sms') }}\" method=\"post\" {% if ((setting('cloud_email_crm.status')|default('disable')) == 'enable' or (setting('cloud_sms.sms_enabled')|default('')) == '1') and ((setting('mailer.enabled', '')) == '1' or (setting('cloud_email_crm.status')|default('disable')) == 'enable') %} style=\"display:none;\" {% endif %}>
  420.           {# <div class=\"form-group\">
  421.             <label class=\"control-label required\" for=\"nickname\">用户名</label>
  422.             <div class=\"controls\">
  423.               <input type=\"text\" id=\"nickname\" name=\"nickname\"  class=\"form-control\" data-role=\"nickname\">
  424.             </div>
  425.           </div> #}
  426.           <div class=\"form-group\">
  427.             <label class=\"control-label required hidden\" for=\"mobile\">{{ 'password_reset.content.mobile'|trans }}</label>
  428.             <div class=\"controls input-icon-wrap\">
  429.               <i class=\"es-icon es-icon-phone1 phone-icon\"></i>
  430.               <input type=\"text\" id=\"mobile\" name=\"mobile\"
  431.                      data-url=\"{{ path('password_reset_check_mobile') }}\"
  432.                      class=\"form-control input-md-style\" data-role=\"mobile\"
  433.                      placeholder=\"{{ 'password_reset.content.mobile.placeholder'|trans }}\">
  434.             </div>
  435.           </div>
  436.           <div class=\"form-group\">
  437.             <label class=\"control-label required hidden\" for=\"sms-code\">{{ 'password_reset.content.sms_code'|trans }}</label>
  438.             <div class=\"controls input-icon-wrap\">
  439.               <div class=\"sms-check-btn pull-right\">
  440.                 <a href=\"#modal\" data-toggle=\"modal\" class=\"btn btn-default btn-sm js-sms-send disabled\"
  441.                    data-url=\"{{ path('register_captcha_modal') }}\"
  442.                    data-sms-url=\"{{ path('edu_cloud_sms_send') }}\">
  443.                   <span id=\"js-time-left\"></span>
  444.                   <span id=\"js-fetch-btn-text\">{{ 'password_reset.content.get_sms_code'|trans }}</span>
  445.                 </a>
  446.               </div>
  447.               <div class=\"sms-check-input\">
  448.                 <input type=\"text\" class=\"form-control input-md-sms-style input-md-style\" id=\"sms-code\"
  449.                        name=\"sms_code\" required=\"required\"
  450.                        data-url=\"{{ path('edu_cloud_sms_check',{type:'sms_forget_password'}) }}\"
  451.                        placeholder=\"{{ 'password_reset.content.sms_check'|trans }}\">
  452.               </div>
  453.               <div class=\"help-block\"></div>
  454.             </div>
  455.           </div>
  456.           <div class=\"form-group\">
  457.             <div class=\"controls password-btn-block-wrap\">
  458.               <button type=\"submit\" class=\"btn btn-primary btn-lg btn-block bor-no\"
  459.                       data-loading-text=\"{{ 'password_reset.submit_btn_loading'|trans }}\">{{ 'password_reset.content.btn.reset_btn'|trans }}</button>
  460.             </div>
  461.             <input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('site') }}\">
  462.           </div>
  463.           <div class=\"pull-right mbm\"><a class=\"link-gray\" href=\"javascript:history.back();\">{{ 'form.btn.return'|trans }}</a></div>
  464.         </form>
  465.         {% endif %}
  466.       </div><!-- /panel -->
  467.     </div>
  468.   </div>
  469. {% endblock %}
  470. {% block footer %}
  471.   {% include '@CorporateTraining/ct-default/footer-index.html.twig' %}
  472. {% endblock %}
  473. ""password-reset/index.html.twig""/var/www/hangzhou/hz-2.77.edusoho.cn/src/CorporateTrainingBundle/Resources/views/password-reset/index.html.twig");
  474.     }
  475. }