var/cache/dev/twig/92/92abda924e04c7a38b5236bc0156c45c.php line 60

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. /* reset_password/request.html.twig */
  15. class __TwigTemplate_a682f56faa37ae19867530ac17cf5672 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""reset_password/request.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""reset_password/request.html.twig"));
  35.         // line 1
  36.         yield Twig\Extension\CoreExtension::include($this->env$context"partials/main.html.twig");
  37.         yield "
  38. <head>
  39. \t";
  40.         // line 4
  41.         yield Twig\Extension\CoreExtension::include($this->env$context"partials/title-meta.html.twig", ["title" => "Email-Request"]);
  42.         yield "
  43. \t";
  44.         // line 5
  45.         yield Twig\Extension\CoreExtension::include($this->env$context"partials/head-css.html.twig");
  46.         yield "
  47. </head>
  48. ";
  49.         // line 7
  50.         yield from $this->unwrap()->yieldBlock('body'$context$blocks);
  51.         // line 47
  52.         yield "\t\t\t\t";
  53.         yield Twig\Extension\CoreExtension::include($this->env$context"partials/vendor-scripts.html.twig");
  54.         yield "
  55. \t\t\t\t<!-- App js -->
  56. \t\t\t\t<script src=\"";
  57.         // line 49
  58.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/app.js")), "html"nulltrue);
  59.         yield "\"></script>
  60. \t\t\t\t<script>
  61. \t\t\t\t\t\$(document).ready(function () {
  62. \$(\"#myForm\").validate({
  63. rules: {
  64. reset_password_request_form_email: {
  65. required: true,
  66. email: true
  67. }
  68. },
  69. messages: {
  70. reset_password_request_form_email: {
  71. required: \"Email is required\",
  72. email: \"Your email must be a valid email\"
  73. }
  74. },
  75. errorPlacement: function (error, element) {
  76. error.appendTo(element.next());
  77. },
  78. highlight: function (element) {
  79. \$(element).addClass(\"is-invalid\");
  80. },
  81. unhighlight: function (element) {
  82. \$(element).removeClass(\"is-invalid\");
  83. },
  84. submitHandler: function (form) {
  85. form.submit();
  86. }
  87. });
  88. });
  89. \t\t\t\t</script>
  90. \t\t\t</body>
  91. ";
  92.         
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94.         
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  96.         return; yield '';
  97.     }
  98.     // line 7
  99.     public function block_body($context, array $blocks = [])
  100.     {
  101.         $macros $this->macros;
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  105.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  106.         // line 8
  107.         yield "\t<body class=\"authentication-bg\">
  108. \t\t<div class=\"account-pages my-6 pt-sm-5\">
  109. \t\t\t<div class=\"container\">
  110. \t\t\t\t<div class=\"row\">
  111. \t\t\t\t\t<div class=\"col-lg-12\">
  112. \t\t\t\t\t\t<div class=\"text-center\">
  113. \t\t\t\t\t\t\t<a href=\"";
  114.         // line 14
  115.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  116.         yield "\" class=\"mb-5 d-block auth-logo\">
  117. \t\t\t\t\t\t\t\t<img src=\"";
  118.         // line 15
  119.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("asset/img/logo.png")), "html"nulltrue);
  120.         yield "\" />
  121. \t\t\t\t\t\t\t</a>
  122. \t\t\t\t\t\t</div>
  123. \t\t\t\t\t</div>
  124. \t\t\t\t</div>
  125. \t\t\t\t<div class=\"row align-items-center justify-content-center\">
  126. \t\t\t\t\t<div class=\"col-md-8 col-lg-6 col-xl-5\">
  127. \t\t\t\t\t\t<div class=\"card\">
  128. \t\t\t\t\t\t\t<div class=\"card-body p-4\">
  129. \t\t\t\t\t\t\t\t<div class=\"text-center mt-2\">
  130. \t\t\t\t\t\t\t\t\t<h5 class=\"text-primary\">";
  131.         // line 25
  132.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationTwig']->translate("message.modules.content.reset"), "html"nulltrue);
  133.         yield "</h5>
  134. \t\t\t\t\t\t\t\t</div>
  135. \t\t\t\t\t\t\t\t<div class=\"p-2 mt-4\">
  136. \t\t\t\t\t\t\t\t\t";
  137.         // line 28
  138.         $context['_parent'] = $context;
  139.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'28$this->source); })()), "flashes", ["reset_password_error"], "method"falsefalsefalse28));
  140.         foreach ($context['_seq'] as $context["_key"] => $context["flash_error"]) {
  141.             // line 29
  142.             yield "\t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-danger\" role=\"alert\">";
  143.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash_error"], "html"nulltrue);
  144.             yield "</div>
  145. \t\t\t\t\t\t\t\t\t";
  146.         }
  147.         $_parent $context['_parent'];
  148.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash_error'], $context['_parent'], $context['loop']);
  149.         $context array_intersect_key($context$_parent) + $_parent;
  150.         // line 31
  151.         yield "\t\t\t\t\t\t\t\t\t";
  152.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["requestForm"]) || array_key_exists("requestForm"$context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.'31$this->source); })()), 'form_start', ["attr" => ["id" => "myForm""novalidate" => "novalidate"]]);
  153.         yield "
  154. \t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
  155. \t\t\t\t\t\t\t\t\t\t<label class=\"form-label\" for=\"inputEmail\">";
  156.         // line 33
  157.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationTwig']->translate("message.modules.content.username"), "html"nulltrue);
  158.         yield "</label>
  159. \t\t\t\t\t\t\t\t\t\t";
  160.         // line 34
  161.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["requestForm"]) || array_key_exists("requestForm"$context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.'34$this->source); })()), "email", [], "any"falsefalsefalse34), 'widget', ["attr" => ["class" => "form-control""autocomplete" => "email""id" => "inputEmail""placeholder" => "Enter username"]]);
  162.         yield "
  163. \t\t\t\t\t\t\t\t\t\t<small id=\"emailvalid\" class=\"invalid-feedback text-danger\"></small>
  164. \t\t\t\t\t\t\t\t\t</div>
  165. \t\t\t\t\t\t\t\t\t<small>
  166. \t\t\t\t\t\t\t\t\t\t";
  167.         // line 38
  168.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationTwig']->translate("message.modules.content.send_msg"), "html"nulltrue);
  169.         yield "
  170. \t\t\t\t\t\t\t\t\t</small>
  171. \t\t\t\t\t\t\t\t</div>
  172. \t\t\t\t\t\t\t\t<button class=\"btn btn-primary\" id=\"submitbtn\">";
  173.         // line 41
  174.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationTwig']->translate("message.modules.content.send_again"), "html"nulltrue);
  175.         yield "</button>
  176. \t\t\t\t\t\t\t\t";
  177.         // line 42
  178.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["requestForm"]) || array_key_exists("requestForm"$context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.'42$this->source); })()), 'form_end');
  179.         yield "<button class=\"btn btn-primary\" onclick=\"window.history.back()\">";
  180.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TranslationTwig']->translate("message.modules.content.back"), "html"nulltrue);
  181.         yield "</button>
  182. \t\t\t\t\t\t\t</div>
  183. \t\t\t\t\t\t</div>
  184. \t\t\t\t\t</div>
  185. \t\t\t\t";
  186.         
  187.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  188.         
  189.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  190.         return; yield '';
  191.     }
  192.     /**
  193.      * @codeCoverageIgnore
  194.      */
  195.     public function getTemplateName()
  196.     {
  197.         return "reset_password/request.html.twig";
  198.     }
  199.     /**
  200.      * @codeCoverageIgnore
  201.      */
  202.     public function isTraitable()
  203.     {
  204.         return false;
  205.     }
  206.     /**
  207.      * @codeCoverageIgnore
  208.      */
  209.     public function getDebugInfo()
  210.     {
  211.         return array (  194 => 42,  190 => 41,  184 => 38,  177 => 34,  173 => 33,  167 => 31,  158 => 29,  154 => 28,  148 => 25,  135 => 15,  131 => 14,  123 => 8,  113 => 7,  68 => 49,  62 => 47,  60 => 7,  55 => 5,  51 => 4,  45 => 1,);
  212.     }
  213.     public function getSourceContext()
  214.     {
  215.         return new Source("{{ include('partials/main.html.twig') }}
  216. <head>
  217. \t{{ include('partials/title-meta.html.twig', {title: 'Email-Request'}) }}
  218. \t{{ include('partials/head-css.html.twig') }}
  219. </head>
  220. {% block body %}
  221. \t<body class=\"authentication-bg\">
  222. \t\t<div class=\"account-pages my-6 pt-sm-5\">
  223. \t\t\t<div class=\"container\">
  224. \t\t\t\t<div class=\"row\">
  225. \t\t\t\t\t<div class=\"col-lg-12\">
  226. \t\t\t\t\t\t<div class=\"text-center\">
  227. \t\t\t\t\t\t\t<a href=\"{{ path('home') }}\" class=\"mb-5 d-block auth-logo\">
  228. \t\t\t\t\t\t\t\t<img src=\"{{ absolute_url(asset('asset/img/logo.png')) }}\" />
  229. \t\t\t\t\t\t\t</a>
  230. \t\t\t\t\t\t</div>
  231. \t\t\t\t\t</div>
  232. \t\t\t\t</div>
  233. \t\t\t\t<div class=\"row align-items-center justify-content-center\">
  234. \t\t\t\t\t<div class=\"col-md-8 col-lg-6 col-xl-5\">
  235. \t\t\t\t\t\t<div class=\"card\">
  236. \t\t\t\t\t\t\t<div class=\"card-body p-4\">
  237. \t\t\t\t\t\t\t\t<div class=\"text-center mt-2\">
  238. \t\t\t\t\t\t\t\t\t<h5 class=\"text-primary\">{{ 'message.modules.content.reset' | trans }}</h5>
  239. \t\t\t\t\t\t\t\t</div>
  240. \t\t\t\t\t\t\t\t<div class=\"p-2 mt-4\">
  241. \t\t\t\t\t\t\t\t\t{% for flash_error in app.flashes('reset_password_error') %}
  242. \t\t\t\t\t\t\t\t\t\t<div class=\"alert alert-danger\" role=\"alert\">{{ flash_error }}</div>
  243. \t\t\t\t\t\t\t\t\t{% endfor %}
  244. \t\t\t\t\t\t\t\t\t{{ form_start(requestForm,{'attr':{'id': 'myForm','novalidate':'novalidate'}}) }}
  245. \t\t\t\t\t\t\t\t\t<div class=\"mb-3\">
  246. \t\t\t\t\t\t\t\t\t\t<label class=\"form-label\" for=\"inputEmail\">{{ 'message.modules.content.username' | trans }}</label>
  247. \t\t\t\t\t\t\t\t\t\t{{ form_widget(requestForm.email, {'attr': {'class': 'form-control', 'autocomplete': 'email', 'id': 'inputEmail', 'placeholder': 'Enter username'}}) }}
  248. \t\t\t\t\t\t\t\t\t\t<small id=\"emailvalid\" class=\"invalid-feedback text-danger\"></small>
  249. \t\t\t\t\t\t\t\t\t</div>
  250. \t\t\t\t\t\t\t\t\t<small>
  251. \t\t\t\t\t\t\t\t\t\t{{ 'message.modules.content.send_msg' | trans }}
  252. \t\t\t\t\t\t\t\t\t</small>
  253. \t\t\t\t\t\t\t\t</div>
  254. \t\t\t\t\t\t\t\t<button class=\"btn btn-primary\" id=\"submitbtn\">{{ 'message.modules.content.send_again' | trans }}</button>
  255. \t\t\t\t\t\t\t\t{{ form_end(requestForm) }}<button class=\"btn btn-primary\" onclick=\"window.history.back()\">{{ 'message.modules.content.back' | trans }}</button>
  256. \t\t\t\t\t\t\t</div>
  257. \t\t\t\t\t\t</div>
  258. \t\t\t\t\t</div>
  259. \t\t\t\t{% endblock %}
  260. \t\t\t\t{{ include('partials/vendor-scripts.html.twig') }}
  261. \t\t\t\t<!-- App js -->
  262. \t\t\t\t<script src=\"{{ absolute_url(asset('/js/app.js')) }}\"></script>
  263. \t\t\t\t<script>
  264. \t\t\t\t\t\$(document).ready(function () {
  265. \$(\"#myForm\").validate({
  266. rules: {
  267. reset_password_request_form_email: {
  268. required: true,
  269. email: true
  270. }
  271. },
  272. messages: {
  273. reset_password_request_form_email: {
  274. required: \"Email is required\",
  275. email: \"Your email must be a valid email\"
  276. }
  277. },
  278. errorPlacement: function (error, element) {
  279. error.appendTo(element.next());
  280. },
  281. highlight: function (element) {
  282. \$(element).addClass(\"is-invalid\");
  283. },
  284. unhighlight: function (element) {
  285. \$(element).removeClass(\"is-invalid\");
  286. },
  287. submitHandler: function (form) {
  288. form.submit();
  289. }
  290. });
  291. });
  292. \t\t\t\t</script>
  293. \t\t\t</body>
  294. ""reset_password/request.html.twig""/home/gixli/public_html/templates/reset_password/request.html.twig");
  295.     }
  296. }