<?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/button_group_row.html.php */
class __TwigTemplate_8c2371b662001842d6fab13a345c017360eb2d403f5df4e23a575482130f783d 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
\$hasErrors     = count(\$form->vars['errors']);
\$feedbackClass = ('POST' == \$app->getRequest()->getMethod() && !empty(\$hasErrors)) ? ' has-error' : '';

?>
<div class=\"row\">
    <div class=\"form-group col-xs-12 <?php echo \$feedbackClass; ?>\">
        <?php echo \$view['form']->label(\$form, \$label); ?>
        <div class=\"choice-wrapper\">
            <?php echo \$view['form']->widget(\$form); ?>
            <?php echo \$view['form']->errors(\$form); ?>
        </div>
    </div>
</div>
";
    }

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

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

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