<?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;
/* @crud\crud\formulario_new.html.twig */
class __TwigTemplate_4e5ac36246f09bd26d2815121b31942e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'form_action' => [$this, 'block_form_action'],
'botones_form' => [$this, 'block_botones_form'],
'action_retorno' => [$this, 'block_action_retorno'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@crud\\crud\\formulario.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@crud\\crud\\formulario_new.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@crud\\crud\\formulario_new.html.twig"));
$this->parent = $this->loadTemplate("@crud\\crud\\formulario.html.twig", "@crud\\crud\\formulario_new.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_form_action($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_action"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_action"));
// line 4
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 4, $this->source); })()), 'form_start', ["attr" => ["class" => ("form form_" . (isset($context["routeClassName"]) || array_key_exists("routeClassName", $context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.', 4, $this->source); })())), "id" => ("crud_form_" . (isset($context["routeClassName"]) || array_key_exists("routeClassName", $context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.', 4, $this->source); })()))], "method" => "POST", "action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("crud_plain_create", ["rol" => (isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 4, $this->source); })()), "routeClassName" => (isset($context["routeClassName"]) || array_key_exists("routeClassName", $context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.', 4, $this->source); })())])]);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 7
public function block_botones_form($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "botones_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "botones_form"));
// line 8
echo " ";
$this->displayParentBlock("botones_form", $context, $blocks);
echo "
<div class=\"row\" id=\"botones_form\">
<div class=\"col-xs-3 col-sm-4\">
<center>
";
// line 13
$this->displayBlock('action_retorno', $context, $blocks);
// line 17
echo "
</center>
</div>
<div class=\"col-xs-3 col-sm-4\">
<center>
<input id=\"btn_save_";
// line 22
echo twig_escape_filter($this->env, (isset($context["routeClassName"]) || array_key_exists("routeClassName", $context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.', 22, $this->source); })()), "html", null, true);
echo "\" class=\"btn btn-white btn-inverse btn-bold btn-round\" type=\"submit\" value=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("botones.grabar", [], "crud");
echo "\" name=\"";
echo twig_escape_filter($this->env, (isset($context["btnSave"]) || array_key_exists("btnSave", $context) ? $context["btnSave"] : (function () { throw new RuntimeError('Variable "btnSave" does not exist.', 22, $this->source); })()), "html", null, true);
echo "\">
</center>
</div>
<div class=\"col-xs-6 col-sm-4\">
<center>
<input id=\"btn_save_and_create_";
// line 27
echo twig_escape_filter($this->env, (isset($context["routeClassName"]) || array_key_exists("routeClassName", $context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.', 27, $this->source); })()), "html", null, true);
echo "\" class=\"btn btn-white btn-inverse btn-bold btn-round\" type=\"submit\" value=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("botones.grabar_y_crear", [], "crud");
echo "\" name=\"btn_do_and_create\">
</center>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 13
public function block_action_retorno($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "action_retorno"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "action_retorno"));
// line 14
echo " <a id=\"btn_retorno_";
echo twig_escape_filter($this->env, (isset($context["routeClassName"]) || array_key_exists("routeClassName", $context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.', 14, $this->source); })()), "html", null, true);
echo "\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("crud_plain_back_to_list", ["rol" => (isset($context["rol"]) || array_key_exists("rol", $context) ? $context["rol"] : (function () { throw new RuntimeError('Variable "rol" does not exist.', 14, $this->source); })()), "routeClassName" => (isset($context["routeClassName"]) || array_key_exists("routeClassName", $context) ? $context["routeClassName"] : (function () { throw new RuntimeError('Variable "routeClassName" does not exist.', 14, $this->source); })()), "from" => "new"]), "html", null, true);
echo "\">
";
// line 15
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("botones.regresar", [], "crud");
// line 16
echo " </a>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@crud\\crud\\formulario_new.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 159 => 16, 157 => 15, 150 => 14, 140 => 13, 123 => 27, 111 => 22, 104 => 17, 102 => 13, 93 => 8, 83 => 7, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"@crud\\\\crud\\\\formulario.html.twig\" %}
{% block form_action %}
{{ form_start(form, {'attr': { 'class': 'form form_'~routeClassName, 'id': 'crud_form_'~routeClassName}, 'method': 'POST', 'action': path('crud_plain_create', {'rol': rol, 'routeClassName': routeClassName})}) }}
{% endblock %}
{% block botones_form %}
{{ parent() }}
<div class=\"row\" id=\"botones_form\">
<div class=\"col-xs-3 col-sm-4\">
<center>
{% block action_retorno %}
<a id=\"btn_retorno_{{ routeClassName }}\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"{{ path('crud_plain_back_to_list', {'rol': rol, 'routeClassName': routeClassName, 'from': 'new'}) }}\">
{% trans from 'crud' %}botones.regresar{% endtrans %}
</a>
{% endblock %}
</center>
</div>
<div class=\"col-xs-3 col-sm-4\">
<center>
<input id=\"btn_save_{{ routeClassName }}\" class=\"btn btn-white btn-inverse btn-bold btn-round\" type=\"submit\" value=\"{% trans from 'crud' %}botones.grabar{% endtrans %}\" name=\"{{btnSave}}\">
</center>
</div>
<div class=\"col-xs-6 col-sm-4\">
<center>
<input id=\"btn_save_and_create_{{ routeClassName }}\" class=\"btn btn-white btn-inverse btn-bold btn-round\" type=\"submit\" value=\"{% trans from 'crud' %}botones.grabar_y_crear{% endtrans %}\" name=\"btn_do_and_create\">
</center>
</div>
</div>
{% endblock %}
", "@crud\\crud\\formulario_new.html.twig", "/data/produccion/integral/src/Crud/templates/crud/formulario_new.html.twig");
}
}