<?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;
/* SonataAdminBundle:CRUD/Association:edit_many_to_one.html.twig */
class __TwigTemplate_e1b6fed385baed5e147f881225ea1e352288f931c7c59bb8ca6cc5b99f8f26d4 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "SonataAdminBundle:CRUD/Association:edit_many_to_one.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "SonataAdminBundle:CRUD/Association:edit_many_to_one.html.twig"));
// line 11
echo "
";
// line 12
if ( !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 12, $this->source); })()), "field_description", [], "any", false, false, false, 12), "hasassociationadmin", [], "any", false, false, false, 12)) {
// line 13
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Sonata\AdminBundle\Twig\Extension\SonataAdminExtension']->renderRelationElement((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 13, $this->source); })()), twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 13, $this->source); })()), "field_description", [], "any", false, false, false, 13)), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, // line 14
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 14, $this->source); })()), "edit", [], "any", false, false, false, 14) == "inline")) {
// line 15
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 15, $this->source); })()), "field_description", [], "any", false, false, false, 15), "associationadmin", [], "any", false, false, false, 15), "formfielddescriptions", [], "any", false, false, false, 15));
foreach ($context['_seq'] as $context["_key"] => $context["field_description"]) {
// line 16
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 16, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["field_description"], "name", [], "any", false, false, false, 16), [], "array", false, false, false, 16), 'row');
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field_description'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
} else {
// line 19
echo " <div id=\"field_container_";
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 19, $this->source); })()), "html", null, true);
echo "\" class=\"field-container\">
";
// line 20
if ((twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 20, $this->source); })()), "edit", [], "any", false, false, false, 20) == "list")) {
// line 21
echo " <span id=\"field_widget_";
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 21, $this->source); })()), "html", null, true);
echo "\" class=\"field-short-description\">
";
// line 22
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 22, $this->source); })()), "admin", [], "any", false, false, false, 22), "id", [0 => twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 22, $this->source); })()), "value", [], "any", false, false, false, 22)], "method", false, false, false, 22)) {
// line 23
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_short_object_information", ["code" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 24
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 24, $this->source); })()), "field_description", [], "any", false, false, false, 24), "associationadmin", [], "any", false, false, false, 24), "code", [], "any", false, false, false, 24), "objectId" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 25
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 25, $this->source); })()), "field_description", [], "any", false, false, false, 25), "associationadmin", [], "any", false, false, false, 25), "id", [0 => twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 25, $this->source); })()), "value", [], "any", false, false, false, 25)], "method", false, false, false, 25), "uniqid" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 26
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 26, $this->source); })()), "field_description", [], "any", false, false, false, 26), "associationadmin", [], "any", false, false, false, 26), "uniqid", [], "any", false, false, false, 26), "linkParameters" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 27
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 27, $this->source); })()), "field_description", [], "any", false, false, false, 27), "options", [], "any", false, false, false, 27), "link_parameters", [], "any", false, false, false, 27)]));
// line 28
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 29
($context["sonata_admin"] ?? null), "field_description", [], "any", false, true, false, 29), "options", [], "any", false, true, false, 29), "placeholder", [], "any", true, true, false, 29) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 29, $this->source); })()), "field_description", [], "any", false, false, false, 29), "options", [], "any", false, false, false, 29), "placeholder", [], "any", false, false, false, 29))) {
// line 30
echo " <span class=\"inner-field-short-description\">
";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 31, $this->source); })()), "field_description", [], "any", false, false, false, 31), "options", [], "any", false, false, false, 31), "placeholder", [], "any", false, false, false, 31), [], "SonataAdminBundle"), "html", null, true);
echo "
</span>
";
}
// line 34
echo " </span>
<span style=\"display: none\" >
";
// line 36
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.', 36, $this->source); })()), 'widget');
echo "
</span>
";
} else {
// line 39
echo " <span id=\"field_widget_";
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 39, $this->source); })()), "html", null, true);
echo "\" >
";
// line 40
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.', 40, $this->source); })()), 'widget');
echo "
</span>
";
}
// line 43
echo "
<div id=\"field_actions_";
// line 44
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 44, $this->source); })()), "html", null, true);
echo "\" class=\"field-actions\">
";
// line 45
$context["display_btn_list"] = ((((twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 45, $this->source); })()), "edit", [], "any", false, false, false, 45) == "list") && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 46
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 46, $this->source); })()), "field_description", [], "any", false, false, false, 46), "associationadmin", [], "any", false, false, false, 46), "hasRoute", [0 => "list"], "method", false, false, false, 46)) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 47
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 47, $this->source); })()), "field_description", [], "any", false, false, false, 47), "associationadmin", [], "any", false, false, false, 47), "hasAccess", [0 => "list"], "method", false, false, false, 47)) && // line 48
(isset($context["btn_list"]) || array_key_exists("btn_list", $context) ? $context["btn_list"] : (function () { throw new RuntimeError('Variable "btn_list" does not exist.', 48, $this->source); })()));
// line 49
echo " ";
$context["display_btn_add"] = ((((twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 49, $this->source); })()), "edit", [], "any", false, false, false, 49) != "admin") && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 50
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 50, $this->source); })()), "field_description", [], "any", false, false, false, 50), "associationadmin", [], "any", false, false, false, 50), "hasRoute", [0 => "create"], "method", false, false, false, 50)) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 51
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 51, $this->source); })()), "field_description", [], "any", false, false, false, 51), "associationadmin", [], "any", false, false, false, 51), "hasAccess", [0 => "create"], "method", false, false, false, 51)) && // line 52
(isset($context["btn_add"]) || array_key_exists("btn_add", $context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.', 52, $this->source); })()));
// line 53
echo " ";
if (((isset($context["display_btn_list"]) || array_key_exists("display_btn_list", $context) ? $context["display_btn_list"] : (function () { throw new RuntimeError('Variable "display_btn_list" does not exist.', 53, $this->source); })()) || (isset($context["display_btn_add"]) || array_key_exists("display_btn_add", $context) ? $context["display_btn_add"] : (function () { throw new RuntimeError('Variable "display_btn_add" does not exist.', 53, $this->source); })()))) {
// line 54
echo " <div class=\"btn-group\">
";
// line 55
if ((isset($context["display_btn_list"]) || array_key_exists("display_btn_list", $context) ? $context["display_btn_list"] : (function () { throw new RuntimeError('Variable "display_btn_list" does not exist.', 55, $this->source); })())) {
// line 56
echo " <a href=\"";
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["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 56, $this->source); })()), "field_description", [], "any", false, false, false, 56), "associationadmin", [], "any", false, false, false, 56), "generateUrl", [0 => "list", 1 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 56, $this->source); })()), "field_description", [], "any", false, false, false, 56), "getOption", [0 => "link_parameters", 1 => []], "method", false, false, false, 56)], "method", false, false, false, 56), "html", null, true);
echo "\"
onclick=\"return start_field_dialog_form_list_";
// line 57
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 57, $this->source); })()), "html", null, true);
echo "(this);\"
class=\"btn btn-info btn-sm sonata-ba-action\"
title=\"";
// line 59
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_list"]) || array_key_exists("btn_list", $context) ? $context["btn_list"] : (function () { throw new RuntimeError('Variable "btn_list" does not exist.', 59, $this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue", $context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.', 59, $this->source); })())), "html", null, true);
echo "\"
>
<i class=\"fa fa-list\"></i>
";
// line 62
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_list"]) || array_key_exists("btn_list", $context) ? $context["btn_list"] : (function () { throw new RuntimeError('Variable "btn_list" does not exist.', 62, $this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue", $context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.', 62, $this->source); })())), "html", null, true);
echo "
</a>
";
}
// line 65
echo "
";
// line 66
if ((isset($context["display_btn_add"]) || array_key_exists("display_btn_add", $context) ? $context["display_btn_add"] : (function () { throw new RuntimeError('Variable "display_btn_add" does not exist.', 66, $this->source); })())) {
// line 67
echo " <a href=\"";
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["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 67, $this->source); })()), "field_description", [], "any", false, false, false, 67), "associationadmin", [], "any", false, false, false, 67), "generateUrl", [0 => "create", 1 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 67, $this->source); })()), "field_description", [], "any", false, false, false, 67), "getOption", [0 => "link_parameters", 1 => []], "method", false, false, false, 67)], "method", false, false, false, 67), "html", null, true);
echo "\"
onclick=\"return start_field_dialog_form_add_";
// line 68
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 68, $this->source); })()), "html", null, true);
echo "(this);\"
class=\"btn btn-success btn-sm sonata-ba-action\"
title=\"";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_add"]) || array_key_exists("btn_add", $context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.', 70, $this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue", $context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.', 70, $this->source); })())), "html", null, true);
echo "\"
>
<i class=\"fa fa-plus-circle\"></i>
";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_add"]) || array_key_exists("btn_add", $context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.', 73, $this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue", $context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.', 73, $this->source); })())), "html", null, true);
echo "
</a>
";
}
// line 76
echo " </div>
";
}
// line 78
echo "
";
// line 79
$context["display_btn_delete"] = ((((twig_get_attribute($this->env, $this->source, (isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 79, $this->source); })()), "edit", [], "any", false, false, false, 79) == "list") && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 80
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 80, $this->source); })()), "field_description", [], "any", false, false, false, 80), "associationadmin", [], "any", false, false, false, 80), "hasRoute", [0 => "delete"], "method", false, false, false, 80)) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 81
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 81, $this->source); })()), "field_description", [], "any", false, false, false, 81), "associationadmin", [], "any", false, false, false, 81), "hasAccess", [0 => "delete"], "method", false, false, false, 81)) && // line 82
(isset($context["btn_delete"]) || array_key_exists("btn_delete", $context) ? $context["btn_delete"] : (function () { throw new RuntimeError('Variable "btn_delete" does not exist.', 82, $this->source); })()));
// line 83
echo " ";
if ((isset($context["display_btn_delete"]) || array_key_exists("display_btn_delete", $context) ? $context["display_btn_delete"] : (function () { throw new RuntimeError('Variable "display_btn_delete" does not exist.', 83, $this->source); })())) {
// line 84
echo " <a href=\"\"
onclick=\"return remove_selected_element_";
// line 85
echo twig_escape_filter($this->env, (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 85, $this->source); })()), "html", null, true);
echo "(this);\"
class=\"btn btn-danger btn-sm sonata-ba-action\"
title=\"";
// line 87
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_delete"]) || array_key_exists("btn_delete", $context) ? $context["btn_delete"] : (function () { throw new RuntimeError('Variable "btn_delete" does not exist.', 87, $this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue", $context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.', 87, $this->source); })())), "html", null, true);
echo "\"
>
<i class=\"fa fa-minus-circle\"></i>
";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_delete"]) || array_key_exists("btn_delete", $context) ? $context["btn_delete"] : (function () { throw new RuntimeError('Variable "btn_delete" does not exist.', 90, $this->source); })()), [], (isset($context["btn_catalogue"]) || array_key_exists("btn_catalogue", $context) ? $context["btn_catalogue"] : (function () { throw new RuntimeError('Variable "btn_catalogue" does not exist.', 90, $this->source); })())), "html", null, true);
echo "
</a>
";
}
// line 93
echo "
";
// line 94
if ((((isset($context["display_btn_list"]) || array_key_exists("display_btn_list", $context) ? $context["display_btn_list"] : (function () { throw new RuntimeError('Variable "display_btn_list" does not exist.', 94, $this->source); })()) || (isset($context["display_btn_add"]) || array_key_exists("display_btn_add", $context) ? $context["display_btn_add"] : (function () { throw new RuntimeError('Variable "display_btn_add" does not exist.', 94, $this->source); })())) || (isset($context["display_btn_delete"]) || array_key_exists("display_btn_delete", $context) ? $context["display_btn_delete"] : (function () { throw new RuntimeError('Variable "display_btn_delete" does not exist.', 94, $this->source); })()))) {
// line 95
echo " ";
$this->loadTemplate("@SonataAdmin/CRUD/Association/edit_modal.html.twig", "SonataAdminBundle:CRUD/Association:edit_many_to_one.html.twig", 95)->display($context);
// line 96
echo " ";
$this->loadTemplate("@SonataAdmin/CRUD/Association/edit_many_script.html.twig", "SonataAdminBundle:CRUD/Association:edit_many_to_one.html.twig", 96)->display($context);
// line 97
echo " ";
}
// line 98
echo " </div>
</div>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "SonataAdminBundle:CRUD/Association:edit_many_to_one.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 250 => 98, 247 => 97, 244 => 96, 241 => 95, 239 => 94, 236 => 93, 230 => 90, 224 => 87, 219 => 85, 216 => 84, 213 => 83, 211 => 82, 210 => 81, 209 => 80, 208 => 79, 205 => 78, 201 => 76, 195 => 73, 189 => 70, 184 => 68, 179 => 67, 177 => 66, 174 => 65, 168 => 62, 162 => 59, 157 => 57, 152 => 56, 150 => 55, 147 => 54, 144 => 53, 142 => 52, 141 => 51, 140 => 50, 138 => 49, 136 => 48, 135 => 47, 134 => 46, 133 => 45, 129 => 44, 126 => 43, 120 => 40, 115 => 39, 109 => 36, 105 => 34, 99 => 31, 96 => 30, 94 => 29, 91 => 28, 89 => 27, 88 => 26, 87 => 25, 86 => 24, 84 => 23, 82 => 22, 77 => 21, 75 => 20, 70 => 19, 60 => 16, 55 => 15, 53 => 14, 48 => 13, 46 => 12, 43 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of the Sonata package.
(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% if not sonata_admin.field_description.hasassociationadmin %}
{{ value|render_relation_element(sonata_admin.field_description) }}
{% elseif sonata_admin.edit == 'inline' %}
{% for field_description in sonata_admin.field_description.associationadmin.formfielddescriptions %}
{{ form_row(form[field_description.name]) }}
{% endfor %}
{% else %}
<div id=\"field_container_{{ id }}\" class=\"field-container\">
{% if sonata_admin.edit == 'list' %}
<span id=\"field_widget_{{ id }}\" class=\"field-short-description\">
{% if sonata_admin.admin.id(sonata_admin.value) %}
{{ render(path('sonata_admin_short_object_information', {
'code': sonata_admin.field_description.associationadmin.code,
'objectId': sonata_admin.field_description.associationadmin.id(sonata_admin.value),
'uniqid': sonata_admin.field_description.associationadmin.uniqid,
'linkParameters': sonata_admin.field_description.options.link_parameters
})) }}
{% elseif sonata_admin.field_description.options.placeholder is defined and sonata_admin.field_description.options.placeholder %}
<span class=\"inner-field-short-description\">
{{ sonata_admin.field_description.options.placeholder|trans({}, 'SonataAdminBundle') }}
</span>
{% endif %}
</span>
<span style=\"display: none\" >
{{ form_widget(form) }}
</span>
{% else %}
<span id=\"field_widget_{{ id }}\" >
{{ form_widget(form) }}
</span>
{% endif %}
<div id=\"field_actions_{{ id }}\" class=\"field-actions\">
{% set display_btn_list = sonata_admin.edit == 'list'
and sonata_admin.field_description.associationadmin.hasRoute('list')
and sonata_admin.field_description.associationadmin.hasAccess('list')
and btn_list %}
{% set display_btn_add = sonata_admin.edit != 'admin'
and sonata_admin.field_description.associationadmin.hasRoute('create')
and sonata_admin.field_description.associationadmin.hasAccess('create')
and btn_add %}
{% if display_btn_list or display_btn_add %}
<div class=\"btn-group\">
{% if display_btn_list %}
<a href=\"{{ sonata_admin.field_description.associationadmin.generateUrl('list', sonata_admin.field_description.getOption('link_parameters', {})) }}\"
onclick=\"return start_field_dialog_form_list_{{ id }}(this);\"
class=\"btn btn-info btn-sm sonata-ba-action\"
title=\"{{ btn_list|trans({}, btn_catalogue) }}\"
>
<i class=\"fa fa-list\"></i>
{{ btn_list|trans({}, btn_catalogue) }}
</a>
{% endif %}
{% if display_btn_add %}
<a href=\"{{ sonata_admin.field_description.associationadmin.generateUrl('create', sonata_admin.field_description.getOption('link_parameters', {})) }}\"
onclick=\"return start_field_dialog_form_add_{{ id }}(this);\"
class=\"btn btn-success btn-sm sonata-ba-action\"
title=\"{{ btn_add|trans({}, btn_catalogue) }}\"
>
<i class=\"fa fa-plus-circle\"></i>
{{ btn_add|trans({}, btn_catalogue) }}
</a>
{% endif %}
</div>
{% endif %}
{% set display_btn_delete = sonata_admin.edit == 'list'
and sonata_admin.field_description.associationadmin.hasRoute('delete')
and sonata_admin.field_description.associationadmin.hasAccess('delete')
and btn_delete %}
{% if display_btn_delete %}
<a href=\"\"
onclick=\"return remove_selected_element_{{ id }}(this);\"
class=\"btn btn-danger btn-sm sonata-ba-action\"
title=\"{{ btn_delete|trans({}, btn_catalogue) }}\"
>
<i class=\"fa fa-minus-circle\"></i>
{{ btn_delete|trans({}, btn_catalogue) }}
</a>
{% endif %}
{% if display_btn_list or display_btn_add or display_btn_delete %}
{% include '@SonataAdmin/CRUD/Association/edit_modal.html.twig' %}
{% include '@SonataAdmin/CRUD/Association/edit_many_script.html.twig' %}
{% endif %}
</div>
</div>
{% endif %}
", "SonataAdminBundle:CRUD/Association:edit_many_to_one.html.twig", "/var/www/radmin.tehnik.tech/vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/Association/edit_many_to_one.html.twig");
}
}