<?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.html.twig */
class __TwigTemplate_48b183ad5d89067c8342adf9cac6666f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'formulario_jquery' => [$this, 'block_formulario_jquery'],
'formulario_customs_functions' => [$this, 'block_formulario_customs_functions'],
'formulario_customs_jquery' => [$this, 'block_formulario_customs_jquery'],
'formulario_content' => [$this, 'block_formulario_content'],
'secondary_heading' => [$this, 'block_secondary_heading'],
'pre_form' => [$this, 'block_pre_form'],
'form_action' => [$this, 'block_form_action'],
'form' => [$this, 'block_form'],
'form_pre_rows' => [$this, 'block_form_pre_rows'],
'rowopen' => [$this, 'block_rowopen'],
'draw_widget' => [$this, 'block_draw_widget'],
'rowclose' => [$this, 'block_rowclose'],
'form_post_rows' => [$this, 'block_form_post_rows'],
'post_form' => [$this, 'block_post_form'],
'botones_form' => [$this, 'block_botones_form'],
'end_form' => [$this, 'block_end_form'],
];
}
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.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.html.twig"));
// line 1
$this->displayBlock('formulario_jquery', $context, $blocks);
// line 153
echo "
";
// line 154
$this->displayBlock('formulario_content', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 1
public function block_formulario_jquery($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", "formulario_jquery"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formulario_jquery"));
// line 2
echo " <script type=\"text/javascript\">
function mostrarTextoGeometria(geometria)
{
cadenaRetorno = '';
if (geometria.length)
{
cadena = geometria.replace('POINT(','');
cadena = cadena.replace(')','');
punto = cadena.split(' ');
cadenaRetorno = 'Lat:'+ parseFloat(punto[1]).toFixed(2) + ' Lon:'+ parseFloat(punto[0]).toFixed(2);
}
return cadenaRetorno;
}
";
// line 17
$this->displayBlock('formulario_customs_functions', $context, $blocks);
// line 19
echo "
\$(function(){
\t\t
\$('.just_numbers').keypress(function(e){
if (e.which<48 || e.which>57 )
e.preventDefault();
});
\$('.just_floats').keypress(function(e){
if (e.which === 46) //el punto
{
//buscar si ya hay un punto
var val = \$(this).val();
if (val.indexOf('.')>=0)
{
e.preventDefault();
}
}
else
if (e.which<48 || e.which>57 )
e.preventDefault();
});
\t\t
\$(\"#crud_form_";
// line 42
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.', 42, $this->source); })()), "html", null, true);
echo "\").find(\".form-control\").each(function () {
var idK=\$(this).attr('id');
if (idK)
{
var idW = idK.replace('form','');
idW = 'form_";
// line 47
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.', 47, $this->source); })()), "html", null, true);
echo "'+ idW;
\$(this).attr('id',idW);
\$(this).removeClass('form-control');
}
});
";
// line 53
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 53, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["widget"]) {
// line 54
echo " ";
if (($context["key"] != "_token")) {
// line 55
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, true, false, 55), "attr", [], "any", false, true, false, 55), "readonly", [], "any", true, true, false, 55)) {
// line 56
echo " \$('#crud_form_";
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.', 56, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 56, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').addClass('hide');
";
}
// line 58
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, true, false, 58), "attr", [], "any", false, true, false, 58), "dependiente_parent", [], "any", true, true, false, 58)) {
// line 59
echo " \$('#form_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 59), "attr", [], "any", false, false, false, 59), "dependiente_parent", [], "any", false, false, false, 59), "html", null, true);
echo "').change(function(){
var selected = \$(this).val();
if (selected==\"\") selected=\"-1\";
// var baseSite = document.getElementById('baseSite').value;
var url = '";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("crudDependiente", ["rol" => "all", "className" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 63), "attr", [], "any", false, false, false, 63), "dependiente_class", [], "any", false, false, false, 63), "fieldName" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 63), "attr", [], "any", false, false, false, 63), "dependiente_field", [], "any", false, false, false, 63), "value" => "__VALUE__"]), "html", null, true);
echo "';
url = url.replace('__VALUE__',selected);
// var url = baseSite+\"dependientes/";
// line 65
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 65), "attr", [], "any", false, false, false, 65), "dependiente_class", [], "any", false, false, false, 65), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 65), "attr", [], "any", false, false, false, 65), "dependiente_field", [], "any", false, false, false, 65), "html", null, true);
echo "/\"+selected;
\$('#";
// line 66
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').mask(' ');
\$('#form_";
// line 67
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.', 67, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').load(url, function(){
\$('#";
// line 68
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').unmask();
});
});
";
}
// line 72
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, true, false, 72), "attr", [], "any", false, true, false, 72), "class", [], "any", true, true, false, 72)) {
// line 73
echo " ";
if ($this->extensions['App\Crud\Twig\twigExtension']->isSubStringFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 73), "attr", [], "any", false, false, false, 73), "class", [], "any", false, false, false, 73), "spinbox-input")) {
// line 74
echo " ";
$context["min"] = "";
// line 75
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, true, false, 75), "attr", [], "any", false, true, false, 75), "min", [], "any", true, true, false, 75)) {
// line 76
echo " ";
$context["min"] = (("min: " . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 76), "attr", [], "any", false, false, false, 76), "min", [], "any", false, false, false, 76)) . ", ");
// line 77
echo " ";
}
// line 78
echo " ";
$context["max"] = "";
// line 79
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, true, false, 79), "attr", [], "any", false, true, false, 79), "max", [], "any", true, true, false, 79)) {
// line 80
echo " ";
$context["max"] = (("max: " . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 80), "attr", [], "any", false, false, false, 80), "max", [], "any", false, false, false, 80)) . ", ");
// line 81
echo " ";
}
// line 82
echo " \$('#crud_form_";
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.', 82, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 82, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').attr('type','text');
\$('#crud_form_";
// line 83
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.', 83, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 83, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').ace_spinner({ ";
echo twig_escape_filter($this->env, (isset($context["min"]) || array_key_exists("min", $context) ? $context["min"] : (function () { throw new RuntimeError('Variable "min" does not exist.', 83, $this->source); })()), "html", null, true);
echo twig_escape_filter($this->env, (isset($context["max"]) || array_key_exists("max", $context) ? $context["max"] : (function () { throw new RuntimeError('Variable "max" does not exist.', 83, $this->source); })()), "html", null, true);
echo " step: 1, on_sides: true, icon_up: 'fas fa-plus', icon_down: 'fas fa-minus ', btn_up_class: 'btn-grey', btn_down_class: 'btn-grey', full_width: true});
";
} else {
// line 85
echo " ";
if ($this->extensions['App\Crud\Twig\twigExtension']->isSubStringFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 85), "attr", [], "any", false, false, false, 85), "class", [], "any", false, false, false, 85), "campo_fecha")) {
// line 86
echo " \$('#crud_form_";
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.', 86, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 86, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').wrap('<div class=\"input-group\" id=\"campo_fecha_";
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.', 86, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" />');
\$('#campo_fecha_";
// line 87
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.', 87, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').append('<span class=\"input-group-addon\"><i class=\"fas fa-calendar bigger-110\"></i></span>');
\$('#crud_form_";
// line 88
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.', 88, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 88, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').attr('type','text');
\$('#crud_form_";
// line 89
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.', 89, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 89, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').datepicker({
autoclose: true,
todayHighlight: true,
";
// line 92
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, true, false, 92), "attr", [], "any", false, true, false, 92), "startDate", [], "any", true, true, false, 92)) {
// line 93
echo " startDate: '";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 93), "attr", [], "any", false, false, false, 93), "startDate", [], "any", false, false, false, 93), "html", null, true);
echo "',
";
}
// line 95
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, true, false, 95), "attr", [], "any", false, true, false, 95), "endDate", [], "any", true, true, false, 95)) {
// line 96
echo " endDate: '";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 96), "attr", [], "any", false, false, false, 96), "endDate", [], "any", false, false, false, 96), "html", null, true);
echo "',
";
}
// line 98
echo " language: '";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 98, $this->source); })()), "request", [], "any", false, false, false, 98), "locale", [], "any", false, false, false, 98), "html", null, true);
echo "'
})
.next().on(ace.click_event, function(){
\$(this).prev().focus();
});
";
} else {
// line 104
echo " ";
if ($this->extensions['App\Crud\Twig\twigExtension']->isSubStringFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 104), "attr", [], "any", false, false, false, 104), "class", [], "any", false, false, false, 104), "campo_hora_fecha")) {
// line 105
echo " \$('#crud_form_";
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.', 105, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 105, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').wrap('<div class=\"input-group\" id=\"campo_fecha_";
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.', 105, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "\" />');
\$('#campo_fecha_";
// line 106
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.', 106, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').append('<span class=\"input-group-addon\"><i class=\"fas fa-calendar bigger-110\"></i></span>');
\$('#crud_form_";
// line 107
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.', 107, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 107, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').datetimepicker()
.next().on(ace.click_event, function(){
\$(this).prev().focus();
});
";
} else {
// line 112
echo " ";
if ($this->extensions['App\Crud\Twig\twigExtension']->isSubStringFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 112), "attr", [], "any", false, false, false, 112), "class", [], "any", false, false, false, 112), "geometria_punto")) {
// line 113
echo " \$('#crud_form_";
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.', 113, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 113, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').change(function(){
geometria = \$(this).val();
valor = mostrarTextoGeometria(geometria);
\$('#textoGeometriaPunto').html(valor);
});
\$('#crud_form_";
// line 118
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.', 118, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 118, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').trigger('change');
";
} else {
// line 120
echo " ";
if ($this->extensions['App\Crud\Twig\twigExtension']->isSubStringFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 120), "attr", [], "any", false, false, false, 120), "class", [], "any", false, false, false, 120), "geometria_poligono")) {
// line 121
echo " \$('#crud_form_";
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.', 121, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 121, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').change(function(){
\$('#textoGeometriaPoligono').html('Pol�gono definido');
});
if(\$('#crud_form_";
// line 126
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.', 126, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 126, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').val())
\$('#textoGeometriaPoligono').html('Pol�gono definido');
";
} else {
// line 130
echo " ";
if ($this->extensions['App\Crud\Twig\twigExtension']->isSubStringFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 130), "attr", [], "any", false, false, false, 130), "class", [], "any", false, false, false, 130), "dolar")) {
// line 131
echo " \$('#crud_form_";
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.', 131, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 131, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').wrap('<div class=\"input-group\"/>');
\$('#crud_form_";
// line 132
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.', 132, $this->source); })()), "html", null, true);
echo "').find('#form_";
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.', 132, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "').parent().prepend(\"<span class='input-group-addon'>\$</span>\");
";
}
// line 134
echo " ";
}
// line 135
echo " ";
}
// line 136
echo " ";
}
// line 137
echo "
";
}
// line 139
echo " ";
}
// line 140
echo "
";
}
// line 142
echo " ";
}
// line 143
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['widget'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 144
echo "
\t\t
";
// line 147
$this->displayBlock('formulario_customs_jquery', $context, $blocks);
// line 149
echo "
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 17
public function block_formulario_customs_functions($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", "formulario_customs_functions"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formulario_customs_functions"));
// line 18
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 147
public function block_formulario_customs_jquery($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", "formulario_customs_jquery"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formulario_customs_jquery"));
// line 148
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 154
public function block_formulario_content($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", "formulario_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formulario_content"));
// line 155
echo "
";
// line 156
$this->displayBlock('secondary_heading', $context, $blocks);
// line 158
echo "
";
// line 159
if ( !array_key_exists("btnSave", $context)) {
// line 160
echo " ";
$context["btnSave"] = "btn_do_and_list";
// line 161
echo " ";
}
// line 162
echo "
";
// line 163
$this->displayBlock('pre_form', $context, $blocks);
// line 165
echo "
";
// line 166
$this->displayBlock('form_action', $context, $blocks);
// line 168
echo "
";
// line 169
$this->displayBlock('form', $context, $blocks);
// line 331
echo "
";
// line 332
$this->displayBlock('post_form', $context, $blocks);
// line 338
echo "
";
// line 339
$this->displayBlock('botones_form', $context, $blocks);
// line 346
echo "
";
// line 347
$this->displayBlock('end_form', $context, $blocks);
// line 350
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 156
public function block_secondary_heading($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", "secondary_heading"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "secondary_heading"));
// line 157
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 163
public function block_pre_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", "pre_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pre_form"));
// line 164
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 166
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 167
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 169
public function block_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", "form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form"));
// line 170
echo " ";
$context["rowopen"] = false;
// line 171
echo " ";
$context["maxcol"] = (isset($context["formColumns"]) || array_key_exists("formColumns", $context) ? $context["formColumns"] : (function () { throw new RuntimeError('Variable "formColumns" does not exist.', 171, $this->source); })());
// line 172
echo " ";
$context["col"] = 0;
// line 173
echo " ";
$this->displayBlock('form_pre_rows', $context, $blocks);
// line 175
echo "
";
// line 176
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["paramsRequest"]) || array_key_exists("paramsRequest", $context) ? $context["paramsRequest"] : (function () { throw new RuntimeError('Variable "paramsRequest" does not exist.', 176, $this->source); })()));
foreach ($context['_seq'] as $context["param"] => $context["value"]) {
// line 177
echo " ";
if (twig_test_iterable($context["value"])) {
// line 178
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["value"]);
foreach ($context['_seq'] as $context["_key"] => $context["val"]) {
// line 179
echo " <input name=\"";
echo twig_escape_filter($this->env, $context["param"], "html", null, true);
echo "\" type='hidden' value='";
echo twig_escape_filter($this->env, $context["val"], "html", null, true);
echo "'>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['val'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 181
echo " ";
} else {
// line 182
echo " <input id=\"";
echo twig_escape_filter($this->env, $context["param"], "html", null, true);
echo "\" name=\"";
echo twig_escape_filter($this->env, $context["param"], "html", null, true);
echo "\" type='hidden' value='";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "'>
";
}
// line 184
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['param'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 185
echo " <input id='form_accion_";
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.', 185, $this->source); })()), "html", null, true);
echo "' type='hidden' value='";
echo twig_escape_filter($this->env, (isset($context["accion"]) || array_key_exists("accion", $context) ? $context["accion"] : (function () { throw new RuntimeError('Variable "accion" does not exist.', 185, $this->source); })()), "html", null, true);
echo "'>
";
// line 198
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 198, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["key"] => $context["widget"]) {
// line 199
echo " ";
if ( !twig_get_attribute($this->env, $this->source, ($context["notShow"] ?? null), $context["key"], [], "array", true, true, false, 199)) {
// line 200
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, true, false, 200), "attr", [], "any", false, true, false, 200), "containerclass", [], "array", true, true, false, 200)) {
// line 201
echo " ";
if ($this->extensions['App\Crud\Twig\twigExtension']->isSubStringFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["widget"], "vars", [], "any", false, false, false, 201), "attr", [], "any", false, false, false, 201), "containerclass", [], "array", false, false, false, 201), "full-row")) {
// line 202
echo " ";
if ((isset($context["rowopen"]) || array_key_exists("rowopen", $context) ? $context["rowopen"] : (function () { throw new RuntimeError('Variable "rowopen" does not exist.', 202, $this->source); })())) {
// line 203
echo " </div>
<div class=\"row\">
";
}
// line 206
echo " ";
$context["col"] = ((isset($context["maxcol"]) || array_key_exists("maxcol", $context) ? $context["maxcol"] : (function () { throw new RuntimeError('Variable "maxcol" does not exist.', 206, $this->source); })()) - 1);
// line 207
echo " ";
}
// line 208
echo " ";
}
// line 209
echo " ";
if ( !(isset($context["rowopen"]) || array_key_exists("rowopen", $context) ? $context["rowopen"] : (function () { throw new RuntimeError('Variable "rowopen" does not exist.', 209, $this->source); })())) {
// line 210
echo " ";
$this->displayBlock('rowopen', $context, $blocks);
// line 213
echo " ";
$context["rowopen"] = true;
// line 214
echo " ";
}
// line 215
echo " ";
// line 225
echo " ";
$this->displayBlock('draw_widget', $context, $blocks);
// line 310
echo " ";
$context["col"] = ((isset($context["col"]) || array_key_exists("col", $context) ? $context["col"] : (function () { throw new RuntimeError('Variable "col" does not exist.', 310, $this->source); })()) + 1);
// line 311
echo " ";
if (((isset($context["col"]) || array_key_exists("col", $context) ? $context["col"] : (function () { throw new RuntimeError('Variable "col" does not exist.', 311, $this->source); })()) == (isset($context["maxcol"]) || array_key_exists("maxcol", $context) ? $context["maxcol"] : (function () { throw new RuntimeError('Variable "maxcol" does not exist.', 311, $this->source); })()))) {
// line 312
echo " ";
$this->displayBlock('rowclose', $context, $blocks);
// line 315
echo " ";
$context["rowopen"] = false;
// line 316
echo " ";
$context["col"] = 0;
// line 317
echo " ";
}
// line 318
echo " ";
}
// line 319
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['widget'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 320
echo " ";
if ((isset($context["rowopen"]) || array_key_exists("rowopen", $context) ? $context["rowopen"] : (function () { throw new RuntimeError('Variable "rowopen" does not exist.', 320, $this->source); })())) {
// line 321
echo " </div>
";
}
// line 323
echo "
";
// line 324
$this->displayBlock('form_post_rows', $context, $blocks);
// line 326
echo "
<div class=\"row hide\">
<table>";
// line 328
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 328, $this->source); })()), 'rest');
echo "</table>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 173
public function block_form_pre_rows($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_pre_rows"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_pre_rows"));
// line 174
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 210
public function block_rowopen($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", "rowopen"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "rowopen"));
// line 211
echo " <div class=\"row\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 225
public function block_draw_widget($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", "draw_widget"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "draw_widget"));
// line 226
echo " ";
$context["col_class"] = "col-xs-12";
// line 227
echo " ";
if (( !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 227), "attr", [], "any", false, true, false, 227), "containerclass", [], "array", true, true, false, 227) || !$this->extensions['App\Crud\Twig\twigExtension']->isSubStringFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 227, $this->source); })()), "vars", [], "any", false, false, false, 227), "attr", [], "any", false, false, false, 227), "containerclass", [], "array", false, false, false, 227), "full-row"))) {
// line 228
echo " ";
if (((isset($context["maxcol"]) || array_key_exists("maxcol", $context) ? $context["maxcol"] : (function () { throw new RuntimeError('Variable "maxcol" does not exist.', 228, $this->source); })()) > 1)) {
// line 229
echo " ";
$context["col_class"] = ((isset($context["col_class"]) || array_key_exists("col_class", $context) ? $context["col_class"] : (function () { throw new RuntimeError('Variable "col_class" does not exist.', 229, $this->source); })()) . " col-sm-6");
// line 230
echo " ";
}
// line 231
echo " ";
$context["col_class"] = (((isset($context["col_class"]) || array_key_exists("col_class", $context) ? $context["col_class"] : (function () { throw new RuntimeError('Variable "col_class" does not exist.', 231, $this->source); })()) . " col-md-") . (12 / (isset($context["maxcol"]) || array_key_exists("maxcol", $context) ? $context["maxcol"] : (function () { throw new RuntimeError('Variable "maxcol" does not exist.', 231, $this->source); })())));
// line 232
echo " ";
}
// line 233
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 233), "attr", [], "any", false, true, false, 233), "containerclass", [], "array", true, true, false, 233)) {
// line 234
echo " ";
$context["col_class"] = (((isset($context["col_class"]) || array_key_exists("col_class", $context) ? $context["col_class"] : (function () { throw new RuntimeError('Variable "col_class" does not exist.', 234, $this->source); })()) . " ") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 234, $this->source); })()), "vars", [], "any", false, false, false, 234), "attr", [], "any", false, false, false, 234), "containerclass", [], "array", false, false, false, 234));
// line 235
echo " ";
}
// line 236
echo " <div id=\"";
echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 236, $this->source); })()), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, (isset($context["col_class"]) || array_key_exists("col_class", $context) ? $context["col_class"] : (function () { throw new RuntimeError('Variable "col_class" does not exist.', 236, $this->source); })()), "html", null, true);
echo "\">
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: ";
// line 239
echo twig_escape_filter($this->env, (isset($context["widthLabel"]) || array_key_exists("widthLabel", $context) ? $context["widthLabel"] : (function () { throw new RuntimeError('Variable "widthLabel" does not exist.', 239, $this->source); })()), "html", null, true);
echo "; vertical-align: middle\">
";
// line 240
$context["required"] = "";
// line 241
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 241, $this->source); })()), "vars", [], "any", false, false, false, 241), "required", [], "any", false, false, false, 241)) {
// line 242
echo " ";
$context["required"] = "required";
// line 243
echo " ";
}
// line 244
echo " <label class=\"crud_label ";
echo twig_escape_filter($this->env, (isset($context["required"]) || array_key_exists("required", $context) ? $context["required"] : (function () { throw new RuntimeError('Variable "required" does not exist.', 244, $this->source); })()), "html", null, true);
echo "\" id=\"label_form_";
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.', 244, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 244, $this->source); })()), "html", null, true);
echo "\" ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 244), "attr", [], "any", false, true, false, 244), "tip", [], "any", true, true, false, 244)) {
echo "data-rel=\"tooltip\" data-trigger=\"hover\" data-placement=\"top\" data-content=\"More details.\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 244, $this->source); })()), "vars", [], "any", false, false, false, 244), "attr", [], "any", false, false, false, 244), "tip", [], "any", false, false, false, 244), "html", null, true);
echo "\" style=\"cursor: help\"";
}
echo ">
";
// line 245
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 245, $this->source); })()), "vars", [], "any", false, false, false, 245), "label", [], "any", false, false, false, 245), "html", null, true);
echo "
</label>
";
// line 247
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 247), "attr", [], "any", false, true, false, 247), "relation", [], "any", true, true, false, 247)) {
// line 248
echo " <label onclick=\"javascript:creaNuevoRelacion('";
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.', 248, $this->source); })()), "html", null, true);
echo "','form_";
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.', 248, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 248, $this->source); })()), "html", null, true);
echo "'); return false;\" class=\"relacion\" data-rel=\"tooltip\" data-trigger=\"hover\" data-placement=\"top\" data-content=\"More details.\" title=\"Si no encuentra en la lista la información que necesita, pinche aquí para adicionarla\" style=\"cursor: pointer\" itemid=\"form_";
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.', 248, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 248, $this->source); })()), "html", null, true);
echo "\">
<i class=\"icon fas fa-plus-square green\" itemid=\"";
// line 249
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 249, $this->source); })()), "vars", [], "any", false, false, false, 249), "id", [], "any", false, false, false, 249), "html", null, true);
echo "\"></i>
</label>
";
}
// line 252
echo " </th>
<td style=\"vertical-align: middle\" class=\"crud_td\">
";
// line 254
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 254), "type", [], "any", true, true, false, 254) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 254, $this->source); })()), "vars", [], "any", false, false, false, 254), "type", [], "any", false, false, false, 254) == "file")) && twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 254, $this->source); })()), "getFieldValue", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 254, $this->source); })()), "vars", [], "any", false, false, false, 254), "name", [], "any", false, false, false, 254)], "method", false, false, false, 254))) {
// line 255
echo " <div id=\"hidefile_";
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.', 255, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 255, $this->source); })()), "vars", [], "any", false, false, false, 255), "id", [], "any", false, false, false, 255), "html", null, true);
echo "\">
";
// line 256
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 256), "attr", [], "any", false, true, false, 256), "accept", [], "any", true, true, false, 256) && $this->extensions['App\Crud\Twig\twigExtension']->isSubStringFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 256, $this->source); })()), "vars", [], "any", false, false, false, 256), "attr", [], "any", false, false, false, 256), "accept", [], "any", false, false, false, 256), "image"))) {
// line 257
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 257, $this->source); })()), "getFieldValue", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 257, $this->source); })()), "vars", [], "any", false, false, false, 257), "name", [], "any", false, false, false, 257)], "method", false, false, false, 257), "getUrl", [], "method", false, false, false, 257)), "html", null, true);
echo "\" width='80px'>
";
} else {
// line 259
echo " <a target=\"_blank\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 259, $this->source); })()), "getFieldValue", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 259, $this->source); })()), "vars", [], "any", false, false, false, 259), "name", [], "any", false, false, false, 259)], "method", false, false, false, 259), "getUrl", [], "method", false, false, false, 259)), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 259, $this->source); })()), "getFieldValue", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 259, $this->source); })()), "vars", [], "any", false, false, false, 259), "name", [], "any", false, false, false, 259)], "method", false, false, false, 259), "getFileName", [], "method", false, false, false, 259), "html", null, true);
echo "</a>
";
}
// line 261
echo " ";
if ( !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 261), "attr", [], "any", false, true, false, 261), "readonly", [], "any", true, true, false, 261)) {
echo "
<span class=\"action-buttons\">
<a class=\"hide_item_";
// line 263
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.', 263, $this->source); })()), "html", null, true);
echo "\" id=\"hide_form_";
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.', 263, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 263, $this->source); })()), "html", null, true);
echo "\" item_id=\"form_";
echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 263, $this->source); })()), "html", null, true);
echo "\" href=\"\"><i class=\"fas fa-trash red bigger-130\" title=\"";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("botones.eliminar_adjunto", [], "crud");
echo "\"></i></a>
</span>
";
}
// line 266
echo " <input type=\"hidden\" id=\"oldfile_form_";
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.', 266, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 266, $this->source); })()), "html", null, true);
echo "\" value=\"clear\" name=\"oldfile[";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 266, $this->source); })()), "vars", [], "any", false, false, false, 266), "name", [], "any", false, false, false, 266), "html", null, true);
echo "]\">
</div>
";
// line 268
if ( !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 268), "attr", [], "any", false, true, false, 268), "readonly", [], "any", true, true, false, 268)) {
echo "
<div id=\"file_";
// line 269
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.', 269, $this->source); })()), "html", null, true);
echo "_form_";
echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 269, $this->source); })()), "html", null, true);
echo "\" class=\"hide ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 269), "required", [], "any", true, true, false, 269) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 269, $this->source); })()), "vars", [], "any", false, false, false, 269), "required", [], "any", false, false, false, 269))) {
echo "required";
}
echo "\">
";
// line 270
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 270, $this->source); })()), 'widget');
echo "
</div>
";
}
// line 273
echo " ";
} else {
// line 274
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 274), "attr", [], "any", false, true, false, 274), "class", [], "any", true, true, false, 274) && $this->extensions['App\Crud\Twig\twigExtension']->isSubStringFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 274, $this->source); })()), "vars", [], "any", false, false, false, 274), "attr", [], "any", false, false, false, 274), "class", [], "any", false, false, false, 274), "geometria_punto"))) {
// line 275
echo " <a class=\"botonmapaPunto noti btn-minier\" title=\"Definir Ubicación en Mapa\" itemid=\"form_";
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.', 275, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 275, $this->source); })()), "html", null, true);
echo "\" geom=\"punto\" href=\"#\">
<i class=\"ace-icon fa fa-globe bigger-220 blue\"></i>
</a>
<span id=\"textoGeometriaPunto\"></span>
";
// line 279
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 279, $this->source); })()), 'widget');
echo "
";
} else {
// line 281
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 281), "attr", [], "any", false, true, false, 281), "class", [], "any", true, true, false, 281) && $this->extensions['App\Crud\Twig\twigExtension']->isSubStringFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 281, $this->source); })()), "vars", [], "any", false, false, false, 281), "attr", [], "any", false, false, false, 281), "class", [], "any", false, false, false, 281), "geometria_poligono"))) {
// line 282
echo " <a class=\"botonmapa noti btn-minier\" title=\"Definir Ubicación en Mapa\" itemid=\"form_";
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.', 282, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 282, $this->source); })()), "html", null, true);
echo "\" geom=\"poligono\" href=\"#\">
<i class=\"fas fa-globe bigger-220 blue\"></i>
</a>
<span id=\"textoGeometriaPoligono\"></span>
";
// line 286
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 286, $this->source); })()), 'widget');
echo "
";
} else {
// line 288
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 288), "attr", [], "any", false, true, false, 288), "class", [], "any", true, true, false, 288) && $this->extensions['App\Crud\Twig\twigExtension']->isSubStringFunction(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 288, $this->source); })()), "vars", [], "any", false, false, false, 288), "attr", [], "any", false, false, false, 288), "class", [], "any", false, false, false, 288), "ace-switch"))) {
// line 289
echo " <div style=\"text-align: center\">
<label class=\"block\" style='margin-bottom: 0! important'>
";
// line 291
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 291, $this->source); })()), 'widget');
echo "
<span class=\"lbl\" data-lbl=\"";
// line 292
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("choice_value.yes", [], "crud")), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("choice_value.no", [], "crud")), "html", null, true);
echo "\"></span>
</label>
</div>
";
} else {
// line 296
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["widget"] ?? null), "vars", [], "any", false, true, false, 296), "attr", [], "any", false, true, false, 296), "readonly", [], "any", true, true, false, 296)) {
// line 297
echo " <span id=\"span_";
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.', 297, $this->source); })()), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, (isset($context["key"]) || array_key_exists("key", $context) ? $context["key"] : (function () { throw new RuntimeError('Variable "key" does not exist.', 297, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["entity"]) || array_key_exists("entity", $context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.', 297, $this->source); })()), "getFieldValue", [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 297, $this->source); })()), "vars", [], "any", false, false, false, 297), "name", [], "any", false, false, false, 297), 1 => true], "method", false, false, false, 297), "html", null, true);
echo "</span>
";
} else {
// line 299
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 299, $this->source); })()), 'widget');
echo "
";
}
// line 301
echo " ";
}
// line 302
echo " ";
}
// line 303
echo " ";
}
// line 304
echo " ";
}
// line 305
echo " </td>
</tr>
</table>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 312
public function block_rowclose($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", "rowclose"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "rowclose"));
// line 313
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 324
public function block_form_post_rows($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_post_rows"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "form_post_rows"));
// line 325
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 332
public function block_post_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", "post_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "post_form"));
// line 333
echo " <input type=\"hidden\" id=\"relaciontarget-";
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.', 333, $this->source); })()), "html", null, true);
echo "\">
<input type=\"hidden\" id=\"relacionnombre-";
// line 334
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.', 334, $this->source); })()), "html", null, true);
echo "\">
<div id=\"dialog-mapa-";
// line 335
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.', 335, $this->source); })()), "html", null, true);
echo "\" title=\"Definir Ubicación en Mapa\"></div>
<div id=\"dialog-relacion-";
// line 336
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.', 336, $this->source); })()), "html", null, true);
echo "\" title=\"Definir elemento\"></div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 339
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 340
echo " <div class=\"row\">
<div class=\"col-xs-12\">
<div class=\"hr hr-8 hr-dotted\"></div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 347
public function block_end_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", "end_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "end_form"));
// line 348
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.', 348, $this->source); })()), 'form_end');
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@crud\\crud\\formulario.html.twig";
}
public function getDebugInfo()
{
return array ( 1284 => 348, 1274 => 347, 1259 => 340, 1249 => 339, 1237 => 336, 1233 => 335, 1229 => 334, 1224 => 333, 1214 => 332, 1204 => 325, 1194 => 324, 1183 => 313, 1173 => 312, 1159 => 305, 1156 => 304, 1153 => 303, 1150 => 302, 1147 => 301, 1141 => 299, 1131 => 297, 1128 => 296, 1119 => 292, 1115 => 291, 1111 => 289, 1108 => 288, 1103 => 286, 1093 => 282, 1090 => 281, 1085 => 279, 1075 => 275, 1072 => 274, 1069 => 273, 1063 => 270, 1053 => 269, 1049 => 268, 1039 => 266, 1025 => 263, 1019 => 261, 1011 => 259, 1005 => 257, 1003 => 256, 996 => 255, 994 => 254, 990 => 252, 984 => 249, 971 => 248, 969 => 247, 964 => 245, 949 => 244, 946 => 243, 943 => 242, 940 => 241, 938 => 240, 934 => 239, 925 => 236, 922 => 235, 919 => 234, 916 => 233, 913 => 232, 910 => 231, 907 => 230, 904 => 229, 901 => 228, 898 => 227, 895 => 226, 885 => 225, 874 => 211, 864 => 210, 854 => 174, 844 => 173, 831 => 328, 827 => 326, 825 => 324, 822 => 323, 818 => 321, 815 => 320, 801 => 319, 798 => 318, 795 => 317, 792 => 316, 789 => 315, 786 => 312, 783 => 311, 780 => 310, 777 => 225, 775 => 215, 772 => 214, 769 => 213, 766 => 210, 763 => 209, 760 => 208, 757 => 207, 754 => 206, 749 => 203, 746 => 202, 743 => 201, 740 => 200, 737 => 199, 719 => 198, 712 => 185, 706 => 184, 696 => 182, 693 => 181, 682 => 179, 677 => 178, 674 => 177, 670 => 176, 667 => 175, 664 => 173, 661 => 172, 658 => 171, 655 => 170, 645 => 169, 635 => 167, 625 => 166, 615 => 164, 605 => 163, 595 => 157, 585 => 156, 574 => 350, 572 => 347, 569 => 346, 567 => 339, 564 => 338, 562 => 332, 559 => 331, 557 => 169, 554 => 168, 552 => 166, 549 => 165, 547 => 163, 544 => 162, 541 => 161, 538 => 160, 536 => 159, 533 => 158, 531 => 156, 528 => 155, 518 => 154, 508 => 148, 498 => 147, 488 => 18, 478 => 17, 465 => 149, 463 => 147, 458 => 144, 452 => 143, 449 => 142, 445 => 140, 442 => 139, 438 => 137, 435 => 136, 432 => 135, 429 => 134, 420 => 132, 411 => 131, 408 => 130, 397 => 126, 384 => 121, 381 => 120, 372 => 118, 359 => 113, 356 => 112, 344 => 107, 338 => 106, 325 => 105, 322 => 104, 312 => 98, 306 => 96, 303 => 95, 297 => 93, 295 => 92, 285 => 89, 277 => 88, 271 => 87, 258 => 86, 255 => 85, 243 => 83, 234 => 82, 231 => 81, 228 => 80, 225 => 79, 222 => 78, 219 => 77, 216 => 76, 213 => 75, 210 => 74, 207 => 73, 204 => 72, 197 => 68, 191 => 67, 187 => 66, 181 => 65, 176 => 63, 168 => 59, 165 => 58, 155 => 56, 152 => 55, 149 => 54, 145 => 53, 136 => 47, 128 => 42, 103 => 19, 101 => 17, 84 => 2, 74 => 1, 64 => 154, 61 => 153, 59 => 1,);
}
public function getSourceContext()
{
return new Source("{% block formulario_jquery %}
<script type=\"text/javascript\">
function mostrarTextoGeometria(geometria)
{
cadenaRetorno = '';
if (geometria.length)
{
cadena = geometria.replace('POINT(','');
cadena = cadena.replace(')','');
punto = cadena.split(' ');
cadenaRetorno = 'Lat:'+ parseFloat(punto[1]).toFixed(2) + ' Lon:'+ parseFloat(punto[0]).toFixed(2);
}
return cadenaRetorno;
}
{% block formulario_customs_functions %}
{% endblock formulario_customs_functions %}
\$(function(){
\t\t
\$('.just_numbers').keypress(function(e){
if (e.which<48 || e.which>57 )
e.preventDefault();
});
\$('.just_floats').keypress(function(e){
if (e.which === 46) //el punto
{
//buscar si ya hay un punto
var val = \$(this).val();
if (val.indexOf('.')>=0)
{
e.preventDefault();
}
}
else
if (e.which<48 || e.which>57 )
e.preventDefault();
});
\t\t
\$(\"#crud_form_{{ routeClassName }}\").find(\".form-control\").each(function () {
var idK=\$(this).attr('id');
if (idK)
{
var idW = idK.replace('form','');
idW = 'form_{{ routeClassName}}'+ idW;
\$(this).attr('id',idW);
\$(this).removeClass('form-control');
}
});
{% for key,widget in form %}
{% if key != '_token' %}
{% if widget.vars.attr.readonly is defined %}
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').addClass('hide');
{% endif %}
{% if widget.vars.attr.dependiente_parent is defined %}
\$('#form_{{ widget.vars.attr.dependiente_parent }}').change(function(){
var selected = \$(this).val();
if (selected==\"\") selected=\"-1\";
// var baseSite = document.getElementById('baseSite').value;
var url = '{{ path('crudDependiente', {'rol': 'all', 'className': widget.vars.attr.dependiente_class, 'fieldName': widget.vars.attr.dependiente_field, 'value': '__VALUE__'}) }}';
url = url.replace('__VALUE__',selected);
// var url = baseSite+\"dependientes/{{ widget.vars.attr.dependiente_class }}/{{ widget.vars.attr.dependiente_field }}/\"+selected;
\$('#{{ key }}').mask(' ');
\$('#form_{{ routeClassName }}_{{ key }}').load(url, function(){
\$('#{{ key }}').unmask();
});
});
{% endif %}
{% if widget.vars.attr.class is defined %}
{% if isSubString(widget.vars.attr.class,'spinbox-input') %}
{% set min = \"\" %}
{% if widget.vars.attr.min is defined %}
{% set min = \"min: \"~widget.vars.attr.min~\", \" %}
{% endif %}
{% set max = \"\" %}
{% if widget.vars.attr.max is defined %}
{% set max = \"max: \"~widget.vars.attr.max~\", \" %}
{% endif %}
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').attr('type','text');
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').ace_spinner({ {{ min }}{{ max }} step: 1, on_sides: true, icon_up: 'fas fa-plus', icon_down: 'fas fa-minus ', btn_up_class: 'btn-grey', btn_down_class: 'btn-grey', full_width: true});
{% else %}
{% if isSubString(widget.vars.attr.class,'campo_fecha') %}
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').wrap('<div class=\"input-group\" id=\"campo_fecha_{{ routeClassName }}_{{ key}}\" />');
\$('#campo_fecha_{{ routeClassName }}_{{ key}}').append('<span class=\"input-group-addon\"><i class=\"fas fa-calendar bigger-110\"></i></span>');
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').attr('type','text');
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').datepicker({
autoclose: true,
todayHighlight: true,
{% if widget.vars.attr.startDate is defined %}
startDate: '{{ widget.vars.attr.startDate }}',
{% endif %}
{% if widget.vars.attr.endDate is defined %}
endDate: '{{ widget.vars.attr.endDate }}',
{% endif %}
language: '{{ app.request.locale }}'
})
.next().on(ace.click_event, function(){
\$(this).prev().focus();
});
{% else %}
{% if isSubString(widget.vars.attr.class,'campo_hora_fecha') %}
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').wrap('<div class=\"input-group\" id=\"campo_fecha_{{ routeClassName }}_{{ key}}\" />');
\$('#campo_fecha_{{ routeClassName }}_{{ key}}').append('<span class=\"input-group-addon\"><i class=\"fas fa-calendar bigger-110\"></i></span>');
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').datetimepicker()
.next().on(ace.click_event, function(){
\$(this).prev().focus();
});
{% else %}
{% if isSubString(widget.vars.attr.class,'geometria_punto') %}
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').change(function(){
geometria = \$(this).val();
valor = mostrarTextoGeometria(geometria);
\$('#textoGeometriaPunto').html(valor);
});
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').trigger('change');
{% else %}
{% if isSubString(widget.vars.attr.class,'geometria_poligono') %}
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').change(function(){
\$('#textoGeometriaPoligono').html('Pol�gono definido');
});
if(\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').val())
\$('#textoGeometriaPoligono').html('Pol�gono definido');
{% else %}
{% if isSubString(widget.vars.attr.class,'dolar') %}
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').wrap('<div class=\"input-group\"/>');
\$('#crud_form_{{ routeClassName }}').find('#form_{{ routeClassName }}_{{ key}}').parent().prepend(\"<span class='input-group-addon'>\$</span>\");
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
\t\t
{% block formulario_customs_jquery %}
{% endblock formulario_customs_jquery %}
});
</script>
{% endblock %}
{% block formulario_content %}
{% block secondary_heading %}
{% endblock %}
{% if not btnSave is defined %}
{% set btnSave='btn_do_and_list' %}
{% endif %}
{% block pre_form %}
{% endblock %}
{% block form_action %}
{% endblock %}
{% block form %}
{% set rowopen=false %}
{% set maxcol=formColumns %}
{% set col=0 %}
{% block form_pre_rows %}
{% endblock form_pre_rows %}
{% for param, value in paramsRequest %}
{% if value is iterable %}
{% for val in value %}
<input name=\"{{ param }}\" type='hidden' value='{{ val }}'>
{% endfor %}
{% else %}
<input id=\"{{ param }}\" name=\"{{ param }}\" type='hidden' value='{{ value }}'>
{% endif %}
{% endfor %}
<input id='form_accion_{{ routeClassName }}' type='hidden' value='{{ accion }}'>
{#% for key,widget in form %}
{% for k,el in widget.vars if k != 'is_selected'%}
{% if k=='attr' or k=='form' or k=='block_prefixes' or k=='errors' or k=='label_attr' or k=='preferred_choices' or k=='choices' %}
{% for k1,el1 in widget.vars.attr %}
{{ k }}=>{{ k1 }}=>{{ el1 }}<br>
{% endfor %}
{% else %}
{{ k }}=>{{ el }}<br>
{% endif %}
{% endfor %}
{% endfor %#}
{% for key,widget in form %}
{% if notShow[key] is not defined %}
{% if widget.vars.attr['containerclass'] is defined %}
{% if isSubString(widget.vars.attr['containerclass'],'full-row') %}
{% if rowopen %}
</div>
<div class=\"row\">
{% endif %}
{% set col=maxcol-1 %}
{% endif %}
{% endif %}
{% if not rowopen %}
{% block rowopen %}
<div class=\"row\">
{% endblock rowopen %}
{% set rowopen=true %}
{% endif %}
{#% for k,el in widget.vars if k != 'is_selected'%}
{% if k=='attr' or k=='form' or k=='block_prefixes' or k=='errors' or k=='label_attr' or k=='preferred_choices' or k=='choices' %}
{% for k1,el1 in widget.vars.attr %}
{{ k }}=>{{ k1 }}=>{{ el1 }}<br>
{% endfor %}
{% else %}
{{ k }}=>{{ el }}<br>
{% endif %}
{% endfor %#}
{% block draw_widget %}
{% set col_class='col-xs-12' %}
{% if widget.vars.attr['containerclass'] is not defined or not isSubString(widget.vars.attr['containerclass'],'full-row') %}
{% if maxcol>1 %}
{% set col_class=col_class~' col-sm-6' %}
{% endif %}
{% set col_class=col_class~' col-md-'~12/maxcol %}
{% endif %}
{% if widget.vars.attr['containerclass'] is defined %}
{% set col_class=col_class~' '~widget.vars.attr['containerclass'] %}
{% endif %}
<div id=\"{{key}}\" class=\"{{ col_class }}\">
<table class=\"table table-striped table-bordered table-hover\">
<tr>
<th style=\"width: {{ widthLabel }}; vertical-align: middle\">
{% set required = '' %}
{% if widget.vars.required %}
{% set required = 'required' %}
{% endif %}
<label class=\"crud_label {{required}}\" id=\"label_form_{{ routeClassName }}_{{ key }}\" {% if widget.vars.attr.tip is defined %}data-rel=\"tooltip\" data-trigger=\"hover\" data-placement=\"top\" data-content=\"More details.\" title=\"{{ widget.vars.attr.tip }}\" style=\"cursor: help\"{% endif %}>
{{widget.vars.label}}
</label>
{% if widget.vars.attr.relation is defined %}
<label onclick=\"javascript:creaNuevoRelacion('{{ routeClassName }}','form_{{ routeClassName }}_{{ key }}'); return false;\" class=\"relacion\" data-rel=\"tooltip\" data-trigger=\"hover\" data-placement=\"top\" data-content=\"More details.\" title=\"Si no encuentra en la lista la información que necesita, pinche aquí para adicionarla\" style=\"cursor: pointer\" itemid=\"form_{{ routeClassName }}_{{ key }}\">
<i class=\"icon fas fa-plus-square green\" itemid=\"{{ widget.vars.id }}\"></i>
</label>
{% endif %}
</th>
<td style=\"vertical-align: middle\" class=\"crud_td\">
{% if widget.vars.type is defined and widget.vars.type=='file' and entity.getFieldValue(widget.vars.name)%}
<div id=\"hidefile_{{ routeClassName }}_{{ widget.vars.id }}\">
{% if widget.vars.attr.accept is defined and isSubString(widget.vars.attr.accept,'image') %}
<img src=\"{{ absolute_url(entity.getFieldValue(widget.vars.name).getUrl()) }}\" width='80px'>
{% else %}
<a target=\"_blank\" href=\"{{ absolute_url(entity.getFieldValue(widget.vars.name).getUrl()) }}\">{{entity.getFieldValue(widget.vars.name).getFileName() }}</a>
{% endif %}
{% if widget.vars.attr.readonly is not defined %}
<span class=\"action-buttons\">
<a class=\"hide_item_{{ routeClassName }}\" id=\"hide_form_{{ routeClassName }}_{{ key }}\" item_id=\"form_{{ key }}\" href=\"\"><i class=\"fas fa-trash red bigger-130\" title=\"{% trans from 'crud' %}botones.eliminar_adjunto{% endtrans %}\"></i></a>
</span>
{% endif %}
<input type=\"hidden\" id=\"oldfile_form_{{ routeClassName }}_{{ key }}\" value=\"clear\" name=\"oldfile[{{ widget.vars.name }}]\">
</div>
{% if widget.vars.attr.readonly is not defined %}
<div id=\"file_{{ routeClassName }}_form_{{ key }}\" class=\"hide {% if widget.vars.required is defined and widget.vars.required %}required{% endif %}\">
{{ form_widget(widget) }}
</div>
{% endif %}
{% else %}
{% if widget.vars.attr.class is defined and isSubString(widget.vars.attr.class,'geometria_punto') %}
<a class=\"botonmapaPunto noti btn-minier\" title=\"Definir Ubicación en Mapa\" itemid=\"form_{{ routeClassName }}_{{ key }}\" geom=\"punto\" href=\"#\">
<i class=\"ace-icon fa fa-globe bigger-220 blue\"></i>
</a>
<span id=\"textoGeometriaPunto\"></span>
{{ form_widget(widget) }}
{% else %}
{% if widget.vars.attr.class is defined and isSubString(widget.vars.attr.class,'geometria_poligono') %}
<a class=\"botonmapa noti btn-minier\" title=\"Definir Ubicación en Mapa\" itemid=\"form_{{ routeClassName }}_{{ key }}\" geom=\"poligono\" href=\"#\">
<i class=\"fas fa-globe bigger-220 blue\"></i>
</a>
<span id=\"textoGeometriaPoligono\"></span>
{{ form_widget(widget) }}
{% else %}
{% if widget.vars.attr.class is defined and isSubString(widget.vars.attr.class,'ace-switch') %}
<div style=\"text-align: center\">
<label class=\"block\" style='margin-bottom: 0! important'>
{{ form_widget(widget) }}
<span class=\"lbl\" data-lbl=\"{{ 'choice_value.yes' | trans({}, 'crud') | upper}} {{ 'choice_value.no' | trans({}, 'crud') | upper}}\"></span>
</label>
</div>
{% else %}
{% if widget.vars.attr.readonly is defined %}
<span id=\"span_{{ routeClassName }}_{{ key }}\">{{ entity.getFieldValue(widget.vars.name, true) }}</span>
{% else %}
{{ form_widget(widget) }}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</td>
</tr>
</table>
</div>
{% endblock draw_widget %}
{% set col = col + 1 %}
{% if col == maxcol %}
{% block rowclose %}
</div>
{% endblock rowclose %}
{% set rowopen=false %}
{% set col=0 %}
{% endif %}
{%endif%}
{% endfor %}
{% if rowopen %}
</div>
{% endif %}
{% block form_post_rows %}
{% endblock form_post_rows %}
<div class=\"row hide\">
<table>{{ form_rest(form) }}</table>
</div>
{% endblock %}
{% block post_form %}
<input type=\"hidden\" id=\"relaciontarget-{{ routeClassName }}\">
<input type=\"hidden\" id=\"relacionnombre-{{ routeClassName }}\">
<div id=\"dialog-mapa-{{ routeClassName }}\" title=\"Definir Ubicación en Mapa\"></div>
<div id=\"dialog-relacion-{{ routeClassName }}\" title=\"Definir elemento\"></div>
{% endblock %}
{% block botones_form %}
<div class=\"row\">
<div class=\"col-xs-12\">
<div class=\"hr hr-8 hr-dotted\"></div>
</div>
</div>
{% endblock %}
{% block end_form %}
{{ form_end(form) }}
{% endblock %}
{% endblock formulario_content %}
", "@crud\\crud\\formulario.html.twig", "/data/produccion/integral/src/Crud/templates/crud/formulario.html.twig");
}
}