Files
dockerfluxodecaixapro/cache/twig/76/76919748fa23605331bcdb05eb81189b.php
T
2026-09-01 10:46:29 -03:00

98 lines
3.1 KiB
PHP
Executable File

<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* components/password-field.twig */
class __TwigTemplate_3411eefee05eacf3f2774f1b4ddf0619 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
// line 1
$context["req"] = (((array_key_exists("required", $context) && ($context["required"] ?? null))) ? ("required") : (""));
// line 2
yield "<div class=\"form-floating mb-3 position-relative\" x-data=\"{show:false}\">
<input :type=\"show ? 'text' : 'password'\" class=\"form-control\" id=\"";
// line 3
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true);
yield "\" name=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["name"] ?? null), "html", null, true);
yield "\" placeholder=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["placeholder"] ?? null), "html", null, true);
yield "\" ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["req"] ?? null), "html", null, true);
yield ">
<label for=\"";
// line 4
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id"] ?? null), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["label"] ?? null), "html", null, true);
yield "</label>
<button type=\"button\" class=\"btn btn-outline-secondary btn-sm position-absolute top-50 end-0 translate-middle-y me-2\" @click=\"show = !show\" aria-label=\"Toggle password visibility\">
<i :class=\"show ? 'bi bi-eye-slash' : 'bi bi-eye'\"></i>
</button>
</div>
";
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "components/password-field.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 57 => 4, 47 => 3, 44 => 2, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("", "components/password-field.twig", "/app/templates/components/password-field.twig");
}
}