<?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_widget.html.php */
class __TwigTemplate_d6fdbe4652bbc45f9132b5fc5457e38f 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 (!\$label) {
    \$label = \$view['form']->humanize(\$name);
} ?>
<button type=\"<?php echo isset(\$type) ? \$view->escape(\$type) : 'button'; ?>\"
    <?php echo \$view['form']->block(\$form, 'button_attributes'); ?>>
    <?php if (!empty(\$form->vars['attr']['icon'])): ?>
    <i class=\"<?php echo \$form->vars['attr']['icon']; ?> \"></i>
    <?php endif; ?>
    <?php echo \$view->escape(\$view['translator']->trans(\$label, [], \$translation_domain)); ?>
</button>
";
    }

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

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

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