var/cache/dev/twig/03/0350921d32cf49c6e3724151cb466878.php line 51

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