var/cache/dev/twig/88/889241418f581540876cc325637a312c.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @crud\crud\formulario_new.html.twig */
  14. class __TwigTemplate_4e5ac36246f09bd26d2815121b31942e extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'form_action' => [$this'block_form_action'],
  24.             'botones_form' => [$this'block_botones_form'],
  25.             'action_retorno' => [$this'block_action_retorno'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@crud\\crud\\formulario.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@crud\\crud\\formulario_new.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@crud\\crud\\formulario_new.html.twig"));
  40.         $this->parent $this->loadTemplate("@crud\\crud\\formulario.html.twig""@crud\\crud\\formulario_new.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_form_action($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_action"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""form_action"));
  55.         // line 4
  56.         echo "    ";
  57.         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); })())])]);
  58.         echo "
  59. ";
  60.         
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62.         
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64.     }
  65.     // line 7
  66.     public function block_botones_form($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""botones_form"));
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""botones_form"));
  73.         // line 8
  74.         echo "    ";
  75.         $this->displayParentBlock("botones_form"$context$blocks);
  76.         echo "
  77.             
  78.     <div class=\"row\" id=\"botones_form\">
  79.         <div class=\"col-xs-3 col-sm-4\">
  80.             <center>
  81.                 ";
  82.         // line 13
  83.         $this->displayBlock('action_retorno'$context$blocks);
  84.         // line 17
  85.         echo 
  86.             </center>
  87.         </div>    
  88.         <div class=\"col-xs-3 col-sm-4\">
  89.             <center>
  90.                 <input id=\"btn_save_";
  91.         // line 22
  92.         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"nulltrue);
  93.         echo "\" class=\"btn btn-white btn-inverse btn-bold btn-round\" type=\"submit\" value=\"";
  94.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("botones.grabar", [], "crud");
  95.         echo "\" name=\"";
  96.         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"nulltrue);
  97.         echo "\">
  98.             </center>
  99.         </div>    
  100.         <div class=\"col-xs-6 col-sm-4\">
  101.             <center>
  102.                 <input id=\"btn_save_and_create_";
  103.         // line 27
  104.         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"nulltrue);
  105.         echo "\" class=\"btn btn-white btn-inverse btn-bold btn-round\" type=\"submit\" value=\"";
  106.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("botones.grabar_y_crear", [], "crud");
  107.         echo "\" name=\"btn_do_and_create\">
  108.             </center>
  109.         </div>    
  110.     </div>
  111. ";
  112.         
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  114.         
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  116.     }
  117.     // line 13
  118.     public function block_action_retorno($context, array $blocks = [])
  119.     {
  120.         $macros $this->macros;
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""action_retorno"));
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""action_retorno"));
  125.         // line 14
  126.         echo "                    <a id=\"btn_retorno_";
  127.         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"nulltrue);
  128.         echo "\" class=\"btn btn-white btn-inverse btn-bold btn-round\" href=\"";
  129.         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"nulltrue);
  130.         echo "\">
  131.                         ";
  132.         // line 15
  133.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("botones.regresar", [], "crud");
  134.         // line 16
  135.         echo "                    </a>
  136.                 ";
  137.         
  138.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  139.         
  140.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  141.     }
  142.     public function getTemplateName()
  143.     {
  144.         return "@crud\\crud\\formulario_new.html.twig";
  145.     }
  146.     public function isTraitable()
  147.     {
  148.         return false;
  149.     }
  150.     public function getDebugInfo()
  151.     {
  152.         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,);
  153.     }
  154.     public function getSourceContext()
  155.     {
  156.         return new Source("{% extends \"@crud\\\\crud\\\\formulario.html.twig\" %}
  157.             
  158. {% block form_action %}
  159.     {{ form_start(form, {'attr': { 'class': 'form form_'~routeClassName, 'id': 'crud_form_'~routeClassName}, 'method': 'POST', 'action': path('crud_plain_create', {'rol': rol, 'routeClassName': routeClassName})}) }}
  160. {% endblock %}
  161. {% block botones_form %}
  162.     {{ parent() }}
  163.             
  164.     <div class=\"row\" id=\"botones_form\">
  165.         <div class=\"col-xs-3 col-sm-4\">
  166.             <center>
  167.                 {% block action_retorno %}
  168.                     <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'}) }}\">
  169.                         {% trans from 'crud' %}botones.regresar{% endtrans %}
  170.                     </a>
  171.                 {% endblock %} 
  172.             </center>
  173.         </div>    
  174.         <div class=\"col-xs-3 col-sm-4\">
  175.             <center>
  176.                 <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}}\">
  177.             </center>
  178.         </div>    
  179.         <div class=\"col-xs-6 col-sm-4\">
  180.             <center>
  181.                 <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\">
  182.             </center>
  183.         </div>    
  184.     </div>
  185. {% endblock %}
  186. ""@crud\\crud\\formulario_new.html.twig""/data/produccion/integral/src/Crud/templates/crud/formulario_new.html.twig");
  187.     }
  188. }