<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* forms/sign-in.html.twig */
class __TwigTemplate_8032d23f4f4c8549abbb5f38e7f57bdb extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'right' => [$this, 'block_right'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base-split.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "forms/sign-in.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "forms/sign-in.html.twig"));
$this->parent = $this->loadTemplate("base-split.html.twig", "forms/sign-in.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_right($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "right"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "right"));
// line 4
echo "
";
// line 5
if ((isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 5, $this->source); })())) {
// line 6
echo " <div class=\"alert alert-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 6, $this->source); })()), "type", [], "any", false, false, false, 6), "html", null, true);
echo "\">
";
// line 7
if ((twig_get_attribute($this->env, $this->source, (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 7, $this->source); })()), "type", [], "any", false, false, false, 7) == "warning")) {
// line 8
echo " <i class=\"fa fa-exclamation-triangle\"></i>
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 9
(isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 9, $this->source); })()), "type", [], "any", false, false, false, 9) == "success")) {
// line 10
echo " <i class=\"fa fa-check\"></i>
";
}
// line 12
echo " ";
echo twig_get_attribute($this->env, $this->source, (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 12, $this->source); })()), "text", [], "any", false, false, false, 12);
echo "
</div>
";
}
// line 15
echo "
";
// line 16
if (twig_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.', 16, $this->source); })()), "user", [], "any", false, false, false, 16)) {
// line 17
echo " <p>Hello ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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.', 17, $this->source); })()), "user", [], "any", false, false, false, 17), "getFullName", [], "method", false, false, false, 17), "html", null, true);
echo ",<br />
You are currently signed in.<br />
<form method=\"post\" action=\"/sign-out\">
<button
type=\"submit\"
class=\"btn btn-secondary text-white bg-dark mt-2\"
>Sign Out</button>
</form>
";
} else {
// line 27
echo " ";
// line 28
echo " <form action=\"/sign-in\" method=\"post\">
<legend>Sign In</legend>
<hr />
<label class=\"btn-block\">Username or Email Address
<input
class=\"form-control\"
type=\"text\"
name=\"_username\"
placeholder=\"Your Username or Email Address\"
/>
</label>
<label class=\"btn-block\">Password
<input
class=\"form-control\"
type=\"password\"
name=\"_password\"
placeholder=\"Your Password\"
/>
</label>
<div class=\"form-row g-recaptcha\" data-sitekey=\"6LeEIlMUAAAAAGhdmJJLdJHPxaWx2GqBjber5n6B\" required></div>
<button
type=\"submit\"
class=\"btn btn-secondary text-white bg-dark mt-2\"
>Sign In</button>
</form>
<hr />
<ul class=\"mt-3\">
<li><a href=\"/sign-up\" class=\"text-white\">Click here to Sign Up.</a></li>
<li><a href=\"/forgot-password\" class=\"text-white\">Forgot Password?</a></li>
<li><a href=\"/forgot-username\" class=\"text-white\">Forgot Username?</a></li>
<li><a href=\"/send-activation\" class=\"text-white\">Re-send Activation.</a></li>
</ul>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "forms/sign-in.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 117 => 28, 115 => 27, 101 => 17, 99 => 16, 96 => 15, 89 => 12, 85 => 10, 83 => 9, 80 => 8, 78 => 7, 73 => 6, 71 => 5, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base-split.html.twig\" %}
{% block right %}
{% if message %}
<div class=\"alert alert-{{ message.type }}\">
{% if message.type == 'warning' %}
<i class=\"fa fa-exclamation-triangle\"></i>
{% elseif message.type == 'success' %}
<i class=\"fa fa-check\"></i>
{% endif %}
{{ message.text | raw}}
</div>
{% endif %}
{% if app.user %}
<p>Hello {{ app.user.getFullName() }},<br />
You are currently signed in.<br />
<form method=\"post\" action=\"/sign-out\">
<button
type=\"submit\"
class=\"btn btn-secondary text-white bg-dark mt-2\"
>Sign Out</button>
</form>
{% else %}
{#<form action=\"{{ path(\"sign-in\") }}\" method=\"post\">#}
<form action=\"/sign-in\" method=\"post\">
<legend>Sign In</legend>
<hr />
<label class=\"btn-block\">Username or Email Address
<input
class=\"form-control\"
type=\"text\"
name=\"_username\"
placeholder=\"Your Username or Email Address\"
/>
</label>
<label class=\"btn-block\">Password
<input
class=\"form-control\"
type=\"password\"
name=\"_password\"
placeholder=\"Your Password\"
/>
</label>
<div class=\"form-row g-recaptcha\" data-sitekey=\"6LeEIlMUAAAAAGhdmJJLdJHPxaWx2GqBjber5n6B\" required></div>
<button
type=\"submit\"
class=\"btn btn-secondary text-white bg-dark mt-2\"
>Sign In</button>
</form>
<hr />
<ul class=\"mt-3\">
<li><a href=\"/sign-up\" class=\"text-white\">Click here to Sign Up.</a></li>
<li><a href=\"/forgot-password\" class=\"text-white\">Forgot Password?</a></li>
<li><a href=\"/forgot-username\" class=\"text-white\">Forgot Username?</a></li>
<li><a href=\"/send-activation\" class=\"text-white\">Re-send Activation.</a></li>
</ul>
{% endif %}
{% endblock %}", "forms/sign-in.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/forms/sign-in.html.twig");
}
}