<?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;

/* @bundles/CoreBundle/Views/FormTheme/Custom/form_errors.html.php */
class __TwigTemplate_54c769cc5200a783d754825e3a32e79a extends Template
{
    private $source;
    private $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 = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<?php if (count(\$errors) > 0): ?>
    <div class=\"help-block\">
    <?php if (count(\$errors) > 1): ?>
        <ul>
            <?php foreach (\$errors as \$error): ?>
                <li><?php echo \$view->escape(\$error->getMessage()); ?></li>
            <?php endforeach; ?>
        </ul>
    <?php else: ?>
        <?php echo \$view->escape(\$errors[0]->getMessage()); ?>
    <?php endif; ?>
    </div>
<?php endif; ?>
";
    }

    public function getTemplateName()
    {
        return "@bundles/CoreBundle/Views/FormTheme/Custom/form_errors.html.php";
    }

    public function getDebugInfo()
    {
        return array (  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@bundles/CoreBundle/Views/FormTheme/Custom/form_errors.html.php", "/var/www/mautic/app/bundles/CoreBundle/Views/FormTheme/Custom/form_errors.html.php");
    }
}
