var/cache/dev/twig/a3/a36b02eca593649065b773367e04c1b123d082777b4bd096058fc2ec6a72f0a5.php line 33

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. /* @SyliusUi/Security/_login.html.twig */
  14. class __TwigTemplate_b80791105e31363da9d1cdf3c8fb737ad443876075e767ce7244121d3a3a7f70 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusUi/Security/_login.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusUi/Security/_login.html.twig"));
  33.         // line 1
  34.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'1$this->source); })()), [=> "@SyliusUi/Form/theme.html.twig"], true);
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig""@SyliusUi/Security/_login.html.twig"3)->unwrap();
  40.         // line 4
  41.         echo "
  42. <div class=\"ui middle aligned center aligned grid\">
  43.     <div class=\"column\">
  44.         ";
  45.         // line 7
  46.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.admin.login.before_form", ["form" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'7$this->source); })())]]);
  47.         echo "
  48.         ";
  49.         // line 9
  50.         if (twig_get_attribute($this->env$this->source, ($context["paths"] ?? null), "logo", [], "any"truetruefalse9)) {
  51.             // line 10
  52.             echo "            <div style=\"max-width: 270px; margin: 0 auto; margin-bottom: 40px;\">
  53.                 <img src=\"";
  54.             // line 11
  55.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source, (isset($context["paths"]) || array_key_exists("paths"$context) ? $context["paths"] : (function () { throw new RuntimeError('Variable "paths" does not exist.'11$this->source); })()), "logo", [], "any"falsefalsefalse11)), "html"nulltrue);
  56.             echo "\" class=\"ui fluid image\" id=\"logo\">
  57.             </div>
  58.         ";
  59.         }
  60.         // line 14
  61.         echo "
  62.         ";
  63.         // line 15
  64.         if ((isset($context["last_error"]) || array_key_exists("last_error"$context) ? $context["last_error"] : (function () { throw new RuntimeError('Variable "last_error" does not exist.'15$this->source); })())) {
  65.             // line 16
  66.             echo "            <div class=\"ui left aligned basic segment\">
  67.                 ";
  68.             // line 17
  69.             echo twig_call_macro($macros["messages"], "macro_error", [twig_get_attribute($this->env$this->source, (isset($context["last_error"]) || array_key_exists("last_error"$context) ? $context["last_error"] : (function () { throw new RuntimeError('Variable "last_error" does not exist.'17$this->source); })()), "messageKey", [], "any"falsefalsefalse17)], 17$context$this->getSourceContext());
  70.             echo "
  71.             </div>
  72.         ";
  73.         }
  74.         // line 20
  75.         echo "
  76.         ";
  77.         // line 21
  78.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'21$this->source); })()), 'form_start', ["action" => (((isset($context["action"]) || array_key_exists("action"$context))) ? (_twig_default_filter((isset($context["action"]) || array_key_exists("action"$context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.'21$this->source); })()), "/")) : ("/")), "attr" => ["class" => "ui large loadable form""novalidate" => "novalidate"]]);
  79.         echo "
  80.             <div class=\"ui left aligned very padded segment\">
  81.                 ";
  82.         // line 23
  83.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'23$this->source); })()), "_username", [], "any"falsefalsefalse23), 'row', ["value" => (((isset($context["last_username"]) || array_key_exists("last_username"$context))) ? (_twig_default_filter((isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'23$this->source); })()), "")) : (""))]);
  84.         echo "
  85.                 ";
  86.         // line 24
  87.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'24$this->source); })()), "_password", [], "any"falsefalsefalse24), 'row');
  88.         echo "
  89.                 ";
  90.         // line 25
  91.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'25$this->source); })()), "_remember_me", [], "any"falsefalsefalse25), 'row');
  92.         echo "
  93.                 <input type=\"hidden\" name=\"_csrf_admin_security_token\" value=\"";
  94.         // line 26
  95.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("admin_authenticate"), "html"nulltrue);
  96.         echo "\">
  97.                 <button type=\"submit\" class=\"ui fluid large primary submit button\">Login</button>
  98.             </div>
  99.             ";
  100.         // line 30
  101.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.admin.login.form", ["form" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'30$this->source); })())]]);
  102.         echo "
  103.         ";
  104.         // line 32
  105.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'32$this->source); })()), 'form_end', ["render_rest" => false]);
  106.         echo "
  107.     </div>
  108. </div>
  109. ";
  110.         
  111.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  112.         
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  114.     }
  115.     public function getTemplateName()
  116.     {
  117.         return "@SyliusUi/Security/_login.html.twig";
  118.     }
  119.     public function isTraitable()
  120.     {
  121.         return false;
  122.     }
  123.     public function getDebugInfo()
  124.     {
  125.         return array (  117 => 32,  112 => 30,  105 => 26,  101 => 25,  97 => 24,  93 => 23,  88 => 21,  85 => 20,  79 => 17,  76 => 16,  74 => 15,  71 => 14,  65 => 11,  62 => 10,  60 => 9,  55 => 7,  50 => 4,  48 => 3,  45 => 2,  43 => 1,);
  126.     }
  127.     public function getSourceContext()
  128.     {
  129.         return new Source("{% form_theme form '@SyliusUi/Form/theme.html.twig' %}
  130. {% import '@SyliusUi/Macro/messages.html.twig' as messages %}
  131. <div class=\"ui middle aligned center aligned grid\">
  132.     <div class=\"column\">
  133.         {{ sonata_block_render_event('sylius.admin.login.before_form', {'form': form}) }}
  134.         {% if paths.logo is defined %}
  135.             <div style=\"max-width: 270px; margin: 0 auto; margin-bottom: 40px;\">
  136.                 <img src=\"{{ asset(paths.logo) }}\" class=\"ui fluid image\" id=\"logo\">
  137.             </div>
  138.         {% endif %}
  139.         {% if last_error %}
  140.             <div class=\"ui left aligned basic segment\">
  141.                 {{ messages.error(last_error.messageKey) }}
  142.             </div>
  143.         {% endif %}
  144.         {{ form_start(form, {'action': action|default('/'), 'attr': {'class': 'ui large loadable form', 'novalidate': 'novalidate'}}) }}
  145.             <div class=\"ui left aligned very padded segment\">
  146.                 {{ form_row(form._username, {'value': last_username|default('')}) }}
  147.                 {{ form_row(form._password) }}
  148.                 {{ form_row(form._remember_me) }}
  149.                 <input type=\"hidden\" name=\"_csrf_admin_security_token\" value=\"{{ csrf_token('admin_authenticate') }}\">
  150.                 <button type=\"submit\" class=\"ui fluid large primary submit button\">Login</button>
  151.             </div>
  152.             {{ sonata_block_render_event('sylius.admin.login.form', {'form': form}) }}
  153.         {{ form_end(form, {'render_rest': false}) }}
  154.     </div>
  155. </div>
  156. ""@SyliusUi/Security/_login.html.twig""/vhosts/roviniete-qa.roviniete.ro/vendor/sylius/sylius/src/Sylius/Bundle/UiBundle/Resources/views/Security/_login.html.twig");
  157.     }
  158. }