<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* password-reset/index.html.twig */
class __TwigTemplate_bd892067e5dd7cfb39091e2a2d52cb77297c21a49838cc7afdb9589d69fda2aa extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'header' => [$this, 'block_header'],
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "password-reset/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "password-reset/index.html.twig"));
// line 9
$context["bodyClass"] = "pwd_reset index_bg_item";
// line 11
$this->extensions['Codeages\PluginBundle\Twig\HtmlExtension']->script(["libs/jquery-validation.js", "app/js/auth/password-reset/index.js"]);
// line 1
$this->parent = $this->loadTemplate("layout.html.twig", "password-reset/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_header($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 4
echo " ";
$this->loadTemplate("site-hint.html.twig", "password-reset/index.html.twig", 4)->display($context);
// line 5
echo " ";
echo $this->extensions['AppBundle\Twig\BlockExtension']->showBlock("jianmo:login_bg");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 10
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.title"), "html", null, true);
echo " - ";
$this->displayParentBlock("title", $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 18
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 19
echo " <div class=\"pwd-reset-container\">
<div class=\"pwd-reset-section\">
<div class=\"panel panel-default panel-page pwd-reset-main clearfix\">
";
// line 22
if ((((0 !== twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_email_crm.status"), "disable"), "enable")) && (0 !== twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_sms.sms_enabled"), ""), "1"))) && (0 !== twig_compare($this->extensions['AppBundle\Twig\WebExtension']->getSetting("mailer.enabled", ""), "1")))) {
// line 23
echo " <h3 class=\"text-center mbxl\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content"), "html", null, true);
echo "</h3>
<div class=\"text-center mbm\"><a class=\"btn btn-default\" href=\"javascript:history.back();\">";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.btn.return"), "html", null, true);
echo "</a></div>
";
} else {
// line 26
echo " <h2 class=\"ft-xlg text-center mbxl\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.title"), "html", null, true);
echo "</h2>
";
}
// line 28
echo " <ul class=\"nav nav-tabs js-find-password\">
";
// line 29
if (((0 === twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_email_crm.status"), "disable"), "enable")) || (0 === twig_compare($this->extensions['AppBundle\Twig\WebExtension']->getSetting("mailer.enabled", ""), "1")))) {
// line 30
echo " <li class=\"active js-find-by-email nav-reset-tab\">
<a style=\"cursor: pointer;\">";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.email"), "html", null, true);
echo "
</a>
</li>
";
}
// line 35
echo " ";
if ((0 === twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_sms.sms_enabled"), ""), "1"))) {
// line 36
echo " <li class=\"js-find-by-mobile nav-reset-tab\">
<a style=\"cursor: pointer;\">";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.mobile"), "html", null, true);
echo "
</a>
</li>
";
}
// line 41
echo " </ul>
";
// line 43
if (((0 === twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_email_crm.status"), "disable"), "enable")) || (0 === twig_compare($this->extensions['AppBundle\Twig\WebExtension']->getSetting("mailer.enabled", ""), "1")))) {
// line 44
echo " <form id=\"password-reset-form\" class=\"form-vertical\" method=\"post\">
<div class=\"form-group input-icon-wrap\">
";
// line 46
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", false, false, false, 46), '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_]));
echo "
<i class=\"es-icon es-icon-mail\"></i>
<div class=\"controls\">
";
// line 49
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", false, false, false, 49), 'widget', ["attr" => ["class" => "form-control input-md-style", "placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.email.placeholder")]]);
echo "
<p class=\"help-block\">";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(" ", ["%name%" => $this->extensions['AppBundle\Twig\WebExtension']->getSetting("site.name")]), "html", null, true);
echo "</p>
</div>
</div>
<div class=\"form-group\">
<div class=\"controls password-btn-block-wrap\">
";
// line 55
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');
echo "
<button type=\"submit\" class=\"btn btn-primary btn-block bor-no\"
data-loading-text=\"";
// line 57
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.btn.reset_btn.loading"), "html", null, true);
echo "...\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.btn.reset_btn"), "html", null, true);
echo "</button>
</div>
";
// line 60
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 60, $this->source); })())) {
// line 61
echo " <div id=\"alertxx\" class=\"alert alert-danger-position\">";
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", null, true);
echo "</div> ";
}
// line 62
echo " <input type=\"hidden\" name=\"_csrf_token\" value=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("site"), "html", null, true);
echo "\">
</div>
<div class=\"pull-right mbm\"><a class=\"link-gray\" href=\"";
// line 64
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.btn.return"), "html", null, true);
echo "</a></div>
</form>
";
}
// line 67
echo "
";
// line 68
if ((0 === twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_sms.sms_enabled"), ""), "1"))) {
// line 69
echo " <form id=\"password-reset-by-mobile-form\" class=\"form-vertical\"
action=\"";
// line 70
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("password_reset_by_sms");
echo "\" method=\"post\" ";
if ((((0 === twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_email_crm.status"), "disable"), "enable")) || (0 === twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_sms.sms_enabled"), ""), "1"))) && ((0 === twig_compare($this->extensions['AppBundle\Twig\WebExtension']->getSetting("mailer.enabled", ""), "1")) || (0 === twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_email_crm.status"), "disable"), "enable"))))) {
echo " style=\"display:none;\" ";
}
echo ">
";
// line 77
echo "
<div class=\"form-group\">
<label class=\"control-label required hidden\" for=\"mobile\">";
// line 79
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.mobile"), "html", null, true);
echo "</label>
<div class=\"controls input-icon-wrap\">
<i class=\"es-icon es-icon-phone1 phone-icon\"></i>
<input type=\"text\" id=\"mobile\" name=\"mobile\"
data-url=\"";
// line 83
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("password_reset_check_mobile");
echo "\"
class=\"form-control input-md-style\" data-role=\"mobile\"
placeholder=\"";
// line 85
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.mobile.placeholder"), "html", null, true);
echo "\">
</div>
</div>
<div class=\"form-group\">
<label class=\"control-label required hidden\" for=\"sms-code\">";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.sms_code"), "html", null, true);
echo "</label>
<div class=\"controls input-icon-wrap\">
<div class=\"sms-check-btn pull-right\">
<a href=\"#modal\" data-toggle=\"modal\" class=\"btn btn-default btn-sm js-sms-send disabled\"
data-url=\"";
// line 94
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_captcha_modal");
echo "\"
data-sms-url=\"";
// line 95
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edu_cloud_sms_send");
echo "\">
<span id=\"js-time-left\"></span>
<span id=\"js-fetch-btn-text\">";
// line 97
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.get_sms_code"), "html", null, true);
echo "</span>
</a>
</div>
<div class=\"sms-check-input\">
<input type=\"text\" class=\"form-control input-md-sms-style input-md-style\" id=\"sms-code\"
name=\"sms_code\" required=\"required\"
data-url=\"";
// line 103
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edu_cloud_sms_check", ["type" => "sms_forget_password"]);
echo "\"
placeholder=\"";
// line 104
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.sms_check"), "html", null, true);
echo "\">
</div>
<div class=\"help-block\"></div>
</div>
</div>
<div class=\"form-group\">
<div class=\"controls password-btn-block-wrap\">
<button type=\"submit\" class=\"btn btn-primary btn-lg btn-block bor-no\"
data-loading-text=\"";
// line 114
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.submit_btn_loading"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.btn.reset_btn"), "html", null, true);
echo "</button>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 117
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("site"), "html", null, true);
echo "\">
</div>
<div class=\"pull-right mbm\"><a class=\"link-gray\" href=\"javascript:history.back();\">";
// line 120
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form.btn.return"), "html", null, true);
echo "</a></div>
</form>
";
}
// line 123
echo " </div><!-- /panel -->
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 130
public function block_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 131
echo "
";
// line 132
$this->loadTemplate("@CorporateTraining/ct-default/footer-index.html.twig", "password-reset/index.html.twig", 132)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "password-reset/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% block header %}
{% include 'site-hint.html.twig' %}
{{ block_show('jianmo:login_bg') }}
{#{% include '@CorporateTraining/ct-default/header.html.twig' %}#}
{% endblock %}
{% set bodyClass = \"pwd_reset index_bg_item\" %}
{% block title %}{{ 'password_reset.title'|trans }} - {{ parent() }}{% endblock %}
{% do script(['libs/jquery-validation.js','app/js/auth/password-reset/index.js']) %}
{#{% block stylesheets %}
{{ parent() }}
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('bundles/corporatetraining/css/main.css') }}\">
{% endblock %}#}
{% block content %}
<div class=\"pwd-reset-container\">
<div class=\"pwd-reset-section\">
<div class=\"panel panel-default panel-page pwd-reset-main clearfix\">
{% if (setting('cloud_email_crm.status')|default('disable')) != 'enable' and (setting('cloud_sms.sms_enabled')|default('')) != '1' and (setting('mailer.enabled', '')) != '1' %}
<h3 class=\"text-center mbxl\">{{ 'password_reset.content'|trans }}</h3>
<div class=\"text-center mbm\"><a class=\"btn btn-default\" href=\"javascript:history.back();\">{{ 'form.btn.return'|trans }}</a></div>
{% else %}
<h2 class=\"ft-xlg text-center mbxl\">{{ 'password_reset.content.title'|trans }}</h2>
{% endif %}
<ul class=\"nav nav-tabs js-find-password\">
{% if (setting('cloud_email_crm.status')|default('disable')) == 'enable' or (setting('mailer.enabled', '')) == '1'%}
<li class=\"active js-find-by-email nav-reset-tab\">
<a style=\"cursor: pointer;\">{{ 'password_reset.content.email'|trans }}
</a>
</li>
{% endif %}
{% if (setting('cloud_sms.sms_enabled')|default('')) == '1' %}
<li class=\"js-find-by-mobile nav-reset-tab\">
<a style=\"cursor: pointer;\">{{ 'password_reset.content.mobile'|trans }}
</a>
</li>
{% endif %}
</ul>
{% if (setting('cloud_email_crm.status')|default('disable')) == 'enable' or (setting('mailer.enabled', '')) == '1' %}
<form id=\"password-reset-form\" class=\"form-vertical\" method=\"post\">
<div class=\"form-group input-icon-wrap\">
{{ form_label(form.email, 'password_reset.content.email'|trans, {label_attr:{class:'control-label hidden'}}) }}
<i class=\"es-icon es-icon-mail\"></i>
<div class=\"controls\">
{{ form_widget(form.email, {attr:{class:'form-control input-md-style', placeholder:'password_reset.content.email.placeholder'|trans}}) }}
<p class=\"help-block\">{{ ' '|trans({'%name%': setting('site.name')}) }}</p>
</div>
</div>
<div class=\"form-group\">
<div class=\"controls password-btn-block-wrap\">
{{ form_rest(form) }}
<button type=\"submit\" class=\"btn btn-primary btn-block bor-no\"
data-loading-text=\"{{ 'password_reset.content.btn.reset_btn.loading'|trans }}...\">{{ 'password_reset.content.btn.reset_btn'|trans }}</button>
</div>
{% if error %}
<div id=\"alertxx\" class=\"alert alert-danger-position\">{{ error }}</div> {% endif %}
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('site') }}\">
</div>
<div class=\"pull-right mbm\"><a class=\"link-gray\" href=\"{{ path('login') }}\">{{ 'form.btn.return'|trans }}</a></div>
</form>
{% endif %}
{% if (setting('cloud_sms.sms_enabled')|default('')) == '1' %}
<form id=\"password-reset-by-mobile-form\" class=\"form-vertical\"
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 %}>
{# <div class=\"form-group\">
<label class=\"control-label required\" for=\"nickname\">用户名</label>
<div class=\"controls\">
<input type=\"text\" id=\"nickname\" name=\"nickname\" class=\"form-control\" data-role=\"nickname\">
</div>
</div> #}
<div class=\"form-group\">
<label class=\"control-label required hidden\" for=\"mobile\">{{ 'password_reset.content.mobile'|trans }}</label>
<div class=\"controls input-icon-wrap\">
<i class=\"es-icon es-icon-phone1 phone-icon\"></i>
<input type=\"text\" id=\"mobile\" name=\"mobile\"
data-url=\"{{ path('password_reset_check_mobile') }}\"
class=\"form-control input-md-style\" data-role=\"mobile\"
placeholder=\"{{ 'password_reset.content.mobile.placeholder'|trans }}\">
</div>
</div>
<div class=\"form-group\">
<label class=\"control-label required hidden\" for=\"sms-code\">{{ 'password_reset.content.sms_code'|trans }}</label>
<div class=\"controls input-icon-wrap\">
<div class=\"sms-check-btn pull-right\">
<a href=\"#modal\" data-toggle=\"modal\" class=\"btn btn-default btn-sm js-sms-send disabled\"
data-url=\"{{ path('register_captcha_modal') }}\"
data-sms-url=\"{{ path('edu_cloud_sms_send') }}\">
<span id=\"js-time-left\"></span>
<span id=\"js-fetch-btn-text\">{{ 'password_reset.content.get_sms_code'|trans }}</span>
</a>
</div>
<div class=\"sms-check-input\">
<input type=\"text\" class=\"form-control input-md-sms-style input-md-style\" id=\"sms-code\"
name=\"sms_code\" required=\"required\"
data-url=\"{{ path('edu_cloud_sms_check',{type:'sms_forget_password'}) }}\"
placeholder=\"{{ 'password_reset.content.sms_check'|trans }}\">
</div>
<div class=\"help-block\"></div>
</div>
</div>
<div class=\"form-group\">
<div class=\"controls password-btn-block-wrap\">
<button type=\"submit\" class=\"btn btn-primary btn-lg btn-block bor-no\"
data-loading-text=\"{{ 'password_reset.submit_btn_loading'|trans }}\">{{ 'password_reset.content.btn.reset_btn'|trans }}</button>
</div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('site') }}\">
</div>
<div class=\"pull-right mbm\"><a class=\"link-gray\" href=\"javascript:history.back();\">{{ 'form.btn.return'|trans }}</a></div>
</form>
{% endif %}
</div><!-- /panel -->
</div>
</div>
{% endblock %}
{% block footer %}
{% include '@CorporateTraining/ct-default/footer-index.html.twig' %}
{% endblock %}
", "password-reset/index.html.twig", "/var/www/hangzhou/hz-2.77.edusoho.cn/src/CorporateTrainingBundle/Resources/views/password-reset/index.html.twig");
}
}