var/cache/dev/twig/56/56167a6617d01e4a6c27220e13b5f3cf.php line 41

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