<?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;
/* @SonataTranslation/standard_layout.html.twig */
class __TwigTemplate_bbba53f6514477e0d4d13278f359361b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'html_attributes' => [$this, 'block_html_attributes'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'admin_lte_skin_class' => [$this, 'block_admin_lte_skin_class'],
'body_attributes' => [$this, 'block_body_attributes'],
'sonata_page_content_nav' => [$this, 'block_sonata_page_content_nav'],
'tab_menu_navbar_header' => [$this, 'block_tab_menu_navbar_header'],
'sonata_admin_content_actions_wrappers' => [$this, 'block_sonata_admin_content_actions_wrappers'],
'navbar_actions_filters_prometeo_left' => [$this, 'block_navbar_actions_filters_prometeo_left'],
'navbar_actions_filters_prometeo_right' => [$this, 'block_navbar_actions_filters_prometeo_right'],
'sonata_wrapper' => [$this, 'block_sonata_wrapper'],
'side_bar_after_nav_content' => [$this, 'block_side_bar_after_nav_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@!SonataTranslation/standard_layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SonataTranslation/standard_layout.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SonataTranslation/standard_layout.html.twig"));
// line 5
$context["adminCode"] = "";
// line 6
if (array_key_exists("admin", $context)) {
// line 7
$context["adminCode"] = $this->extensions['App\Twig\PregreplaceExtension']->pregreplace(twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 7, $this->source); })()), "getCode", [], "any", false, false, false, 7), "/(.*)\\./", "");
// line 8
$context["cssRoute"] = (("assets/admin/css/" . (isset($context["adminCode"]) || array_key_exists("adminCode", $context) ? $context["adminCode"] : (function () { throw new RuntimeError('Variable "adminCode" does not exist.', 8, $this->source); })())) . "/specific.css");
// line 9
$context["jsRoute"] = (("assets/admin/js/" . (isset($context["adminCode"]) || array_key_exists("adminCode", $context) ? $context["adminCode"] : (function () { throw new RuntimeError('Variable "adminCode" does not exist.', 9, $this->source); })())) . "/specific.js");
}
// line 1
$this->parent = $this->loadTemplate("@!SonataTranslation/standard_layout.html.twig", "@SonataTranslation/standard_layout.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_html_attributes($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", "html_attributes"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "html_attributes"));
$this->displayParentBlock("html_attributes", $context, $blocks);
echo " lang=\"";
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.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "locale", [], "any", false, false, false, 3), "html", null, true);
echo "\" ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 12
public function block_stylesheets($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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 13
echo " <link rel=\"icon\" type=\"image/x-icon\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/favicon.png"), "html", null, true);
echo "\">
";
// line 15
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
// line 18
echo " <style>
.sonata-readmore {
display: -webkit-box !important;
-webkit-line-clamp: 1 !important;
-webkit-box-orient: vertical !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
cursor: help !important;
word-wrap: break-word !important;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
<link rel=\"stylesheet\" href=\"";
// line 35
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/css/list-action-toolbar-prometeo.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/css/modal-nav-prometeo.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/css/nav-filter-prometeo.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/css/nav-prometeo.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/css/model-list-type.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/css/more-info.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/css/table-card.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/plugins/bootstrap-dialog/css/bootstrap-dialog.min.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css\">
<link rel=\"stylesheet\" href=\"";
// line 44
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/plugins/fontawesome-610/css/all.min.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/plugins/webfonts/uicons-solid-rounded.css"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 46
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/plugins/codemirror/lib/codemirror.css"), "html", null, true);
echo "\">
";
// line 49
if ((array_key_exists("admin", $context) && array_key_exists("cssRoute", $context))) {
// line 50
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["cssRoute"]) || array_key_exists("cssRoute", $context) ? $context["cssRoute"] : (function () { throw new RuntimeError('Variable "cssRoute" does not exist.', 50, $this->source); })())), "html", null, true);
echo "\">
";
}
// line 52
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 55
public function block_javascripts($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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 56
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 58
$this->loadTemplate("JS/translations_js.html.twig", "@SonataTranslation/standard_layout.html.twig", 58)->display($context);
// line 59
echo " ";
$this->loadTemplate("JS/env_js.html.twig", "@SonataTranslation/standard_layout.html.twig", 59)->display($context);
// line 60
echo " ";
$this->loadTemplate("JS/routes_js.html.twig", "@SonataTranslation/standard_layout.html.twig", 60)->display($context);
// line 61
echo "
<script src=\"";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/plugins/bootstrap-dialog/js/bootstrap-dialog.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 64
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/plugins/codemirror/lib/codemirror.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 65
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/plugins/codemirror/lib/mode/javascript/javascript.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/plugins/codemirror/lib/mode/twig/twig.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 68
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/plugins/autonumeric/autonumeric.min.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 69
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/plugins/autonumeric/autonumeric.functions.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/js/jquery.functions.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 71
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/js/table-to-card.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 72
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/js/nav-prometeo.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/nav-prometeo-perseo.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 74
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/js/pre-load-image.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 75
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/js/pre-load-file.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 76
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/js/modal-view-image-original.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 77
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/js/modal-view-file-original.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 78
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/js/vichuploader-delete.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 79
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/js/combos-anidados.js"), "html", null, true);
echo "\"></script>
<script src=\"";
// line 80
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/prometeo/js/slider.js"), "html", null, true);
echo "\"></script>
<script src=\"//code.jquery.com/ui/1.12.1/jquery-ui.js\"></script>
<script src=\"";
// line 83
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/perseo.js"), "html", null, true);
echo "\"></script>
";
// line 85
if ((array_key_exists("admin", $context) && array_key_exists("jsRoute", $context))) {
// line 86
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["jsRoute"]) || array_key_exists("jsRoute", $context) ? $context["jsRoute"] : (function () { throw new RuntimeError('Variable "jsRoute" does not exist.', 86, $this->source); })())), "html", null, true);
echo "\"></script>
";
}
// line 88
echo "
<script type=\"text/javascript\">
\$(function(){
\$(\"form\").on(\"submit\", function()
{
\$(\"form\").find(\"input.numeric\").getNumericValues();
});
\$(\"input.percents\").setPercent();
\$(\"input.numerics\").setNumeric();
\$(\"input.currencies\").setCurrency();
\$(\"input.grams\").setGram();
\$(\".codemirror-twig\").each(function(index, value)
{
CodeMirror.fromTextArea(value, {
lineWrapping: true,
fixedGutter: false,
foldGutter: true,
mode: \"twig\",
theme: \"darcula\",
lineNumbers: true,
gutters: [\"CodeMirror-linenumbers\", \"CodeMirror-foldgutter\"]
});
});
";
// line 115
echo " ";
// line 116
echo " ";
// line 117
echo " ";
// line 118
echo " ";
// line 119
echo " ";
// line 120
echo " ";
// line 121
echo " ";
// line 122
echo "
";
// line 124
echo " ";
// line 125
echo " ";
// line 126
echo " ";
// line 127
echo " ";
// line 128
echo " ";
// line 129
echo " ";
// line 130
echo " ";
// line 131
echo " ";
// line 132
echo "
";
// line 134
echo " });
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 138
public function block_admin_lte_skin_class($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", "admin_lte_skin_class"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "admin_lte_skin_class"));
// line 139
echo " ";
$this->displayParentBlock("admin_lte_skin_class", $context, $blocks);
echo "
";
// line 140
echo twig_escape_filter($this->env, (isset($context["adminCode"]) || array_key_exists("adminCode", $context) ? $context["adminCode"] : (function () { throw new RuntimeError('Variable "adminCode" does not exist.', 140, $this->source); })()), "html", null, true);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 143
public function block_body_attributes($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", "body_attributes"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_attributes"));
// line 144
echo " ";
$this->displayParentBlock("body_attributes", $context, $blocks);
echo "
";
// line 145
if (array_key_exists("admin", $context)) {
echo "id=\"";
echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 145, $this->source); })()), "code", [], "any", false, false, false, 145), ["." => "_"]), "html", null, true);
echo "\"";
}
// line 146
echo " ";
if (array_key_exists("admin", $context)) {
echo "data-code=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 146, $this->source); })()), "code", [], "any", false, false, false, 146), "html", null, true);
echo "\"";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 150
public function block_sonata_page_content_nav($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", "sonata_page_content_nav"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_page_content_nav"));
// line 151
echo " ";
if ((((( !twig_test_empty((isset($context["_navbar_title"]) || array_key_exists("_navbar_title", $context) ? $context["_navbar_title"] : (function () { throw new RuntimeError('Variable "_navbar_title" does not exist.', 151, $this->source); })())) || !twig_test_empty( // line 152
(isset($context["_tab_menu"]) || array_key_exists("_tab_menu", $context) ? $context["_tab_menu"] : (function () { throw new RuntimeError('Variable "_tab_menu" does not exist.', 152, $this->source); })()))) || !twig_test_empty( // line 153
(isset($context["_actions"]) || array_key_exists("_actions", $context) ? $context["_actions"] : (function () { throw new RuntimeError('Variable "_actions" does not exist.', 153, $this->source); })()))) || !twig_test_empty( // line 154
(isset($context["_list_filters_actions"]) || array_key_exists("_list_filters_actions", $context) ? $context["_list_filters_actions"] : (function () { throw new RuntimeError('Variable "_list_filters_actions" does not exist.', 154, $this->source); })()))) || ((( // line 155
array_key_exists("admin", $context) && twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 155, $this->source); })()), "hasRoute", ["export"], "method", false, false, false, 155)) && twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 155, $this->source); })()), "hasAccess", ["export"], "method", false, false, false, 155)) && twig_length_filter($this->env, ((array_key_exists("export_formats", $context)) ? (_twig_default_filter((isset($context["export_formats"]) || array_key_exists("export_formats", $context) ? $context["export_formats"] : (function () { throw new RuntimeError('Variable "export_formats" does not exist.', 155, $this->source); })()), twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 155, $this->source); })()), "exportFormats", [], "any", false, false, false, 155))) : (twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 155, $this->source); })()), "exportFormats", [], "any", false, false, false, 155))))))) {
// line 157
echo " <div class=\"content-header__title\">
";
// line 158
if ( !twig_test_empty((isset($context["_tab_menu"]) || array_key_exists("_tab_menu", $context) ? $context["_tab_menu"] : (function () { throw new RuntimeError('Variable "_tab_menu" does not exist.', 158, $this->source); })()))) {
// line 159
echo " <div class=\"navbar-left\">
";
// line 160
echo (isset($context["_tab_menu"]) || array_key_exists("_tab_menu", $context) ? $context["_tab_menu"] : (function () { throw new RuntimeError('Variable "_tab_menu" does not exist.', 160, $this->source); })());
echo "
</div>
";
}
// line 163
echo " </div>
<nav id=\"navbar-prometeo\" class=\"navbar navbar-default ";
// line 165
if (((isset($context["action"]) || array_key_exists("action", $context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.', 165, $this->source); })()) == "list")) {
echo " action-list ";
}
echo "\" role=\"navigation\">
<div class=\"container-fluid\">
";
// line 167
$this->displayBlock('tab_menu_navbar_header', $context, $blocks);
// line 172
echo "
<div class=\"navbar-collapse\">
";
// line 179
echo "
";
// line 187
echo "
";
// line 188
$this->displayBlock('sonata_admin_content_actions_wrappers', $context, $blocks);
// line 230
echo "
";
// line 234
echo " </div>
</div>
</nav>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 167
public function block_tab_menu_navbar_header($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", "tab_menu_navbar_header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tab_menu_navbar_header"));
// line 168
echo " ";
if ( !twig_test_empty((isset($context["_navbar_title"]) || array_key_exists("_navbar_title", $context) ? $context["_navbar_title"] : (function () { throw new RuntimeError('Variable "_navbar_title" does not exist.', 168, $this->source); })()))) {
// line 169
echo " <div class=\"navbar-header\"></div>
";
}
// line 171
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 188
public function block_sonata_admin_content_actions_wrappers($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", "sonata_admin_content_actions_wrappers"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_admin_content_actions_wrappers"));
// line 203
echo " ";
if (((isset($context["action"]) || array_key_exists("action", $context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.', 203, $this->source); })()) == "list")) {
// line 204
echo " <form ";
echo ">
";
}
// line 206
echo "
<ul class=\"nav navbar-nav navbar-left\">
";
// line 208
$this->displayBlock('navbar_actions_filters_prometeo_left', $context, $blocks);
// line 215
echo " </ul>
<ul class=\"nav navbar-nav navbar-right\">
";
// line 217
$this->displayBlock('navbar_actions_filters_prometeo_right', $context, $blocks);
// line 224
echo " </ul>
";
// line 226
if (((isset($context["action"]) || array_key_exists("action", $context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.', 226, $this->source); })()) == "list")) {
// line 227
echo " </form>
";
}
// line 229
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 208
public function block_navbar_actions_filters_prometeo_left($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", "navbar_actions_filters_prometeo_left"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_actions_filters_prometeo_left"));
// line 209
echo " ";
if (((isset($context["action"]) || array_key_exists("action", $context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.', 209, $this->source); })()) == "list")) {
// line 210
echo " ";
$this->loadTemplate("navbar_actions_filters_prometeo_left_list.html.twig", "@SonataTranslation/standard_layout.html.twig", 210)->display($context);
// line 211
echo " ";
} else {
// line 212
echo " ";
$this->loadTemplate("navbar_actions_filters_prometeo_left_edit.html.twig", "@SonataTranslation/standard_layout.html.twig", 212)->display($context);
// line 213
echo " ";
}
// line 214
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 217
public function block_navbar_actions_filters_prometeo_right($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", "navbar_actions_filters_prometeo_right"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_actions_filters_prometeo_right"));
// line 218
echo " ";
if (((isset($context["action"]) || array_key_exists("action", $context) ? $context["action"] : (function () { throw new RuntimeError('Variable "action" does not exist.', 218, $this->source); })()) == "list")) {
// line 219
echo " ";
$this->loadTemplate("navbar_actions_filters_prometeo_right_list.html.twig", "@SonataTranslation/standard_layout.html.twig", 219)->display($context);
// line 220
echo " ";
} else {
// line 221
echo " ";
$this->loadTemplate("navbar_actions_filters_prometeo_right_edit.html.twig", "@SonataTranslation/standard_layout.html.twig", 221)->display($context);
// line 222
echo " ";
}
// line 223
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 240
public function block_sonata_wrapper($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", "sonata_wrapper"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_wrapper"));
// line 241
echo " <div id=\"loading-spinner\" style=\"display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); z-index:9999;\">
<div style=\"border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; width:50px; height:50px; animation:spin 1s linear infinite;\"></div>
</div>
";
// line 245
$this->displayParentBlock("sonata_wrapper", $context, $blocks);
echo "
<script type=\"text/javascript\">
loadNavPrometeo(\$(\"body\"));
// Deshabilitar readmore completamente
if (window.Admin && window.Admin.setup_readmore_elements) {
window.Admin.setup_readmore_elements = function() {
// No hacer nada - readmore deshabilitado
};
}
// Spinner de carga
\$('#loading-spinner').css('display', 'flex');
\$(window).on('load', function() {
\$('#loading-spinner').fadeOut();
});
// Aplicar popover a elementos con clase sonata-readmore
\$(document).ready(function() {
\$('.sonata-readmore').each(function() {
var \$el = \$(this);
var fullText = \$el.text();
// Añadir popover con Bootstrap (el CSS ya está aplicado)
\$el.popover({
trigger: 'hover',
placement: 'top',
container: 'body',
html: true,
content: '<div style=\"max-width: 400px; max-height: 300px; overflow-y: auto; white-space: pre-wrap;\">' + fullText + '</div>'
});
});
});
// \$parent = \$(\"body\");
// if (\$parent.find(\".filter-to-navbar-left\").html() !== undefined) {
// if (\$parent.find(\"#action-create\").length === 1) {
// \$parent.find('#action-create').after('<li id=\"filter-search\">' + \$parent.find('.filter-to-navbar-left').html() + '</li>');
// } else {
// if(\$parent.find(\"nav.navbar form > ul.navbar-left\").length) {
// \$parent.find(\"nav.navbar form > ul.navbar-left\").prepend('<li id=\"filter-search\" class=\"filter-search-margin-left\">' + \$parent.find('.filter-to-navbar-left').html() + '</li>');
// }
// else
// {
// \$parent.find(\"#modal-navbar-prometeo form > ul.navbar-left\").prepend('<li id=\"filter-search\" class=\"filter-search-margin-left\">' + \$parent.find('.filter-to-navbar-left').html() + '</li>');
// }
// }
// }
//
// \$parent.find('#filter-search > div.filter-field-busqueda').append('<span class=\"fa fa-search pull-right\"></span>');
// \$parent.find('.filter-to-navbar-left').remove();
//
// \$parent.find('.filter-to-navbar-right').each(function (index, value) {
// // Destruimos lo Select2
// var \$select = \$(value).find('select');
// \$select.each(function (i, item) {
// \$(item).select2('destroy');
// });
//
// \$parent.find('#action-export').before('<li id=\"' + \$(value).data('id') + '\" data-order=\"' + \$(value).data('order') + '\">' + \$(value).html() + '</li>');
// \$(value).remove();
// });
//
// \$parent.find('#action-export').attr('data-order', 999998);
// \$parent.find('#show-filters').attr('data-order', 999999).find('span').removeClass('fa-caret-down').addClass('fa-chevron-down');
//
// \$parent.find('nav ul.navbar-right').each(function () {
// \$(this).html(\$(this).children('li').sort(function (a, b) {
// return (\$(b).data('order')) < (\$(a).data('order')) ? 1 : -1;
// }));
// });
//
// \$parent.find('.content-header__filters-container .prometeo-filters').each(function () {
// \$(this).html(\$(this).find('.filter').sort(function (a, b) {
// return (\$(b).data('order')) < (\$(a).data('order')) ? 1 : -1;
// }));
// });
//
// // Creamos los Select2
// \$select = \$parent.find(\"nav ul.navbar-right select\");
// \$select.each(function (i, item) {
// \$(item).select2();
// });
//
// var \$select = \$parent.find(\".content-header__filters-container .prometeo-filters select\");
// \$select.each(function (i, item) {
// \$(item).select2(\"destroy\");
// });
//
// \$select = \$parent.find(\".content-header__filters-container .prometeo-filters select\");
// \$select.each(function (i, item) {
// \$(item).select2();
// });
//
// if (\$parent.find(\".prometeo-filters .filter:not(.no-filter-visible)\").length === 1) {
// \$parent.find(\"#show-filters > a\").attr(\"title\", \"No hay Filtros\");
// \$parent.find(\"#show-filters\").addClass(\"opacity5\");
// \$parent.find(\".content-header__filters-container\").addClass(\"hide\");
// }
//
// if (\$parent.find('.prometeo-filters .filter:not(.no-filter-visible)').length > 1) {
// \$parent.find('#show-filters').on('click', function () {
// if (\$parent.find('.prometeo-filters .filter').length > 0) {
// if (\$(this).hasClass('open')) {
// \$(this).removeClass('open');
// \$parent.find('.sonata-filters-box').hide();
// \$parent.find('.sonata-filters-box .prometeo-filters div').hide();
// } else {
// \$(this).addClass('open');
// \$parent.find('.sonata-filters-box').show();
// \$parent.find('.sonata-filters-box .prometeo-filters div').show();
// }
// }
// });
// }
//
// \$(\".sonata-filters-box\").hide();
// \$parent.find(\".prometeo-filters .filter:not(.button-filter-submit)\").each(function(index, value)
// {
// if(\$(value).css(\"display\") !== \"none\")
// {
// \$(\".sonata-filters-box\").show();
// return false;
// }
// });
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 373
public function block_side_bar_after_nav_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", "side_bar_after_nav_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "side_bar_after_nav_content"));
// line 374
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\"><img id=\"icon-menu-user\" class=\"icon-menu\" title=\"Logout\">";
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.', 374, $this->source); })()), "user", [], "any", false, false, false, 374), "username", [], "any", false, false, false, 374), "html", null, true);
echo "</a>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@SonataTranslation/standard_layout.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 843 => 374, 833 => 373, 696 => 245, 690 => 241, 680 => 240, 670 => 223, 667 => 222, 664 => 221, 661 => 220, 658 => 219, 655 => 218, 645 => 217, 635 => 214, 632 => 213, 629 => 212, 626 => 211, 623 => 210, 620 => 209, 610 => 208, 600 => 229, 596 => 227, 594 => 226, 590 => 224, 588 => 217, 584 => 215, 582 => 208, 578 => 206, 573 => 204, 570 => 203, 560 => 188, 550 => 171, 546 => 169, 543 => 168, 533 => 167, 519 => 234, 516 => 230, 514 => 188, 511 => 187, 508 => 179, 504 => 172, 502 => 167, 495 => 165, 491 => 163, 485 => 160, 482 => 159, 480 => 158, 477 => 157, 475 => 155, 474 => 154, 473 => 153, 472 => 152, 470 => 151, 460 => 150, 445 => 146, 439 => 145, 434 => 144, 424 => 143, 412 => 140, 407 => 139, 397 => 138, 385 => 134, 382 => 132, 380 => 131, 378 => 130, 376 => 129, 374 => 128, 372 => 127, 370 => 126, 368 => 125, 366 => 124, 363 => 122, 361 => 121, 359 => 120, 357 => 119, 355 => 118, 353 => 117, 351 => 116, 349 => 115, 321 => 88, 315 => 86, 313 => 85, 308 => 83, 302 => 80, 298 => 79, 294 => 78, 290 => 77, 286 => 76, 282 => 75, 278 => 74, 274 => 73, 270 => 72, 266 => 71, 262 => 70, 258 => 69, 254 => 68, 249 => 66, 245 => 65, 241 => 64, 236 => 62, 233 => 61, 230 => 60, 227 => 59, 225 => 58, 219 => 56, 209 => 55, 198 => 52, 192 => 50, 190 => 49, 184 => 46, 180 => 45, 176 => 44, 171 => 42, 167 => 41, 163 => 40, 159 => 39, 155 => 38, 151 => 37, 147 => 36, 143 => 35, 124 => 18, 119 => 15, 113 => 13, 103 => 12, 81 => 3, 70 => 1, 67 => 9, 65 => 8, 63 => 7, 61 => 6, 59 => 5, 46 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@!SonataTranslation/standard_layout.html.twig' %}
{% block html_attributes %}{{ parent() }} lang=\"{{ app.request.locale }}\" {% endblock %}
{% set adminCode = '' %}
{% if admin is defined %}
{% set adminCode = admin.getCode | pregreplace('/(.*)\\\\./', '') %}
{% set cssRoute = 'assets/admin/css/' ~ adminCode ~ '/specific.css' %}
{% set jsRoute = 'assets/admin/js/' ~ adminCode ~ '/specific.js' %}
{% endif %}
{% block stylesheets %}
<link rel=\"icon\" type=\"image/x-icon\" href=\"{{ asset('assets/img/favicon.png') }}\">
{{ parent() }}
{# CSS para readmore con elipsis - solo primera línea #}
<style>
.sonata-readmore {
display: -webkit-box !important;
-webkit-line-clamp: 1 !important;
-webkit-box-orient: vertical !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
cursor: help !important;
word-wrap: break-word !important;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
<link rel=\"stylesheet\" href=\"{{ asset('assets/prometeo/css/list-action-toolbar-prometeo.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/prometeo/css/modal-nav-prometeo.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/prometeo/css/nav-filter-prometeo.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/prometeo/css/nav-prometeo.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/prometeo/css/model-list-type.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/prometeo/css/more-info.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/prometeo/css/table-card.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/plugins/bootstrap-dialog/css/bootstrap-dialog.min.css') }}\">
<link rel=\"stylesheet\" href=\"//code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/plugins/fontawesome-610/css/all.min.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/plugins/webfonts/uicons-solid-rounded.css') }}\">
<link rel=\"stylesheet\" href=\"{{ asset('assets/plugins/codemirror/lib/codemirror.css') }}\">
{% if admin is defined and cssRoute is defined %}
<link rel=\"stylesheet\" href=\"{{ asset(cssRoute) }}\">
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% include 'JS/translations_js.html.twig' %}
{% include 'JS/env_js.html.twig' %}
{% include 'JS/routes_js.html.twig' %}
<script src=\"{{ asset(\"assets/plugins/bootstrap-dialog/js/bootstrap-dialog.min.js\") }}\"></script>
<script src=\"{{ asset(\"assets/plugins/codemirror/lib/codemirror.js\") }}\"></script>
<script src=\"{{ asset(\"assets/plugins/codemirror/lib/mode/javascript/javascript.js\") }}\"></script>
<script src=\"{{ asset(\"assets/plugins/codemirror/lib/mode/twig/twig.js\") }}\"></script>
<script src=\"{{ asset('assets/plugins/autonumeric/autonumeric.min.js') }}\"></script>
<script src=\"{{ asset('assets/plugins/autonumeric/autonumeric.functions.js') }}\"></script>
<script src=\"{{ asset(\"assets/prometeo/js/jquery.functions.js\") }}\"></script>
<script src=\"{{ asset(\"assets/prometeo/js/table-to-card.js\") }}\"></script>
<script src=\"{{ asset(\"assets/prometeo/js/nav-prometeo.js\") }}\"></script>
<script src=\"{{ asset(\"assets/js/nav-prometeo-perseo.js\") }}\"></script>
<script src=\"{{ asset(\"assets/prometeo/js/pre-load-image.js\") }}\"></script>
<script src=\"{{ asset(\"assets/prometeo/js/pre-load-file.js\") }}\"></script>
<script src=\"{{ asset(\"assets/prometeo/js/modal-view-image-original.js\") }}\"></script>
<script src=\"{{ asset(\"assets/prometeo/js/modal-view-file-original.js\") }}\"></script>
<script src=\"{{ asset(\"assets/prometeo/js/vichuploader-delete.js\") }}\"></script>
<script src=\"{{ asset(\"assets/prometeo/js/combos-anidados.js\") }}\"></script>
<script src=\"{{ asset(\"assets/prometeo/js/slider.js\") }}\"></script>
<script src=\"//code.jquery.com/ui/1.12.1/jquery-ui.js\"></script>
<script src=\"{{ asset(\"assets/js/perseo.js\") }}\"></script>
{% if admin is defined and jsRoute is defined %}
<script src=\"{{ asset(jsRoute) }}\"></script>
{% endif %}
<script type=\"text/javascript\">
\$(function(){
\$(\"form\").on(\"submit\", function()
{
\$(\"form\").find(\"input.numeric\").getNumericValues();
});
\$(\"input.percents\").setPercent();
\$(\"input.numerics\").setNumeric();
\$(\"input.currencies\").setCurrency();
\$(\"input.grams\").setGram();
\$(\".codemirror-twig\").each(function(index, value)
{
CodeMirror.fromTextArea(value, {
lineWrapping: true,
fixedGutter: false,
foldGutter: true,
mode: \"twig\",
theme: \"darcula\",
lineNumbers: true,
gutters: [\"CodeMirror-linenumbers\", \"CodeMirror-foldgutter\"]
});
});
{#setInterval(function ()#}
{#{#}
{# {% if object is defined %}#}
{# let id = \"{{ object.id }}\";#}
{# let action = id ? \"edit\":\"create\";#}
{# let username = \"{{ app.user.username }}\";#}
{# let admin = \"{{ app.request.attributes.get('_sonata_admin') }}\";#}
{# let data = \$(\"section.content form\").serialize();#}
{# // reescribir parte de error, para que no muestre nada.#}
{# AjaxUtils.ajaxCall(\"{{ path('app_api_autosaveapi_autosave') }}\", {#}
{# user: username,#}
{# admin: admin,#}
{# action: action,#}
{# id: id,#}
{# data: data#}
{# }, null, \"POST\");#}
{# {% endif %}#}
{#}, {{ autoSaveTime }});#}
});
</script>
{% endblock %}
{% block admin_lte_skin_class %}
{{ parent() }}
{{ adminCode }}
{% endblock %}
{% block body_attributes %}
{{ parent() }}
{% if admin is defined %}id=\"{{ admin.code|replace({'.':'_' }) }}\"{% endif %}
{% if admin is defined %}data-code=\"{{ admin.code }}\"{% endif %}
{% endblock %}
{% block sonata_page_content_nav %}
{% if _navbar_title is not empty
or _tab_menu is not empty
or _actions is not empty
or _list_filters_actions is not empty
or (admin is defined and admin.hasRoute('export') and admin.hasAccess('export') and export_formats|default(admin.exportFormats) | length)
%}
<div class=\"content-header__title\">
{% if _tab_menu is not empty %}
<div class=\"navbar-left\">
{{ _tab_menu|raw }}
</div>
{% endif %}
</div>
<nav id=\"navbar-prometeo\" class=\"navbar navbar-default {% if action == 'list' %} action-list {% endif %}\" role=\"navigation\">
<div class=\"container-fluid\">
{% block tab_menu_navbar_header %}
{% if _navbar_title is not empty %}
<div class=\"navbar-header\"></div>
{% endif %}
{% endblock %}
<div class=\"navbar-collapse\">
{# {% if _tab_menu is not empty %}#}
{# <div class=\"navbar-left\">#}
{# {{ _tab_menu|raw }}#}
{# </div>#}
{# {% endif %}#}
{# {% if admin is defined and action is defined and action == 'list' and admin.listModes|length > 1 %}#}
{# <div class=\"nav navbar-right btn-group\">#}
{# {% for mode, settings in admin.listModes %}#}
{# <a href=\"{{ admin.generateUrl('list', app.request.query.all|merge({_list_mode: mode})) }}\" class=\"btn btn-default navbar-btn btn-sm{% if admin.getListMode() == mode %} active{% endif %}\"><i class=\"{{ settings.class }}\"></i></a>#}
{# {% endfor %}#}
{# </div>#}
{# {% endif %}#}
{% block sonata_admin_content_actions_wrappers %}
{# {% if _actions|replace({ '<li>': '', '</li>': '' })|trim is not empty %}#}
{# <ul class=\"nav navbar-nav navbar-right\">#}
{# {% if _actions|split('</a>')|length > 2 %}#}
{# <li class=\"dropdown sonata-actions\">#}
{# <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">{{ 'link_actions'|trans({}, 'SonataAdminBundle') }} <b class=\"caret\"></b></a>#}
{# <ul class=\"dropdown-menu\" role=\"menu\">#}
{# {{ _actions|raw }}#}
{# </ul>#}
{# </li>#}
{# {% else %}#}
{# {{ _actions|raw }}#}
{# {% endif %}#}
{# </ul>#}
{# {% endif %}#}
{% if action == 'list' %}
<form {# action=\"{{ app.request.pathinfo }}\" method=\"GET\" #}>
{% endif %}
<ul class=\"nav navbar-nav navbar-left\">
{% block navbar_actions_filters_prometeo_left %}
{% if action == 'list' %}
{% include 'navbar_actions_filters_prometeo_left_list.html.twig' %}
{% else %}
{% include 'navbar_actions_filters_prometeo_left_edit.html.twig' %}
{% endif %}
{% endblock navbar_actions_filters_prometeo_left %}
</ul>
<ul class=\"nav navbar-nav navbar-right\">
{% block navbar_actions_filters_prometeo_right %}
{% if action == 'list' %}
{% include 'navbar_actions_filters_prometeo_right_list.html.twig' %}
{% else %}
{% include 'navbar_actions_filters_prometeo_right_edit.html.twig' %}
{% endif %}
{% endblock navbar_actions_filters_prometeo_right %}
</ul>
{% if action == 'list' %}
</form>
{% endif %}
{% endblock sonata_admin_content_actions_wrappers %}
{# {% if _list_filters_actions is not empty %}#}
{# {{ _list_filters_actions|raw }}#}
{# {% endif %}#}
</div>
</div>
</nav>
{% endif %}
{% endblock sonata_page_content_nav %}
{% block sonata_wrapper %}
<div id=\"loading-spinner\" style=\"display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); z-index:9999;\">
<div style=\"border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; width:50px; height:50px; animation:spin 1s linear infinite;\"></div>
</div>
{{ parent() }}
<script type=\"text/javascript\">
loadNavPrometeo(\$(\"body\"));
// Deshabilitar readmore completamente
if (window.Admin && window.Admin.setup_readmore_elements) {
window.Admin.setup_readmore_elements = function() {
// No hacer nada - readmore deshabilitado
};
}
// Spinner de carga
\$('#loading-spinner').css('display', 'flex');
\$(window).on('load', function() {
\$('#loading-spinner').fadeOut();
});
// Aplicar popover a elementos con clase sonata-readmore
\$(document).ready(function() {
\$('.sonata-readmore').each(function() {
var \$el = \$(this);
var fullText = \$el.text();
// Añadir popover con Bootstrap (el CSS ya está aplicado)
\$el.popover({
trigger: 'hover',
placement: 'top',
container: 'body',
html: true,
content: '<div style=\"max-width: 400px; max-height: 300px; overflow-y: auto; white-space: pre-wrap;\">' + fullText + '</div>'
});
});
});
// \$parent = \$(\"body\");
// if (\$parent.find(\".filter-to-navbar-left\").html() !== undefined) {
// if (\$parent.find(\"#action-create\").length === 1) {
// \$parent.find('#action-create').after('<li id=\"filter-search\">' + \$parent.find('.filter-to-navbar-left').html() + '</li>');
// } else {
// if(\$parent.find(\"nav.navbar form > ul.navbar-left\").length) {
// \$parent.find(\"nav.navbar form > ul.navbar-left\").prepend('<li id=\"filter-search\" class=\"filter-search-margin-left\">' + \$parent.find('.filter-to-navbar-left').html() + '</li>');
// }
// else
// {
// \$parent.find(\"#modal-navbar-prometeo form > ul.navbar-left\").prepend('<li id=\"filter-search\" class=\"filter-search-margin-left\">' + \$parent.find('.filter-to-navbar-left').html() + '</li>');
// }
// }
// }
//
// \$parent.find('#filter-search > div.filter-field-busqueda').append('<span class=\"fa fa-search pull-right\"></span>');
// \$parent.find('.filter-to-navbar-left').remove();
//
// \$parent.find('.filter-to-navbar-right').each(function (index, value) {
// // Destruimos lo Select2
// var \$select = \$(value).find('select');
// \$select.each(function (i, item) {
// \$(item).select2('destroy');
// });
//
// \$parent.find('#action-export').before('<li id=\"' + \$(value).data('id') + '\" data-order=\"' + \$(value).data('order') + '\">' + \$(value).html() + '</li>');
// \$(value).remove();
// });
//
// \$parent.find('#action-export').attr('data-order', 999998);
// \$parent.find('#show-filters').attr('data-order', 999999).find('span').removeClass('fa-caret-down').addClass('fa-chevron-down');
//
// \$parent.find('nav ul.navbar-right').each(function () {
// \$(this).html(\$(this).children('li').sort(function (a, b) {
// return (\$(b).data('order')) < (\$(a).data('order')) ? 1 : -1;
// }));
// });
//
// \$parent.find('.content-header__filters-container .prometeo-filters').each(function () {
// \$(this).html(\$(this).find('.filter').sort(function (a, b) {
// return (\$(b).data('order')) < (\$(a).data('order')) ? 1 : -1;
// }));
// });
//
// // Creamos los Select2
// \$select = \$parent.find(\"nav ul.navbar-right select\");
// \$select.each(function (i, item) {
// \$(item).select2();
// });
//
// var \$select = \$parent.find(\".content-header__filters-container .prometeo-filters select\");
// \$select.each(function (i, item) {
// \$(item).select2(\"destroy\");
// });
//
// \$select = \$parent.find(\".content-header__filters-container .prometeo-filters select\");
// \$select.each(function (i, item) {
// \$(item).select2();
// });
//
// if (\$parent.find(\".prometeo-filters .filter:not(.no-filter-visible)\").length === 1) {
// \$parent.find(\"#show-filters > a\").attr(\"title\", \"No hay Filtros\");
// \$parent.find(\"#show-filters\").addClass(\"opacity5\");
// \$parent.find(\".content-header__filters-container\").addClass(\"hide\");
// }
//
// if (\$parent.find('.prometeo-filters .filter:not(.no-filter-visible)').length > 1) {
// \$parent.find('#show-filters').on('click', function () {
// if (\$parent.find('.prometeo-filters .filter').length > 0) {
// if (\$(this).hasClass('open')) {
// \$(this).removeClass('open');
// \$parent.find('.sonata-filters-box').hide();
// \$parent.find('.sonata-filters-box .prometeo-filters div').hide();
// } else {
// \$(this).addClass('open');
// \$parent.find('.sonata-filters-box').show();
// \$parent.find('.sonata-filters-box .prometeo-filters div').show();
// }
// }
// });
// }
//
// \$(\".sonata-filters-box\").hide();
// \$parent.find(\".prometeo-filters .filter:not(.button-filter-submit)\").each(function(index, value)
// {
// if(\$(value).css(\"display\") !== \"none\")
// {
// \$(\".sonata-filters-box\").show();
// return false;
// }
// });
</script>
{% endblock sonata_wrapper %}
{% block side_bar_after_nav_content %}
<a href=\"{{ path('app_logout') }}\"><img id=\"icon-menu-user\" class=\"icon-menu\" title=\"Logout\">{{ app.user.username }}</a>
{% endblock %}
", "@SonataTranslation/standard_layout.html.twig", "/var/www/vhosts/perseo.comerziawatches.com/httpdocs/perseo/httpdocs/templates/bundles/SonataTranslationBundle/standard_layout.html.twig");
}
}