File: /var/www/apklausos/tmp/runtime/twig_cache/03/03f4a0cbf8bf74644f43f83405f4d9f2.php
<?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;
/* /survey/questions/answer/yesno/buttons/item.twig */
class __TwigTemplate_e156b0a2762c8281b873a678f6e0c5ce extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 13
yield "
<div class=\"ls-answers answers-list yesno-button btn-group btn-group-justified\" role=\"radiogroup\" aria-labelledby=\"ls-question-text-";
// line 14
yield $this->sandbox->ensureToStringAllowed(($context["basename"] ?? null), 14, $this->source);
yield "\">
<!-- Yes -->
<input type=\"radio\" class=\"btn-check ls-button-radio\" name=\"";
// line 16
yield $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 16, $this->source);
yield "\" id=\"answer";
yield $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 16, $this->source);
yield "Y\" value=\"Y\" ";
yield $this->sandbox->ensureToStringAllowed(($context["yChecked"] ?? null), 16, $this->source);
yield ">
<label class=\"btn btn-primary mb-3 answer-item ls-button-label\" id=\"javatbd";
// line 17
yield $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 17, $this->source);
yield "Y\" for=\"answer";
yield $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 17, $this->source);
yield "Y\">
<span class=\"fa fa-check ls-icon ri-checkbox-circle-line\" aria-hidden=\"true\"></span> ";
// line 18
yield gT("Yes");
yield "
</label>
<!-- No -->
<input type=\"radio\" class=\"btn-check ls-button-radio\" name=\"";
// line 21
yield $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 21, $this->source);
yield "\" id=\"answer";
yield $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 21, $this->source);
yield "N\" value=\"N\" ";
yield $this->sandbox->ensureToStringAllowed(($context["nChecked"] ?? null), 21, $this->source);
yield ">
<label class=\"btn btn-primary mb-3 answer-item ls-button-label\" id=\"javatbd";
// line 22
yield $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 22, $this->source);
yield "N\" for=\"answer";
yield $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 22, $this->source);
yield "N\">
<span class=\"fa fa-ban ri-close-circle-line ls-icon\" aria-hidden=\"true\"></span> ";
// line 23
yield gT("No");
yield "
</label>
<!-- No answer -->
";
// line 26
if (($context["noAnswer"] ?? null)) {
// line 27
yield " <input type=\"radio\" class=\"btn-check ls-button-radio\" name=\"";
yield $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 27, $this->source);
yield "\" id=\"answer";
yield $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 27, $this->source);
yield "\" value=\"\" ";
yield $this->sandbox->ensureToStringAllowed(($context["naChecked"] ?? null), 27, $this->source);
yield ">
<label class=\"btn btn-primary mb-3 answer-item ls-button-label\" id=\"javatbd";
// line 28
yield $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 28, $this->source);
yield "\" for=\"answer";
yield $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 28, $this->source);
yield "\">
<span class=\"fa fa-circle-thin ri-checkbox-blank-circle-line ls-icon\" aria-hidden=\"true\"></span> ";
// line 29
yield gT("No answer");
yield "
</label>
";
}
// line 32
yield "</div>
";
// line 34
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["C"] ?? null), "Html", [], "any", false, false, true, 34), "hiddenField", [("java" . $this->sandbox->ensureToStringAllowed(($context["name"] ?? null), 34, $this->source)), ($context["value"] ?? null), ["id" => ("java" . $this->sandbox->ensureToStringAllowed( // line 35
($context["name"] ?? null), 35, $this->source)), "disabled" => true]], "method", false, false, true, 34), 34, $this->source);
// line 38
yield "
";
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "/survey/questions/answer/yesno/buttons/item.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 117 => 38, 115 => 35, 114 => 34, 111 => 32, 105 => 29, 99 => 28, 90 => 27, 88 => 26, 82 => 23, 76 => 22, 68 => 21, 62 => 18, 56 => 17, 48 => 16, 43 => 14, 40 => 13,);
}
public function getSourceContext()
{
return new Source("", "/survey/questions/answer/yesno/buttons/item.twig", "/var/www/apklausos/application/views/survey/questions/answer/yesno/buttons/item.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 26);
static $filters = array();
static $functions = array("gT" => 18);
try {
$this->sandbox->checkSecurity(
['if'],
[],
['gT'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}