var/cache/dev/twig/ad/ad91f8134538cfb32464d84307c7887a.php line 59

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @UVDeskCoreFramework/forgotPassword.html.twig */
  16. class __TwigTemplate_fffa55639d9721f1e4d05e639e193aa1 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'templateCSS' => [$this'block_templateCSS'],
  30.             'pageWrapper' => [$this'block_pageWrapper'],
  31.             'footer' => [$this'block_footer'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  35.     {
  36.         // line 1
  37.         return "@UVDeskCoreFramework//Templates//layout.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = [])
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@UVDeskCoreFramework/forgotPassword.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@UVDeskCoreFramework/forgotPassword.html.twig"));
  46.         // line 5
  47.         $context["recaptchaDetail"] = CoreExtension::getAttribute($this->env$this->source, (isset($context["recaptcha_service"]) || array_key_exists("recaptcha_service"$context) ? $context["recaptcha_service"] : (function () { throw new RuntimeError('Variable "recaptcha_service" does not exist.'5$this->source); })()), "getRecaptchaDetails", [], "method"falsefalsefalse5);
  48.         // line 1
  49.         $this->parent $this->loadTemplate("@UVDeskCoreFramework//Templates//layout.html.twig""@UVDeskCoreFramework/forgotPassword.html.twig"1);
  50.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  53.         
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  55.     }
  56.     // line 3
  57.     public function block_title($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  64.         yield "Forgot Password";
  65.         
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67.         
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  69.         return; yield '';
  70.     }
  71.     // line 7
  72.     public function block_templateCSS($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""templateCSS"));
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""templateCSS"));
  79.         // line 8
  80.         yield "    <style>
  81.         #loginForm h1 {
  82.             font-size: 28px;
  83.             color: #6F6F6F;
  84.             font-weight: 600;
  85.             margin: 0px 0px 10px 0px;
  86.         }
  87.         .forgot-password-cta {
  88.             position: absolute;
  89.             font-size: 15px !important;
  90.             right: 0px;
  91.             top: 0px;
  92.         }
  93.     </style>
  94. ";
  95.         
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  97.         
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  99.         return; yield '';
  100.     }
  101.     // line 25
  102.     public function block_pageWrapper($context, array $blocks = [])
  103.     {
  104.         $macros $this->macros;
  105.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageWrapper"));
  107.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageWrapper"));
  109.         // line 26
  110.         yield "    <div class=\"uv-large-box-plank\">
  111. \t\t<div class=\"uv-large-box-rt\">
  112. \t\t\t<div class=\"uv-center-box uv-text-center\">
  113.                 <form action=\"\" method=\"post\" id=\"loginForm\">
  114.                     <div class=\"uv-adjacent-center\">
  115.                         <h1>";
  116.         // line 31
  117.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forgot Password"), "html"nulltrue);
  118.         yield "</h1>
  119.                         <div class=\"uv-element-block\">
  120.                             <p>";
  121.         // line 33
  122.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter your email address and we will send you an email with instructions to update your login credentials."), "html"nulltrue);
  123.         yield "</p>
  124.                         </div>
  125.                         <div class=\"uv-adjacent-form\">
  126.                             <div class=\"uv-adjacent-element-block\">
  127.                                 <label>";
  128.         // line 37
  129.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email"), "html"nulltrue);
  130.         yield "</label>
  131.                                 <div class=\"uv-max-field\">
  132.                                     <input class=\"uv-field\" type=\"email\" name=\"forgot_password_form[email]\">
  133.                                 </div>
  134.                             </div>
  135.                             <div class=\"uv-adjacent-element-block\">
  136.                                 ";
  137.         // line 43
  138.         if (((isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'43$this->source); })()) && (CoreExtension::getAttribute($this->env$this->source, (isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'43$this->source); })()), "isActive", [], "any"falsefalsefalse43) == true))) {
  139.             // line 44
  140.             yield "                                    <div class=\"clearfix\"></div>
  141.                                     <div class=\"g-recaptcha\" data-sitekey=\"";
  142.             // line 45
  143.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'45$this->source); })()), "siteKey", [], "any"falsefalsefalse45), "html"nulltrue);
  144.             yield "\"></div>
  145.                                     <div class=\"clearfix\"></div>
  146.                                 ";
  147.         } else {
  148.             // line 48
  149.             yield "                                    <!-- Recaptcha will not support -->
  150.                                 ";
  151.         }
  152.         // line 50
  153.         yield "                            </div>
  154.                             <button class=\"uv-btn\">";
  155.         // line 51
  156.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Send Mail"), "html"nulltrue);
  157.         yield "</button>
  158.                         </div>
  159.                     </div>
  160.                 </div>
  161.             </form>
  162. \t\t</div>
  163. \t\t<div class=\"uv-large-box-lt\">
  164. \t\t\t<div class=\"uv-center-box uv-text-center\">
  165. \t\t\t\t<a href=\"https://www.uvdesk.com\">
  166.                     <img alt=\"UVdesk\" title=\"UVdesk\" src=\"";
  167.         // line 61
  168.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdeskcoreframework/images/uvdesk-logo-symbol.svg"), "html"nulltrue);
  169.         yield "\">
  170. \t\t\t\t</a>
  171.             </div>
  172. \t\t</div>
  173. \t</div>
  174. ";
  175.         
  176.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  177.         
  178.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  179.         return; yield '';
  180.     }
  181.     // line 68
  182.     public function block_footer($context, array $blocks = [])
  183.     {
  184.         $macros $this->macros;
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  186.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  187.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  188.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  189.         // line 69
  190.         yield "    ";
  191.         yield from $this->yieldParentBlock("footer"$context$blocks);
  192.         yield "
  193.     
  194.     ";
  195.         // line 71
  196.         if (((isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'71$this->source); })()) && (CoreExtension::getAttribute($this->env$this->source, (isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'71$this->source); })()), "isActive", [], "any"falsefalsefalse71) == true))) {
  197.             // line 72
  198.             yield "        <script src='https://www.google.com/recaptcha/api.js'></script>
  199.     ";
  200.         }
  201.         // line 74
  202.         yield "
  203.     <script type=\"text/javascript\">
  204. \t\t\$(function () {
  205.              _.extend(Backbone.Validation.callbacks, {
  206.                 valid : function (view, attr, selector) {
  207.                     var \$el = view.\$('[name=\"' + attr + '\"]');
  208.                     \$el.removeClass('uv-field-error');
  209.                     \$el.parents('.uv-adjacent-element-block').find('.uv-field-message').remove();
  210.                 },
  211.                 invalid : function (view, attr, error, selector) {
  212.                     var \$el = view.\$('[name=\"' + attr + '\"]');
  213.                     \$el.addClass('uv-field-error');
  214.                     \$el.parents('.uv-adjacent-element-block').find('.uv-field-message').remove();
  215.                     \$el.parents('.uv-adjacent-element-block').append(\"<span class='uv-field-message'>\" + error + \"</span>\");
  216.                 }
  217.             });
  218.             
  219.             var LoginModel = Backbone.Model.extend({
  220.                 validation: {
  221.                     'forgot_password_form[email]': [{
  222.                         required: true,
  223.                         msg: '";
  224.         // line 95
  225.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html"nulltrue);
  226.         yield "'
  227.                     },{
  228.                         pattern: 'email',
  229.                         msg: '";
  230.         // line 98
  231.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This is not a valid email address"), "html"nulltrue);
  232.         yield "'
  233.                     }],
  234.                     ";
  235.         // line 100
  236.         if (((isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'100$this->source); })()) && (CoreExtension::getAttribute($this->env$this->source, (isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'100$this->source); })()), "isActive", [], "any"falsefalsefalse100) == true))) {
  237.             // line 101
  238.             yield "                        'g-recaptcha-response' : {
  239.                             fn: function(value) {
  240.                                 if(grecaptcha.getResponse().length > 0)
  241.                                     return false;
  242.                                 else
  243.                                     return true;
  244.                             },
  245.                             msg : '";
  246.             // line 108
  247.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please select CAPTCHA"), "html"nulltrue);
  248.             yield "'
  249.                         }
  250. \t\t\t\t    ";
  251.         }
  252.         // line 111
  253.         yield "                }
  254.             });
  255.             var LoginForm = Backbone.View.extend({
  256. \t\t        el: 'form',
  257.                 events: {
  258.                     'blur input': 'formChanged',
  259.                     'click .uv-btn': 'submit'
  260.                 },
  261.                 initialize: function () {
  262.                     this.model = new LoginModel();
  263.                     Backbone.Validation.bind(this);
  264.                 },
  265.                 formChanged: function(e) {
  266. \t\t\t    \tthis.model.set(Backbone.\$(e.currentTarget).attr('name'), Backbone.\$(e.currentTarget).val())
  267. \t\t\t    \tthis.model.isValid([Backbone.\$(e.currentTarget).attr('name')])
  268. \t\t\t    },
  269.                 submit: function (e) {
  270.                     e.preventDefault();
  271.                     var data = this.\$el.serializeObject();
  272.                     this.model.set(data);
  273.                     if(this.model.isValid(true)){
  274.                         this.\$el.submit();
  275.                     }
  276.                 }
  277.             });
  278. \t\t    new LoginForm();
  279. \t\t});
  280. \t</script>
  281. ";
  282.         
  283.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  284.         
  285.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  286.         return; yield '';
  287.     }
  288.     /**
  289.      * @codeCoverageIgnore
  290.      */
  291.     public function getTemplateName(): string
  292.     {
  293.         return "@UVDeskCoreFramework/forgotPassword.html.twig";
  294.     }
  295.     /**
  296.      * @codeCoverageIgnore
  297.      */
  298.     public function isTraitable(): bool
  299.     {
  300.         return false;
  301.     }
  302.     /**
  303.      * @codeCoverageIgnore
  304.      */
  305.     public function getDebugInfo(): array
  306.     {
  307.         return array (  284 => 111,  278 => 108,  269 => 101,  267 => 100,  262 => 98,  256 => 95,  233 => 74,  229 => 72,  227 => 71,  221 => 69,  211 => 68,  194 => 61,  181 => 51,  178 => 50,  174 => 48,  168 => 45,  165 => 44,  163 => 43,  154 => 37,  147 => 33,  142 => 31,  135 => 26,  125 => 25,  99 => 8,  89 => 7,  69 => 3,  58 => 1,  56 => 5,  43 => 1,);
  308.     }
  309.     public function getSourceContext(): Source
  310.     {
  311.         return new Source("{% extends \"@UVDeskCoreFramework//Templates//layout.html.twig\" %}
  312. {% block title %}Forgot Password{% endblock %}
  313. {% set recaptchaDetail = recaptcha_service.getRecaptchaDetails() %}
  314. {% block templateCSS %}
  315.     <style>
  316.         #loginForm h1 {
  317.             font-size: 28px;
  318.             color: #6F6F6F;
  319.             font-weight: 600;
  320.             margin: 0px 0px 10px 0px;
  321.         }
  322.         .forgot-password-cta {
  323.             position: absolute;
  324.             font-size: 15px !important;
  325.             right: 0px;
  326.             top: 0px;
  327.         }
  328.     </style>
  329. {% endblock %}
  330. {% block pageWrapper %}
  331.     <div class=\"uv-large-box-plank\">
  332. \t\t<div class=\"uv-large-box-rt\">
  333. \t\t\t<div class=\"uv-center-box uv-text-center\">
  334.                 <form action=\"\" method=\"post\" id=\"loginForm\">
  335.                     <div class=\"uv-adjacent-center\">
  336.                         <h1>{{ \"Forgot Password\" |trans}}</h1>
  337.                         <div class=\"uv-element-block\">
  338.                             <p>{{ \"Enter your email address and we will send you an email with instructions to update your login credentials.\" |trans}}</p>
  339.                         </div>
  340.                         <div class=\"uv-adjacent-form\">
  341.                             <div class=\"uv-adjacent-element-block\">
  342.                                 <label>{{ \"Email\" |trans}}</label>
  343.                                 <div class=\"uv-max-field\">
  344.                                     <input class=\"uv-field\" type=\"email\" name=\"forgot_password_form[email]\">
  345.                                 </div>
  346.                             </div>
  347.                             <div class=\"uv-adjacent-element-block\">
  348.                                 {% if recaptchaDetail and recaptchaDetail.isActive == true %}
  349.                                     <div class=\"clearfix\"></div>
  350.                                     <div class=\"g-recaptcha\" data-sitekey=\"{{ recaptchaDetail.siteKey }}\"></div>
  351.                                     <div class=\"clearfix\"></div>
  352.                                 {% else %}
  353.                                     <!-- Recaptcha will not support -->
  354.                                 {% endif %}
  355.                             </div>
  356.                             <button class=\"uv-btn\">{{ 'Send Mail'|trans }}</button>
  357.                         </div>
  358.                     </div>
  359.                 </div>
  360.             </form>
  361. \t\t</div>
  362. \t\t<div class=\"uv-large-box-lt\">
  363. \t\t\t<div class=\"uv-center-box uv-text-center\">
  364. \t\t\t\t<a href=\"https://www.uvdesk.com\">
  365.                     <img alt=\"UVdesk\" title=\"UVdesk\" src=\"{{ asset('bundles/uvdeskcoreframework/images/uvdesk-logo-symbol.svg') }}\">
  366. \t\t\t\t</a>
  367.             </div>
  368. \t\t</div>
  369. \t</div>
  370. {% endblock %}
  371. {% block footer %}
  372.     {{ parent() }}
  373.     
  374.     {% if recaptchaDetail and recaptchaDetail.isActive == true %}
  375.         <script src='https://www.google.com/recaptcha/api.js'></script>
  376.     {% endif %}
  377.     <script type=\"text/javascript\">
  378. \t\t\$(function () {
  379.              _.extend(Backbone.Validation.callbacks, {
  380.                 valid : function (view, attr, selector) {
  381.                     var \$el = view.\$('[name=\"' + attr + '\"]');
  382.                     \$el.removeClass('uv-field-error');
  383.                     \$el.parents('.uv-adjacent-element-block').find('.uv-field-message').remove();
  384.                 },
  385.                 invalid : function (view, attr, error, selector) {
  386.                     var \$el = view.\$('[name=\"' + attr + '\"]');
  387.                     \$el.addClass('uv-field-error');
  388.                     \$el.parents('.uv-adjacent-element-block').find('.uv-field-message').remove();
  389.                     \$el.parents('.uv-adjacent-element-block').append(\"<span class='uv-field-message'>\" + error + \"</span>\");
  390.                 }
  391.             });
  392.             
  393.             var LoginModel = Backbone.Model.extend({
  394.                 validation: {
  395.                     'forgot_password_form[email]': [{
  396.                         required: true,
  397.                         msg: '{{ \"This field is mandatory\"|trans }}'
  398.                     },{
  399.                         pattern: 'email',
  400.                         msg: '{{ \"This is not a valid email address\"|trans }}'
  401.                     }],
  402.                     {% if recaptchaDetail and recaptchaDetail.isActive == true %}
  403.                         'g-recaptcha-response' : {
  404.                             fn: function(value) {
  405.                                 if(grecaptcha.getResponse().length > 0)
  406.                                     return false;
  407.                                 else
  408.                                     return true;
  409.                             },
  410.                             msg : '{{ \"Please select CAPTCHA\"|trans }}'
  411.                         }
  412. \t\t\t\t    {% endif %}
  413.                 }
  414.             });
  415.             var LoginForm = Backbone.View.extend({
  416. \t\t        el: 'form',
  417.                 events: {
  418.                     'blur input': 'formChanged',
  419.                     'click .uv-btn': 'submit'
  420.                 },
  421.                 initialize: function () {
  422.                     this.model = new LoginModel();
  423.                     Backbone.Validation.bind(this);
  424.                 },
  425.                 formChanged: function(e) {
  426. \t\t\t    \tthis.model.set(Backbone.\$(e.currentTarget).attr('name'), Backbone.\$(e.currentTarget).val())
  427. \t\t\t    \tthis.model.isValid([Backbone.\$(e.currentTarget).attr('name')])
  428. \t\t\t    },
  429.                 submit: function (e) {
  430.                     e.preventDefault();
  431.                     var data = this.\$el.serializeObject();
  432.                     this.model.set(data);
  433.                     if(this.model.isValid(true)){
  434.                         this.\$el.submit();
  435.                     }
  436.                 }
  437.             });
  438. \t\t    new LoginForm();
  439. \t\t});
  440. \t</script>
  441. {% endblock %}""@UVDeskCoreFramework/forgotPassword.html.twig""/home/users/sanjeev.papnoi/www/html/uvdesk-community-v1.1.6/vendor/uvdesk/core-framework/Resources/views/forgotPassword.html.twig");
  442.     }
  443. }