var/cache/dev/twig/1d/1dcbdac3b0be41515f356c5d88699d8e.php line 47

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