<?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_c2ba223fb8297e501f08d39b52af33992112fb85dc68af8ab0fcebbf6ca0a953 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'],
];
}
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 8
$context["bodyClass"] = "pwd_reset index_bg_item";
// line 10
$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 9
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 12
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 13
echo " <div class=\"pwd-reset-container\">
<div class=\"pwd-reset-section\">
<div class=\"panel panel-default panel-page pwd-reset-main clearfix\">
<h2 class=\"ft-xlg text-center mbxl\">";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.title"), "html", null, true);
echo "</h2>
<ul class=\"nav nav-tabs js-find-password\">
";
// line 19
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 20
echo " <li class=\"active js-find-by-email nav-reset-tab\">
<a style=\"cursor: pointer;\">";
// line 21
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 25
echo " ";
if ((0 === twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_sms.sms_enabled"), ""), "1"))) {
// line 26
echo " <li class=\"js-find-by-mobile nav-reset-tab\">
<a style=\"cursor: pointer;\">";
// line 27
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 31
echo " </ul>
";
// line 33
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 34
echo " <form id=\"password-reset-form\" class=\"form-vertical\" action=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("password_reset_email");
echo "\" method=\"post\"
novalidate>
<div class=\"form-group input-icon-wrap\">
<i class=\"es-icon es-icon-mail\"></i>
<div class=\"controls\">
<input type=\"email\" id=\"email\" name=\"email\" class=\"form-control input-md-style\" autocomplete=\"off\"
placeholder=\"";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password_reset.content.email.placeholder"), "html", null, true);
echo "\">
<p class=\"help-block\">";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(" "), "html", null, true);
echo "</p>
</div>
</div>
<div class=\"form-group\">
<div class=\"controls password-btn-block-wrap\">
<button type=\"submit\" class=\"btn btn-primary btn-block bor-no\"
data-loading-text=\"";
// line 47
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>
<div id=\"alertxx\" class=\"alert alert-danger-position\" style=\"display:none;\"></div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 51
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 54
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 57
echo "
";
// line 58
if ((0 === twig_compare(_twig_default_filter($this->extensions['AppBundle\Twig\WebExtension']->getSetting("cloud_sms.sms_enabled"), ""), "1"))) {
// line 59
echo " <form id=\"password-reset-by-mobile-form\" class=\"form-vertical\" action=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("password_reset_by_sms");
echo "\"
method=\"post\" novalidate
";
// line 61
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")))) {
echo "style=\"display:none;\"";
}
echo ">
<div class=\"form-group\">
<label class=\"control-label required hidden\"
for=\"mobile\">";
// line 64
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\" class=\"form-control input-md-style\"
placeholder=\"";
// line 68
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 74
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\"
data-url=\"";
// line 78
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("captcha_modal");
echo "\" data-sms-url=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edu_cloud_sms_send");
echo "\"
data-sms-type=\"sms_forget_password\">
<span id=\"js-time-left\"></span>
<span id=\"js-fetch-btn-text\">";
// line 81
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\" autocomplete=\"one-time-code\"
placeholder=\"";
// line 87
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 96
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>
<div id=\"mobile-alertxx\" class=\"alert alert-danger-position\" style=\"display:none;\"></div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"";
// line 100
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("site"), "html", null, true);
echo "\">
<input type=\"hidden\" name=\"sms_token\" id=\"sms_token\" value=\"\">
</div>
<div class=\"pull-right mbm\"><a class=\"link-gray\"
href=\"";
// line 104
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 107
echo " </div><!-- /panel -->
</div>
</div>
";
$__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 ( 305 => 107, 297 => 104, 290 => 100, 281 => 96, 269 => 87, 260 => 81, 252 => 78, 245 => 74, 236 => 68, 229 => 64, 221 => 61, 215 => 59, 213 => 58, 210 => 57, 202 => 54, 196 => 51, 187 => 47, 178 => 41, 174 => 40, 164 => 34, 162 => 33, 158 => 31, 151 => 27, 148 => 26, 145 => 25, 138 => 21, 135 => 20, 133 => 19, 127 => 16, 122 => 13, 112 => 12, 91 => 9, 78 => 5, 75 => 4, 65 => 3, 54 => 1, 52 => 10, 50 => 8, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% block header %}
{% include 'site-hint.html.twig' %}
{{ block_show('jianmo:login_bg') }}
{% 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 content %}
<div class=\"pwd-reset-container\">
<div class=\"pwd-reset-section\">
<div class=\"panel panel-default panel-page pwd-reset-main clearfix\">
<h2 class=\"ft-xlg text-center mbxl\">{{ 'password_reset.content.title'|trans }}</h2>
<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\" action=\"{{ path('password_reset_email') }}\" method=\"post\"
novalidate>
<div class=\"form-group input-icon-wrap\">
<i class=\"es-icon es-icon-mail\"></i>
<div class=\"controls\">
<input type=\"email\" id=\"email\" name=\"email\" class=\"form-control input-md-style\" autocomplete=\"off\"
placeholder=\"{{ 'password_reset.content.email.placeholder'|trans }}\">
<p class=\"help-block\">{{ ' '|trans }}</p>
</div>
</div>
<div class=\"form-group\">
<div class=\"controls password-btn-block-wrap\">
<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>
<div id=\"alertxx\" class=\"alert alert-danger-position\" style=\"display:none;\"></div>
<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\" novalidate
{% if (setting('cloud_email_crm.status')|default('disable')) == 'enable' or (setting('mailer.enabled', '')) == '1' %}style=\"display:none;\"{% endif %}>
<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\" class=\"form-control input-md-style\"
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\"
data-url=\"{{ path('captcha_modal') }}\" data-sms-url=\"{{ path('edu_cloud_sms_send') }}\"
data-sms-type=\"sms_forget_password\">
<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\" autocomplete=\"one-time-code\"
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>
<div id=\"mobile-alertxx\" class=\"alert alert-danger-position\" style=\"display:none;\"></div>
<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('site') }}\">
<input type=\"hidden\" name=\"sms_token\" id=\"sms_token\" value=\"\">
</div>
<div class=\"pull-right mbm\"><a class=\"link-gray\"
href=\"{{ path('login') }}\">{{ 'form.btn.return'|trans }}</a></div>
</form>
{% endif %}
</div><!-- /panel -->
</div>
</div>
{% endblock %}", "password-reset/index.html.twig", "/var/www/hangzhou/hz-4.77.edusoho.cn/app/Resources/views/password-reset/index.html.twig");
}
}