<?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;
/* @SonataAdmin/CRUD/base_edit_form.html.twig */
class __TwigTemplate_95e1b7a27e5e7eeb5f109e7487b23872 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'form' => [$this, 'block_form'],
'sonata_form_action_url' => [$this, 'block_sonata_form_action_url'],
'sonata_form_attributes' => [$this, 'block_sonata_form_attributes'],
'sonata_pre_fieldsets' => [$this, 'block_sonata_pre_fieldsets'],
'sonata_tab_content' => [$this, 'block_sonata_tab_content'],
'sonata_post_fieldsets' => [$this, 'block_sonata_post_fieldsets'],
'formactions' => [$this, 'block_formactions'],
'sonata_form_actions' => [$this, 'block_sonata_form_actions'],
'btn_delete' => [$this, 'block_btn_delete'],
'btn_create' => [$this, 'block_btn_create'],
'btn_preview' => [$this, 'block_btn_preview'],
'btn_update_and_edit' => [$this, 'block_btn_update_and_edit'],
'btn_update_and_list' => [$this, 'block_btn_update_and_list'],
'btn_acl' => [$this, 'block_btn_acl'],
'btn_create_and_edit' => [$this, 'block_btn_create_and_edit'],
'btn_create_and_list' => [$this, 'block_btn_create_and_list'],
'btn_create_and_create' => [$this, 'block_btn_create_and_create'],
];
}
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", "@SonataAdmin/CRUD/base_edit_form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SonataAdmin/CRUD/base_edit_form.html.twig"));
// line 1
$this->displayBlock('form', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
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 2
echo " ";
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sonata.admin.edit.form.top", ["admin" => (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 2, $this->source); })()), "object" => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 2, $this->source); })())]);
echo "
";
// line 4
$context["url"] = (( !(null === (isset($context["objectId"]) || array_key_exists("objectId", $context) ? $context["objectId"] : (function () { throw new RuntimeError('Variable "objectId" does not exist.', 4, $this->source); })()))) ? ("edit") : ("create"));
// line 5
echo "
";
// line 6
if ( !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.', 6, $this->source); })()), "hasRoute", [(isset($context["url"]) || array_key_exists("url", $context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.', 6, $this->source); })())], "method", false, false, false, 6)) {
// line 7
echo " <div>
";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("form_not_available", [], "SonataAdminBundle"), "html", null, true);
echo "
</div>
";
} else {
// line 11
echo " <form
";
// line 12
if ((twig_get_attribute($this->env, $this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config", $context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.', 12, $this->source); })()), "getOption", ["form_type"], "method", false, false, false, 12) == "horizontal")) {
echo "class=\"form-horizontal\"";
}
// line 13
echo " role=\"form\"
action=\"";
// line 14
$this->displayBlock('sonata_form_action_url', $context, $blocks);
echo "\"
";
// line 15
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 15, $this->source); })()), "vars", [], "any", false, false, false, 15), "multipart", [], "any", false, false, false, 15)) {
echo " enctype=\"multipart/form-data\"";
}
// line 16
echo " method=\"POST\"
";
// line 17
if ( !twig_get_attribute($this->env, $this->source, (isset($context["sonata_config"]) || array_key_exists("sonata_config", $context) ? $context["sonata_config"] : (function () { throw new RuntimeError('Variable "sonata_config" does not exist.', 17, $this->source); })()), "getOption", ["html5_validate"], "method", false, false, false, 17)) {
echo "novalidate=\"novalidate\"";
}
// line 18
echo " ";
$this->displayBlock('sonata_form_attributes', $context, $blocks);
// line 19
echo " >
";
// line 21
echo twig_include($this->env, $context, "@SonataAdmin/Helper/render_form_dismissable_errors.html.twig");
echo "
";
// line 23
$this->displayBlock('sonata_pre_fieldsets', $context, $blocks);
// line 26
echo "
";
// line 27
$this->displayBlock('sonata_tab_content', $context, $blocks);
// line 82
echo "
";
// line 83
$this->displayBlock('sonata_post_fieldsets', $context, $blocks);
// line 86
echo "
";
// line 87
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.', 87, $this->source); })()), 'rest');
echo "
";
// line 89
$this->displayBlock('formactions', $context, $blocks);
// line 156
echo " </form>
";
}
// line 158
echo "
";
// line 159
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sonata.admin.edit.form.bottom", ["admin" => (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 159, $this->source); })()), "object" => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 159, $this->source); })())]);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 14
public function block_sonata_form_action_url($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_form_action_url"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_form_action_url"));
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.', 14, $this->source); })()), "generateUrl", [(isset($context["url"]) || array_key_exists("url", $context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.', 14, $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.', 14, $this->source); })()), "idParameter", [], "any", false, false, false, 14) => (isset($context["objectId"]) || array_key_exists("objectId", $context) ? $context["objectId"] : (function () { throw new RuntimeError('Variable "objectId" does not exist.', 14, $this->source); })()), "uniqid" => 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.', 14, $this->source); })()), "uniqid", [], "any", false, false, false, 14), "subclass" => 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.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "get", ["subclass"], "method", false, false, false, 14)]], "method", false, false, false, 14), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 18
public function block_sonata_form_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", "sonata_form_attributes"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_form_attributes"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 23
public function block_sonata_pre_fieldsets($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_pre_fieldsets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_pre_fieldsets"));
// line 24
echo " <div class=\"row\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 27
public function block_sonata_tab_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", "sonata_tab_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_tab_content"));
// line 28
echo " ";
$macros["form_helper"] = $this->loadTemplate("@SonataAdmin/CRUD/base_edit_form_macro.html.twig", "@SonataAdmin/CRUD/base_edit_form.html.twig", 28)->unwrap();
// line 29
echo " ";
$context["formtabs"] = 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.', 29, $this->source); })()), "getformtabs", [], "method", false, false, false, 29);
// line 30
echo " ";
$context["has_tab"] = (((twig_length_filter($this->env, (isset($context["formtabs"]) || array_key_exists("formtabs", $context) ? $context["formtabs"] : (function () { throw new RuntimeError('Variable "formtabs" does not exist.', 30, $this->source); })())) == 1) && (twig_get_attribute($this->env, $this->source, twig_get_array_keys_filter((isset($context["formtabs"]) || array_key_exists("formtabs", $context) ? $context["formtabs"] : (function () { throw new RuntimeError('Variable "formtabs" does not exist.', 30, $this->source); })())), 0, [], "array", false, false, false, 30) != "default")) || (twig_length_filter($this->env, (isset($context["formtabs"]) || array_key_exists("formtabs", $context) ? $context["formtabs"] : (function () { throw new RuntimeError('Variable "formtabs" does not exist.', 30, $this->source); })())) > 1));
// line 31
echo "
<div class=\"col-md-12\">
";
// line 33
if ((isset($context["has_tab"]) || array_key_exists("has_tab", $context) ? $context["has_tab"] : (function () { throw new RuntimeError('Variable "has_tab" does not exist.', 33, $this->source); })())) {
// line 34
echo " ";
$context["tab_prefix"] = ((("tab_" . 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.', 34, $this->source); })()), "uniqid", [], "any", false, false, false, 34)) . "_") . twig_random($this->env));
// line 35
echo " ";
$context["tab_query_index"] = twig_last($this->env, twig_split_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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 35, $this->source); })()), "request", [], "any", false, false, false, 35), "query", [], "any", false, false, false, 35), "get", ["_tab", 0], "method", false, false, false, 35), "_"));
// line 36
echo " <div class=\"nav-tabs-custom\">
<ul class=\"nav nav-tabs\" role=\"tablist\">
";
// line 38
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["formtabs"]) || array_key_exists("formtabs", $context) ? $context["formtabs"] : (function () { throw new RuntimeError('Variable "formtabs" does not exist.', 38, $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["name"] => $context["form_tab"]) {
// line 39
echo " ";
$context["_tab_name"] = (((isset($context["tab_prefix"]) || array_key_exists("tab_prefix", $context) ? $context["tab_prefix"] : (function () { throw new RuntimeError('Variable "tab_prefix" does not exist.', 39, $this->source); })()) . "_") . twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 39));
// line 40
echo " <li";
if ((( !twig_get_attribute($this->env, $this->source, 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.', 40, $this->source); })()), "request", [], "any", false, false, false, 40), "query", [], "any", false, false, false, 40), "has", ["_tab"], "method", false, false, false, 40) && (twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 40) == 1)) || ((isset($context["tab_query_index"]) || array_key_exists("tab_query_index", $context) ? $context["tab_query_index"] : (function () { throw new RuntimeError('Variable "tab_query_index" does not exist.', 40, $this->source); })()) == twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 40)))) {
echo " class=\"active\"";
}
echo ">
<a href=\"#";
// line 41
echo twig_escape_filter($this->env, (isset($context["_tab_name"]) || array_key_exists("_tab_name", $context) ? $context["_tab_name"] : (function () { throw new RuntimeError('Variable "_tab_name" does not exist.', 41, $this->source); })()), "html", null, true);
echo "\" class=\"changer-tab\" aria-controls=\"";
echo twig_escape_filter($this->env, (isset($context["_tab_name"]) || array_key_exists("_tab_name", $context) ? $context["_tab_name"] : (function () { throw new RuntimeError('Variable "_tab_name" does not exist.', 41, $this->source); })()), "html", null, true);
echo "\" data-toggle=\"tab\">
<i class=\"fas fa-exclamation-circle has-errors hide\" aria-hidden=\"true\"></i>
";
// line 43
if ((twig_get_attribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", true, true, false, 43) && (twig_get_attribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", false, false, false, 43) === false))) {
// line 44
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["form_tab"], "label", [], "any", false, false, false, 44), "html", null, true);
echo "
";
} else {
// line 46
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["form_tab"], "label", [], "any", false, false, false, 46), [], (((twig_get_attribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", true, true, false, 46) && !(null === twig_get_attribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", false, false, false, 46)))) ? (twig_get_attribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", false, false, false, 46)) : (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.', 46, $this->source); })()), "translationDomain", [], "any", false, false, false, 46)))), "html", null, true);
echo "
";
}
// line 48
echo " </a>
</li>
";
++$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['name'], $context['form_tab'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 51
echo " </ul>
<div class=\"tab-content\">
";
// line 53
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["formtabs"]) || array_key_exists("formtabs", $context) ? $context["formtabs"] : (function () { throw new RuntimeError('Variable "formtabs" does not exist.', 53, $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["code"] => $context["form_tab"]) {
// line 54
echo " ";
$context["_tab_name"] = (((isset($context["tab_prefix"]) || array_key_exists("tab_prefix", $context) ? $context["tab_prefix"] : (function () { throw new RuntimeError('Variable "tab_prefix" does not exist.', 54, $this->source); })()) . "_") . twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 54));
// line 55
echo " <div
class=\"tab-pane fade";
// line 56
if ((( !twig_get_attribute($this->env, $this->source, 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.', 56, $this->source); })()), "request", [], "any", false, false, false, 56), "query", [], "any", false, false, false, 56), "has", ["_tab"], "method", false, false, false, 56) && twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 56)) || ((isset($context["tab_query_index"]) || array_key_exists("tab_query_index", $context) ? $context["tab_query_index"] : (function () { throw new RuntimeError('Variable "tab_query_index" does not exist.', 56, $this->source); })()) == twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 56)))) {
echo " in active";
}
echo "\"
id=\"";
// line 57
echo twig_escape_filter($this->env, (isset($context["_tab_name"]) || array_key_exists("_tab_name", $context) ? $context["_tab_name"] : (function () { throw new RuntimeError('Variable "_tab_name" does not exist.', 57, $this->source); })()), "html", null, true);
echo "\"
>
<div class=\"box-body container-fluid\">
<div class=\"sonata-ba-collapsed-fields\">
";
// line 61
if ((twig_get_attribute($this->env, $this->source, $context["form_tab"], "description", [], "any", false, false, false, 61) != false)) {
// line 62
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", true, true, false, 62) && (twig_get_attribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", false, false, false, 62) === false))) {
// line 63
echo " <p>";
echo twig_get_attribute($this->env, $this->source, $context["form_tab"], "description", [], "any", false, false, false, 63);
echo "</p>
";
} else {
// line 65
echo " <p>";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, $context["form_tab"], "description", [], "any", false, false, false, 65), [], (((twig_get_attribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", true, true, false, 65) && !(null === twig_get_attribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", false, false, false, 65)))) ? (twig_get_attribute($this->env, $this->source, $context["form_tab"], "translation_domain", [], "any", false, false, false, 65)) : (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.', 65, $this->source); })()), "translationDomain", [], "any", false, false, false, 65))));
echo "</p>
";
}
// line 67
echo " ";
}
// line 68
echo "
";
// line 69
echo twig_call_macro($macros["form_helper"], "macro_render_groups", [(isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 69, $this->source); })()), (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 69, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["form_tab"], "groups", [], "array", false, false, false, 69), (isset($context["has_tab"]) || array_key_exists("has_tab", $context) ? $context["has_tab"] : (function () { throw new RuntimeError('Variable "has_tab" does not exist.', 69, $this->source); })())], 69, $context, $this->getSourceContext());
echo "
</div>
</div>
</div>
";
++$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['code'], $context['form_tab'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 74
echo " </div>
<input type=\"hidden\" name=\"_tab\" value=\"";
// line 75
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["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 75, $this->source); })()), "request", [], "any", false, false, false, 75), "query", [], "any", false, false, false, 75), "get", ["_tab"], "method", false, false, false, 75), "html", null, true);
echo "\">
</div>
";
} elseif (twig_get_attribute($this->env, $this->source, // line 77
($context["formtabs"] ?? null), "default", [], "array", true, true, false, 77)) {
// line 78
echo " ";
echo twig_call_macro($macros["form_helper"], "macro_render_groups", [(isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 78, $this->source); })()), (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 78, $this->source); })()), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["formtabs"]) || array_key_exists("formtabs", $context) ? $context["formtabs"] : (function () { throw new RuntimeError('Variable "formtabs" does not exist.', 78, $this->source); })()), "default", [], "array", false, false, false, 78), "groups", [], "any", false, false, false, 78), (isset($context["has_tab"]) || array_key_exists("has_tab", $context) ? $context["has_tab"] : (function () { throw new RuntimeError('Variable "has_tab" does not exist.', 78, $this->source); })())], 78, $context, $this->getSourceContext());
echo "
";
}
// line 80
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 83
public function block_sonata_post_fieldsets($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_post_fieldsets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_post_fieldsets"));
// line 84
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 89
public function block_formactions($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", "formactions"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "formactions"));
// line 90
echo " <div class=\"sonata-ba-form-actions well well-small form-actions\">
";
// line 91
$this->displayBlock('sonata_form_actions', $context, $blocks);
// line 154
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 91
public function block_sonata_form_actions($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_form_actions"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_form_actions"));
// line 92
echo " ";
if (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.', 92, $this->source); })()), "request", [], "any", false, false, false, 92), "isxmlhttprequest", [], "any", false, false, false, 92)) {
// line 93
echo " ";
if ( !(null === (isset($context["objectId"]) || array_key_exists("objectId", $context) ? $context["objectId"] : (function () { throw new RuntimeError('Variable "objectId" does not exist.', 93, $this->source); })()))) {
// line 94
echo " <button type=\"submit\" class=\"btn btn-success\" name=\"btn_update\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_update", [], "SonataAdminBundle"), "html", null, true);
echo "</button>
";
// line 95
if ((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.', 95, $this->source); })()), "hasRoute", ["delete"], "method", false, false, false, 95) && 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.', 95, $this->source); })()), "hasAccess", ["delete", (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 95, $this->source); })())], "method", false, false, false, 95))) {
// line 96
echo " ";
$this->displayBlock('btn_delete', $context, $blocks);
// line 102
echo " ";
}
// line 103
echo " ";
} else {
// line 104
echo " ";
$this->displayBlock('btn_create', $context, $blocks);
// line 107
echo " ";
}
// line 108
echo " ";
} else {
// line 109
echo " ";
if (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.', 109, $this->source); })()), "supportsPreviewMode", [], "any", false, false, false, 109)) {
// line 110
echo " ";
$this->displayBlock('btn_preview', $context, $blocks);
// line 116
echo " ";
}
// line 117
echo " ";
if ( !(null === (isset($context["objectId"]) || array_key_exists("objectId", $context) ? $context["objectId"] : (function () { throw new RuntimeError('Variable "objectId" does not exist.', 117, $this->source); })()))) {
// line 118
echo " ";
$this->displayBlock('btn_update_and_edit', $context, $blocks);
// line 121
echo "
";
// line 122
if ((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.', 122, $this->source); })()), "hasRoute", ["list"], "method", false, false, false, 122) && 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.', 122, $this->source); })()), "hasAccess", ["list"], "method", false, false, false, 122))) {
// line 123
echo " ";
$this->displayBlock('btn_update_and_list', $context, $blocks);
// line 126
echo " ";
}
// line 127
echo "
";
// line 128
if ((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.', 128, $this->source); })()), "hasRoute", ["delete"], "method", false, false, false, 128) && 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.', 128, $this->source); })()), "hasAccess", ["delete", (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 128, $this->source); })())], "method", false, false, false, 128))) {
// line 129
echo " ";
$this->displayBlock("btn_delete", $context, $blocks);
echo "
";
}
// line 131
echo "
";
// line 132
if (((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.', 132, $this->source); })()), "isAclEnabled", [], "method", false, false, false, 132) && 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.', 132, $this->source); })()), "hasRoute", ["acl"], "method", false, false, false, 132)) && 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.', 132, $this->source); })()), "hasAccess", ["acl", (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 132, $this->source); })())], "method", false, false, false, 132))) {
// line 133
echo " ";
$this->displayBlock('btn_acl', $context, $blocks);
// line 136
echo " ";
}
// line 137
echo " ";
} else {
// line 138
echo " ";
if ((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.', 138, $this->source); })()), "hasroute", ["edit"], "method", false, false, false, 138) && 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.', 138, $this->source); })()), "hasAccess", ["edit"], "method", false, false, false, 138))) {
// line 139
echo " ";
$this->displayBlock('btn_create_and_edit', $context, $blocks);
// line 142
echo " ";
}
// line 143
echo " ";
if ((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.', 143, $this->source); })()), "hasroute", ["list"], "method", false, false, false, 143) && 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.', 143, $this->source); })()), "hasAccess", ["list"], "method", false, false, false, 143))) {
// line 144
echo " ";
$this->displayBlock('btn_create_and_list', $context, $blocks);
// line 147
echo " ";
}
// line 148
echo " ";
$this->displayBlock('btn_create_and_create', $context, $blocks);
// line 151
echo " ";
}
// line 152
echo " ";
}
// line 153
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 96
public function block_btn_delete($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", "btn_delete"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "btn_delete"));
// line 97
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("delete_or", [], "SonataAdminBundle"), "html", null, true);
echo "
<a class=\"btn btn-danger\" href=\"";
// line 98
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.', 98, $this->source); })()), "generateObjectUrl", ["delete", (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 98, $this->source); })())], "method", false, false, false, 98), "html", null, true);
echo "\">
<i class=\"fas fa-minus-circle\" aria-hidden=\"true\"></i> ";
// line 99
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("link_delete", [], "SonataAdminBundle"), "html", null, true);
echo "
</a>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 104
public function block_btn_create($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", "btn_create"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "btn_create"));
// line 105
echo " <button type=\"submit\" class=\"btn btn-success\" name=\"btn_create\"><i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_create", [], "SonataAdminBundle"), "html", null, true);
echo "</button>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 110
public function block_btn_preview($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", "btn_preview"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "btn_preview"));
// line 111
echo " <button class=\"btn btn-info persist-preview\" name=\"btn_preview\" type=\"submit\">
<i class=\"fas fa-eye\" aria-hidden=\"true\"></i>
";
// line 113
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_preview", [], "SonataAdminBundle"), "html", null, true);
echo "
</button>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 118
public function block_btn_update_and_edit($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", "btn_update_and_edit"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "btn_update_and_edit"));
// line 119
echo " <button type=\"submit\" class=\"btn btn-success\" name=\"btn_update_and_edit\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_update_and_edit_again", [], "SonataAdminBundle"), "html", null, true);
echo "</button>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 123
public function block_btn_update_and_list($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", "btn_update_and_list"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "btn_update_and_list"));
// line 124
echo " <button type=\"submit\" class=\"btn btn-success\" name=\"btn_update_and_list\"><i class=\"fas fa-save\"></i> <i class=\"fas fa-list\" aria-hidden=\"true\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_update_and_return_to_list", [], "SonataAdminBundle"), "html", null, true);
echo "</button>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 133
public function block_btn_acl($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", "btn_acl"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "btn_acl"));
// line 134
echo " <a class=\"btn btn-info\" href=\"";
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.', 134, $this->source); })()), "generateObjectUrl", ["acl", (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 134, $this->source); })())], "method", false, false, false, 134), "html", null, true);
echo "\"><i class=\"fas fa-users\" aria-hidden=\"true\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("link_edit_acl", [], "SonataAdminBundle"), "html", null, true);
echo "</a>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 139
public function block_btn_create_and_edit($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", "btn_create_and_edit"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "btn_create_and_edit"));
// line 140
echo " <button class=\"btn btn-success\" type=\"submit\" name=\"btn_create_and_edit\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_create_and_edit_again", [], "SonataAdminBundle"), "html", null, true);
echo "</button>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 144
public function block_btn_create_and_list($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", "btn_create_and_list"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "btn_create_and_list"));
// line 145
echo " <button type=\"submit\" class=\"btn btn-success\" name=\"btn_create_and_list\"><i class=\"fas fa-save\"></i> <i class=\"fas fa-list\" aria-hidden=\"true\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_create_and_return_to_list", [], "SonataAdminBundle"), "html", null, true);
echo "</button>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 148
public function block_btn_create_and_create($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", "btn_create_and_create"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "btn_create_and_create"));
// line 149
echo " <button class=\"btn btn-success\" type=\"submit\" name=\"btn_create_and_create\"><i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("btn_create_and_create_a_new_one", [], "SonataAdminBundle"), "html", null, true);
echo "</button>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@SonataAdmin/CRUD/base_edit_form.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 831 => 149, 821 => 148, 808 => 145, 798 => 144, 785 => 140, 775 => 139, 760 => 134, 750 => 133, 737 => 124, 727 => 123, 714 => 119, 704 => 118, 691 => 113, 687 => 111, 677 => 110, 664 => 105, 654 => 104, 641 => 99, 637 => 98, 632 => 97, 622 => 96, 612 => 153, 609 => 152, 606 => 151, 603 => 148, 600 => 147, 597 => 144, 594 => 143, 591 => 142, 588 => 139, 585 => 138, 582 => 137, 579 => 136, 576 => 133, 574 => 132, 571 => 131, 565 => 129, 563 => 128, 560 => 127, 557 => 126, 554 => 123, 552 => 122, 549 => 121, 546 => 118, 543 => 117, 540 => 116, 537 => 110, 534 => 109, 531 => 108, 528 => 107, 525 => 104, 522 => 103, 519 => 102, 516 => 96, 514 => 95, 509 => 94, 506 => 93, 503 => 92, 493 => 91, 482 => 154, 480 => 91, 477 => 90, 467 => 89, 456 => 84, 446 => 83, 435 => 80, 429 => 78, 427 => 77, 422 => 75, 419 => 74, 400 => 69, 397 => 68, 394 => 67, 388 => 65, 382 => 63, 379 => 62, 377 => 61, 370 => 57, 364 => 56, 361 => 55, 358 => 54, 341 => 53, 337 => 51, 321 => 48, 315 => 46, 309 => 44, 307 => 43, 300 => 41, 293 => 40, 290 => 39, 273 => 38, 269 => 36, 266 => 35, 263 => 34, 261 => 33, 257 => 31, 254 => 30, 251 => 29, 248 => 28, 238 => 27, 227 => 24, 217 => 23, 199 => 18, 180 => 14, 167 => 159, 164 => 158, 160 => 156, 158 => 89, 153 => 87, 150 => 86, 148 => 83, 145 => 82, 143 => 27, 140 => 26, 138 => 23, 133 => 21, 129 => 19, 126 => 18, 122 => 17, 119 => 16, 115 => 15, 111 => 14, 108 => 13, 104 => 12, 101 => 11, 95 => 8, 92 => 7, 90 => 6, 87 => 5, 85 => 4, 79 => 2, 60 => 1,);
}
public function getSourceContext()
{
return new Source("{% block form %}
{{ sonata_block_render_event('sonata.admin.edit.form.top', { 'admin': admin, 'object': object }) }}
{% set url = objectId is not null ? 'edit' : 'create' %}
{% if not admin.hasRoute(url) %}
<div>
{{ \"form_not_available\"|trans({}, \"SonataAdminBundle\") }}
</div>
{% else %}
<form
{% if sonata_config.getOption('form_type') == 'horizontal' %}class=\"form-horizontal\"{% endif %}
role=\"form\"
action=\"{% block sonata_form_action_url %}{{ admin.generateUrl(url, {(admin.idParameter): objectId, 'uniqid': admin.uniqid, 'subclass': app.request.get('subclass')}) }}{% endblock %}\"
{% if form.vars.multipart %} enctype=\"multipart/form-data\"{% endif %}
method=\"POST\"
{% if not sonata_config.getOption('html5_validate') %}novalidate=\"novalidate\"{% endif %}
{% block sonata_form_attributes %}{% endblock %}
>
{{ include('@SonataAdmin/Helper/render_form_dismissable_errors.html.twig') }}
{% block sonata_pre_fieldsets %}
<div class=\"row\">
{% endblock %}
{% block sonata_tab_content %}
{% import \"@SonataAdmin/CRUD/base_edit_form_macro.html.twig\" as form_helper %}
{% set formtabs = admin.getformtabs() %}
{% set has_tab = ((formtabs|length == 1 and formtabs|keys[0] != 'default') or formtabs|length > 1 ) %}
<div class=\"col-md-12\">
{% if has_tab %}
{% set tab_prefix = 'tab_' ~ admin.uniqid ~ '_' ~ random() %}
{% set tab_query_index = app.request.query.get('_tab', 0)|split(\"_\")|last %}
<div class=\"nav-tabs-custom\">
<ul class=\"nav nav-tabs\" role=\"tablist\">
{% for name, form_tab in formtabs %}
{% set _tab_name = tab_prefix ~ '_' ~ loop.index %}
<li{% if (not app.request.query.has('_tab') and loop.index == 1) or (tab_query_index == loop.index) %} class=\"active\"{% endif %}>
<a href=\"#{{ _tab_name }}\" class=\"changer-tab\" aria-controls=\"{{ _tab_name }}\" data-toggle=\"tab\">
<i class=\"fas fa-exclamation-circle has-errors hide\" aria-hidden=\"true\"></i>
{% if form_tab.translation_domain is defined and form_tab.translation_domain is same as(false) %}
{{ form_tab.label }}
{% else %}
{{ form_tab.label|trans({}, form_tab.translation_domain ?? admin.translationDomain) }}
{% endif %}
</a>
</li>
{% endfor %}
</ul>
<div class=\"tab-content\">
{% for code, form_tab in formtabs %}
{% set _tab_name = tab_prefix ~ '_' ~ loop.index %}
<div
class=\"tab-pane fade{% if (not app.request.query.has('_tab') and loop.first) or (tab_query_index == loop.index) %} in active{% endif %}\"
id=\"{{ _tab_name }}\"
>
<div class=\"box-body container-fluid\">
<div class=\"sonata-ba-collapsed-fields\">
{% if form_tab.description != false %}
{% if form_tab.translation_domain is defined and form_tab.translation_domain is same as(false) %}
<p>{{ form_tab.description|raw }}</p>
{% else %}
<p>{{ form_tab.description|trans({}, form_tab.translation_domain ?? admin.translationDomain)|raw }}</p>
{% endif %}
{% endif %}
{{ form_helper.render_groups(admin, form, form_tab['groups'], has_tab) }}
</div>
</div>
</div>
{% endfor %}
</div>
<input type=\"hidden\" name=\"_tab\" value=\"{{ app.request.query.get('_tab') }}\">
</div>
{% elseif formtabs['default'] is defined %}
{{ form_helper.render_groups(admin, form, formtabs['default'].groups, has_tab) }}
{% endif %}
</div>
{% endblock %}
{% block sonata_post_fieldsets %}
</div>
{% endblock %}
{{ form_rest(form) }}
{% block formactions %}
<div class=\"sonata-ba-form-actions well well-small form-actions\">
{% block sonata_form_actions %}
{% if app.request.isxmlhttprequest %}
{% if objectId is not null %}
<button type=\"submit\" class=\"btn btn-success\" name=\"btn_update\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> {{ 'btn_update'|trans({}, 'SonataAdminBundle') }}</button>
{% if admin.hasRoute('delete') and admin.hasAccess('delete', object) %}
{% block btn_delete %}
{{ 'delete_or'|trans({}, 'SonataAdminBundle') }}
<a class=\"btn btn-danger\" href=\"{{ admin.generateObjectUrl('delete', object) }}\">
<i class=\"fas fa-minus-circle\" aria-hidden=\"true\"></i> {{ 'link_delete'|trans({}, 'SonataAdminBundle') }}
</a>
{% endblock %}
{% endif %}
{% else %}
{% block btn_create %}
<button type=\"submit\" class=\"btn btn-success\" name=\"btn_create\"><i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i> {{ 'btn_create'|trans({}, 'SonataAdminBundle') }}</button>
{% endblock %}
{% endif %}
{% else %}
{% if admin.supportsPreviewMode %}
{% block btn_preview %}
<button class=\"btn btn-info persist-preview\" name=\"btn_preview\" type=\"submit\">
<i class=\"fas fa-eye\" aria-hidden=\"true\"></i>
{{ 'btn_preview'|trans({}, 'SonataAdminBundle') }}
</button>
{% endblock %}
{% endif %}
{% if objectId is not null %}
{% block btn_update_and_edit %}
<button type=\"submit\" class=\"btn btn-success\" name=\"btn_update_and_edit\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> {{ 'btn_update_and_edit_again'|trans({}, 'SonataAdminBundle') }}</button>
{% endblock %}
{% if admin.hasRoute('list') and admin.hasAccess('list') %}
{% block btn_update_and_list %}
<button type=\"submit\" class=\"btn btn-success\" name=\"btn_update_and_list\"><i class=\"fas fa-save\"></i> <i class=\"fas fa-list\" aria-hidden=\"true\"></i> {{ 'btn_update_and_return_to_list'|trans({}, 'SonataAdminBundle') }}</button>
{% endblock %}
{% endif %}
{% if admin.hasRoute('delete') and admin.hasAccess('delete', object) %}
{{ block('btn_delete') }}
{% endif %}
{% if admin.isAclEnabled() and admin.hasRoute('acl') and admin.hasAccess('acl', object) %}
{% block btn_acl %}
<a class=\"btn btn-info\" href=\"{{ admin.generateObjectUrl('acl', object) }}\"><i class=\"fas fa-users\" aria-hidden=\"true\"></i> {{ 'link_edit_acl'|trans({}, 'SonataAdminBundle') }}</a>
{% endblock %}
{% endif %}
{% else %}
{% if admin.hasroute('edit') and admin.hasAccess('edit') %}
{% block btn_create_and_edit %}
<button class=\"btn btn-success\" type=\"submit\" name=\"btn_create_and_edit\"><i class=\"fas fa-save\" aria-hidden=\"true\"></i> {{ 'btn_create_and_edit_again'|trans({}, 'SonataAdminBundle') }}</button>
{% endblock %}
{% endif %}
{% if admin.hasroute('list') and admin.hasAccess('list') %}
{% block btn_create_and_list %}
<button type=\"submit\" class=\"btn btn-success\" name=\"btn_create_and_list\"><i class=\"fas fa-save\"></i> <i class=\"fas fa-list\" aria-hidden=\"true\"></i> {{ 'btn_create_and_return_to_list'|trans({}, 'SonataAdminBundle') }}</button>
{% endblock %}
{% endif %}
{% block btn_create_and_create %}
<button class=\"btn btn-success\" type=\"submit\" name=\"btn_create_and_create\"><i class=\"fas fa-plus-circle\" aria-hidden=\"true\"></i> {{ 'btn_create_and_create_a_new_one'|trans({}, 'SonataAdminBundle') }}</button>
{% endblock %}
{% endif %}
{% endif %}
{% endblock %}
</div>
{% endblock formactions %}
</form>
{% endif %}
{{ sonata_block_render_event('sonata.admin.edit.form.bottom', { 'admin': admin, 'object': object }) }}
{% endblock %}
", "@SonataAdmin/CRUD/base_edit_form.html.twig", "/var/www/vhosts/perseo.comerziawatches.com/httpdocs/perseo/httpdocs/vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/base_edit_form.html.twig");
}
}