var/cache/dev/twig/74/747cd6662949cb79a12a103eb48babe5c797e1d9eea70708ff0644e6589d7ff0.php line 38

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. /* theme_learts/forgotpasswd.html.twig */
  14. class __TwigTemplate_59e0421ee56161a39602fc1ca09d099c4a4aa5a59ccda721602610a03d5d7614 extends 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.             'maincontent' => [$this'block_maincontent'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return $this->loadTemplate((("theme_" twig_constant("config_theme")) . "/base.html.twig"), "theme_learts/forgotpasswd.html.twig"1);
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""theme_learts/forgotpasswd.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""theme_learts/forgotpasswd.html.twig"));
  38.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  39.         
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  41.         
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  43.     }
  44.     // line 2
  45.     public function block_maincontent($context, array $blocks = [])
  46.     {
  47.         $macros $this->macros;
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""maincontent"));
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""maincontent"));
  52.         // line 3
  53.         echo "    <div class=\"container\">
  54.         <div class=\"row pt-5\">
  55.             <div class=\"col-lg-4 offset-lg-4\">
  56.                 ";
  57.         // line 6
  58.         if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "method", [], "any"falsefalsefalse6), "GET"))) {
  59.             // line 7
  60.             echo "                    <div class=\"bg-light rounded border p-3 mb-5\">
  61.                         <div class=\"login-register-title\">
  62.                             <h2 class=\"title\">Glemt passordet</h2>
  63.                         </div>
  64.                         <div class=\"login-register-form\">
  65.                             <form autocomplete=\"off\" method=\"post\">
  66.                                 <div class=\"row learts-mb-n50\">
  67.                                     <div class=\"col-12 learts-mb-20\">
  68.                                         <input autocomplete=\"off\" type=\"email\" placeholder=\"Din email-adresse\" value=\"\" name=\"email\" id=\"inputEmail\" class=\"form-control mb-4\" required autofocus>
  69.                                     </div>
  70.                                     <div class=\"col-12 text-center learts-mb-50\">
  71.                                         <button class=\"btn btn-dark btn-outline-hover-dark\">Send meg nytt passord!</button>
  72.                                     </div>
  73.                                 </div>
  74.                             </form>
  75.                         </div>
  76.                     </div>
  77.                 ";
  78.         } else {
  79.             // line 25
  80.             echo "                    <h6 class=\"text-center mb-5\">En mail er sendt til \"";
  81.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'25$this->source); })()), "request", [], "any"falsefalsefalse25), "get", [=> "email"], "method"falsefalsefalse25), "html"nulltrue);
  82.             echo "\" med nytt passord!</h6>
  83.                 ";
  84.         }
  85.         // line 27
  86.         echo "            </div>
  87.         </div>
  88.     </div>
  89. ";
  90.         
  91.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  92.         
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  94.     }
  95.     public function getTemplateName()
  96.     {
  97.         return "theme_learts/forgotpasswd.html.twig";
  98.     }
  99.     public function isTraitable()
  100.     {
  101.         return false;
  102.     }
  103.     public function getDebugInfo()
  104.     {
  105.         return array (  100 => 27,  94 => 25,  74 => 7,  72 => 6,  67 => 3,  57 => 2,  35 => 1,);
  106.     }
  107.     public function getSourceContext()
  108.     {
  109.         return new Source("{% extends 'theme_' ~ constant('config_theme') ~ '/base.html.twig' %}
  110. {% block maincontent %}
  111.     <div class=\"container\">
  112.         <div class=\"row pt-5\">
  113.             <div class=\"col-lg-4 offset-lg-4\">
  114.                 {% if (app.request.method == 'GET') %}
  115.                     <div class=\"bg-light rounded border p-3 mb-5\">
  116.                         <div class=\"login-register-title\">
  117.                             <h2 class=\"title\">Glemt passordet</h2>
  118.                         </div>
  119.                         <div class=\"login-register-form\">
  120.                             <form autocomplete=\"off\" method=\"post\">
  121.                                 <div class=\"row learts-mb-n50\">
  122.                                     <div class=\"col-12 learts-mb-20\">
  123.                                         <input autocomplete=\"off\" type=\"email\" placeholder=\"Din email-adresse\" value=\"\" name=\"email\" id=\"inputEmail\" class=\"form-control mb-4\" required autofocus>
  124.                                     </div>
  125.                                     <div class=\"col-12 text-center learts-mb-50\">
  126.                                         <button class=\"btn btn-dark btn-outline-hover-dark\">Send meg nytt passord!</button>
  127.                                     </div>
  128.                                 </div>
  129.                             </form>
  130.                         </div>
  131.                     </div>
  132.                 {% else %}
  133.                     <h6 class=\"text-center mb-5\">En mail er sendt til \"{{ app.request.get('email') }}\" med nytt passord!</h6>
  134.                 {% endif %}
  135.             </div>
  136.         </div>
  137.     </div>
  138. {% endblock %}
  139. ""theme_learts/forgotpasswd.html.twig""/var/www/html/webtoprint/SymfonyTemplate/templates/theme_learts/forgotpasswd.html.twig");
  140.     }
  141. }