<?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;
/* SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig */
class __TwigTemplate_eeae2dadcda6a3dfe3d8cb93e86478aee1540cdf5f62f3920751aaf13ee938dc extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'sonata_admin_orm_one_to_one_widget' => [$this, 'block_sonata_admin_orm_one_to_one_widget'],
'sonata_admin_orm_many_to_many_widget' => [$this, 'block_sonata_admin_orm_many_to_many_widget'],
'sonata_admin_orm_many_to_one_widget' => [$this, 'block_sonata_admin_orm_many_to_one_widget'],
'sonata_admin_orm_one_to_many_widget' => [$this, 'block_sonata_admin_orm_one_to_many_widget'],
'sonata_type_model_widget' => [$this, 'block_sonata_type_model_widget'],
'sonata_type_model_list_widget' => [$this, 'block_sonata_type_model_list_widget'],
'sonata_type_admin_widget' => [$this, 'block_sonata_type_admin_widget'],
'sonata_type_collection_widget' => [$this, 'block_sonata_type_collection_widget'],
];
}
protected function doGetParent(array $context)
{
// line 12
return "@SonataAdmin/Form/form_admin_fields.html.twig";
}
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", "SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig"));
$this->parent = $this->loadTemplate("@SonataAdmin/Form/form_admin_fields.html.twig", "SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig", 12);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 16
public function block_sonata_admin_orm_one_to_one_widget($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(), "block", "sonata_admin_orm_one_to_one_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_admin_orm_one_to_one_widget"));
// line 17
echo " ";
$this->loadTemplate("@SonataAdmin/CRUD/Association/edit_one_to_one.html.twig", "SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig", 17)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 20
public function block_sonata_admin_orm_many_to_many_widget($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(), "block", "sonata_admin_orm_many_to_many_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_admin_orm_many_to_many_widget"));
// line 21
echo " ";
$this->loadTemplate("@SonataAdmin/CRUD/Association/edit_many_to_many.html.twig", "SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig", 21)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 24
public function block_sonata_admin_orm_many_to_one_widget($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(), "block", "sonata_admin_orm_many_to_one_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_admin_orm_many_to_one_widget"));
// line 25
echo " ";
$this->loadTemplate("@SonataAdmin/CRUD/Association/edit_many_to_one.html.twig", "SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig", 25)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 28
public function block_sonata_admin_orm_one_to_many_widget($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(), "block", "sonata_admin_orm_one_to_many_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_admin_orm_one_to_many_widget"));
// line 29
echo " ";
$this->loadTemplate("@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig", "SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig", 29)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 32
public function block_sonata_type_model_widget($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(), "block", "sonata_type_model_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_type_model_widget"));
// line 33
echo " ";
// line 37
echo "
";
// line 39
echo "
";
// line 40
if (twig_test_empty(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.', 40, $this->source); })()), "field_description", [], "any", false, false, false, 40))) {
// line 41
echo " ";
$this->displayBlock("choice_widget", $context, $blocks);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 42
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 42, $this->source); })()), "field_description", [], "any", false, false, false, 42), "mappingtype", [], "any", false, false, false, 42) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::ONE_TO_ONE"))) {
// line 43
echo " ";
$this->displayBlock("sonata_admin_orm_one_to_one_widget", $context, $blocks);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 44
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 44, $this->source); })()), "field_description", [], "any", false, false, false, 44), "mappingtype", [], "any", false, false, false, 44) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::MANY_TO_ONE"))) {
// line 45
echo " ";
$this->displayBlock("sonata_admin_orm_many_to_one_widget", $context, $blocks);
echo "
";
} elseif ((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), "mappingtype", [], "any", false, false, false, 46) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::MANY_TO_MANY"))) {
// line 47
echo " ";
$this->displayBlock("sonata_admin_orm_many_to_many_widget", $context, $blocks);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 48
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 48, $this->source); })()), "field_description", [], "any", false, false, false, 48), "mappingtype", [], "any", false, false, false, 48) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::ONE_TO_MANY"))) {
// line 49
echo " ";
$this->displayBlock("sonata_admin_orm_one_to_many_widget", $context, $blocks);
echo "
";
} else {
// line 51
echo " ";
// line 52
echo " ";
$this->displayBlock("choice_widget", $context, $blocks);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 56
public function block_sonata_type_model_list_widget($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(), "block", "sonata_type_model_list_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_type_model_list_widget"));
// line 57
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.', 57, $this->source); })()), "html", null, true);
echo "\" class=\"field-container\">
<span id=\"field_widget_";
// line 58
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.', 58, $this->source); })()), "html", null, true);
echo "\" class=\"field-short-description\">
";
// line 59
if (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.', 59, $this->source); })()), "field_description", [], "any", false, false, false, 59), "associationadmin", [], "any", false, false, false, 59), "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.', 59, $this->source); })()), "value", [], "any", false, false, false, 59)], "method", false, false, false, 59)) {
// line 60
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 61
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 61, $this->source); })()), "field_description", [], "any", false, false, false, 61), "associationadmin", [], "any", false, false, false, 61), "code", [], "any", false, false, false, 61), "objectId" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 62
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 62, $this->source); })()), "field_description", [], "any", false, false, false, 62), "associationadmin", [], "any", false, false, false, 62), "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.', 62, $this->source); })()), "value", [], "any", false, false, false, 62)], "method", false, false, false, 62), "uniqid" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 63
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 63, $this->source); })()), "field_description", [], "any", false, false, false, 63), "associationadmin", [], "any", false, false, false, 63), "uniqid", [], "any", false, false, false, 63), "linkParameters" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 64
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 64, $this->source); })()), "field_description", [], "any", false, false, false, 64), "options", [], "any", false, false, false, 64), "link_parameters", [], "any", false, false, false, 64)]));
// line 65
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 66
($context["sonata_admin"] ?? null), "field_description", [], "any", false, true, false, 66), "options", [], "any", false, true, false, 66), "placeholder", [], "any", true, true, false, 66) && 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.', 66, $this->source); })()), "field_description", [], "any", false, false, false, 66), "options", [], "any", false, false, false, 66), "placeholder", [], "any", false, false, false, 66))) {
// line 67
echo " <span class=\"inner-field-short-description\">
";
// line 68
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.', 68, $this->source); })()), "field_description", [], "any", false, false, false, 68), "options", [], "any", false, false, false, 68), "placeholder", [], "any", false, false, false, 68), [], "SonataAdminBundle"), "html", null, true);
echo "
</span>
";
}
// line 71
echo " </span>
<span id=\"field_actions_";
// line 72
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.', 72, $this->source); })()), "html", null, true);
echo "\" class=\"field-actions\">
<span class=\"btn-group\">
";
// line 74
if (((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.', 74, $this->source); })()), "field_description", [], "any", false, false, false, 74), "associationadmin", [], "any", false, false, false, 74), "hasroute", [0 => "list"], "method", false, false, false, 74) && 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.', 74, $this->source); })()), "field_description", [], "any", false, false, false, 74), "associationadmin", [], "any", false, false, false, 74), "isGranted", [0 => "LIST"], "method", false, false, false, 74)) && (isset($context["btn_list"]) || array_key_exists("btn_list", $context) ? $context["btn_list"] : (function () { throw new RuntimeError('Variable "btn_list" does not exist.', 74, $this->source); })()))) {
// line 75
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.', 75, $this->source); })()), "field_description", [], "any", false, false, false, 75), "associationadmin", [], "any", false, false, false, 75), "generateUrl", [0 => "list"], "method", false, false, false, 75), "html", null, true);
echo "\"
onclick=\"return start_field_dialog_form_list_";
// line 76
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.', 76, $this->source); })()), "html", null, true);
echo "(this);\"
class=\"btn btn-info btn-sm sonata-ba-action\"
title=\"";
// line 78
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.', 78, $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.', 78, $this->source); })())), "html", null, true);
echo "\"
>
<i class=\"fa fa-list\"></i>
";
// line 81
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.', 81, $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.', 81, $this->source); })())), "html", null, true);
echo "
</a>
";
}
// line 84
echo "
";
// line 85
if (((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.', 85, $this->source); })()), "field_description", [], "any", false, false, false, 85), "associationadmin", [], "any", false, false, false, 85), "hasroute", [0 => "create"], "method", false, false, false, 85) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 86
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 86, $this->source); })()), "field_description", [], "any", false, false, false, 86), "associationadmin", [], "any", false, false, false, 86), "isGranted", [0 => "CREATE"], "method", false, false, false, 86)) && // line 87
(isset($context["btn_add"]) || array_key_exists("btn_add", $context) ? $context["btn_add"] : (function () { throw new RuntimeError('Variable "btn_add" does not exist.', 87, $this->source); })()))) {
// line 89
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.', 89, $this->source); })()), "field_description", [], "any", false, false, false, 89), "associationadmin", [], "any", false, false, false, 89), "generateUrl", [0 => "create"], "method", false, false, false, 89), "html", null, true);
echo "\"
onclick=\"return start_field_dialog_form_add_";
// line 90
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.', 90, $this->source); })()), "html", null, true);
echo "(this);\"
class=\"btn btn-success btn-sm sonata-ba-action\"
title=\"";
// line 92
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.', 92, $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.', 92, $this->source); })())), "html", null, true);
echo "\"
>
<i class=\"fa fa-plus-circle\"></i>
";
// line 95
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.', 95, $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.', 95, $this->source); })())), "html", null, true);
echo "
</a>
";
}
// line 98
echo " ";
if (((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.', 98, $this->source); })()), "field_description", [], "any", false, false, false, 98), "associationadmin", [], "any", false, false, false, 98), "hasroute", [0 => "edit"], "method", false, false, false, 98) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 99
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 99, $this->source); })()), "field_description", [], "any", false, false, false, 99), "associationadmin", [], "any", false, false, false, 99), "isGranted", [0 => "EDIT"], "method", false, false, false, 99)) && // line 100
(isset($context["btn_edit"]) || array_key_exists("btn_edit", $context) ? $context["btn_edit"] : (function () { throw new RuntimeError('Variable "btn_edit" does not exist.', 100, $this->source); })()))) {
// line 102
echo " <a href=\"";
// line 103
(((twig_get_attribute($this->env, $this->source, // line 102
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 102, $this->source); })()), "value", [], "any", false, false, false, 102) == null)) ? (print ("")) : (print (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.', 102, $this->source); })()), "field_description", [], "any", false, false, false, 102), "associationadmin", [], "any", false, false, false, 102), "generateUrl", [0 => "edit", 1 => ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 103
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 103, $this->source); })()), "field_description", [], "any", false, false, false, 103), "associationadmin", [], "any", false, false, false, 103), "normalizedIdentifier", [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.', 103, $this->source); })()), "value", [], "any", false, false, false, 103)], "method", false, false, false, 103)]], "method", false, false, false, 102), "html", null, true))));
// line 104
echo "\"
onclick=\"return start_field_dialog_form_edit_";
// line 105
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.', 105, $this->source); })()), "html", null, true);
echo "(this);\"
class=\"btn btn-warning btn-sm sonata-ba-action ";
// line 106
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.', 106, $this->source); })()), "value", [], "any", false, false, false, 106) == null)) {
echo "hidden";
}
echo "\"
title=\"";
// line 107
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_edit"]) || array_key_exists("btn_edit", $context) ? $context["btn_edit"] : (function () { throw new RuntimeError('Variable "btn_edit" does not exist.', 107, $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.', 107, $this->source); })())), "html", null, true);
echo "\"
>
<i class=\"fa fa-pencil\"></i>
";
// line 110
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["btn_edit"]) || array_key_exists("btn_edit", $context) ? $context["btn_edit"] : (function () { throw new RuntimeError('Variable "btn_edit" does not exist.', 110, $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.', 110, $this->source); })())), "html", null, true);
echo "
</a>
";
}
// line 113
echo " </span>
<span class=\"btn-group\">
";
// line 116
if (((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.', 116, $this->source); })()), "field_description", [], "any", false, false, false, 116), "associationadmin", [], "any", false, false, false, 116), "hasRoute", [0 => "delete"], "method", false, false, false, 116) && 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.', 116, $this->source); })()), "field_description", [], "any", false, false, false, 116), "associationadmin", [], "any", false, false, false, 116), "isGranted", [0 => "DELETE"], "method", false, false, false, 116)) && (isset($context["btn_delete"]) || array_key_exists("btn_delete", $context) ? $context["btn_delete"] : (function () { throw new RuntimeError('Variable "btn_delete" does not exist.', 116, $this->source); })()))) {
// line 117
echo " <a href=\"\"
onclick=\"return remove_selected_element_";
// line 118
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.', 118, $this->source); })()), "html", null, true);
echo "(this);\"
class=\"btn btn-danger btn-sm sonata-ba-action\"
title=\"";
// line 120
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.', 120, $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.', 120, $this->source); })())), "html", null, true);
echo "\"
>
<i class=\"fa fa-minus-circle\"></i>
";
// line 123
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.', 123, $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.', 123, $this->source); })())), "html", null, true);
echo "
</a>
";
}
// line 126
echo " </span>
</span>
<span style=\"display: none\" >
";
// line 131
echo " ";
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.', 131, $this->source); })()), 'widget', ["required" => false]);
echo "
</span>
";
// line 134
$this->displayBlock("sonata_help", $context, $blocks);
echo "
<div class=\"modal fade\" id=\"field_dialog_";
// line 136
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.', 136, $this->source); })()), "html", null, true);
echo "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-lg\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>
<h4 class=\"modal-title\"></h4>
</div>
<div class=\"modal-body\">
</div>
</div>
</div>
</div>
</div>
";
// line 150
$this->loadTemplate("@SonataAdmin/CRUD/Association/edit_many_script.html.twig", "SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig", 150)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 153
public function block_sonata_type_admin_widget($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(), "block", "sonata_type_admin_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_type_admin_widget"));
// line 154
echo " ";
// line 155
echo " ";
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.', 155, $this->source); })()), "field_description", [], "any", false, false, false, 155), "mappingtype", [], "any", false, false, false, 155) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::ONE_TO_ONE"))) {
// line 156
echo " ";
$this->displayBlock("sonata_admin_orm_one_to_one_widget", $context, $blocks);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 157
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 157, $this->source); })()), "field_description", [], "any", false, false, false, 157), "mappingtype", [], "any", false, false, false, 157) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::MANY_TO_ONE"))) {
// line 158
echo " ";
$this->displayBlock("sonata_admin_orm_many_to_one_widget", $context, $blocks);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 159
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 159, $this->source); })()), "field_description", [], "any", false, false, false, 159), "mappingtype", [], "any", false, false, false, 159) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::MANY_TO_MANY"))) {
// line 160
echo " ";
$this->displayBlock("sonata_admin_orm_many_to_many_widget", $context, $blocks);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 161
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 161, $this->source); })()), "field_description", [], "any", false, false, false, 161), "mappingtype", [], "any", false, false, false, 161) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::ONE_TO_MANY"))) {
// line 162
echo " ";
$this->displayBlock("sonata_admin_orm_one_to_many_widget", $context, $blocks);
echo "
";
} else {
// line 164
echo " INVALID MODE : ";
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.', 164, $this->source); })()), "html", null, true);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 168
public function block_sonata_type_collection_widget($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(), "block", "sonata_type_collection_widget"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_type_collection_widget"));
// line 169
echo " ";
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.', 169, $this->source); })()), "field_description", [], "any", false, false, false, 169), "mappingtype", [], "any", false, false, false, 169) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::ONE_TO_MANY"))) {
// line 170
echo " ";
$this->displayBlock("sonata_admin_orm_one_to_many_widget", $context, $blocks);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 171
(isset($context["sonata_admin"]) || array_key_exists("sonata_admin", $context) ? $context["sonata_admin"] : (function () { throw new RuntimeError('Variable "sonata_admin" does not exist.', 171, $this->source); })()), "field_description", [], "any", false, false, false, 171), "mappingtype", [], "any", false, false, false, 171) == twig_constant("Doctrine\\ORM\\Mapping\\ClassMetadataInfo::MANY_TO_MANY"))) {
// line 172
echo " ";
$this->displayBlock("sonata_admin_orm_many_to_many_widget", $context, $blocks);
echo "
";
} else {
// line 174
echo " INVALID MODE : ";
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.', 174, $this->source); })()), "html", null, true);
echo " - type : CollectionType - mapping : ";
echo twig_escape_filter($this->env, 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.', 174, $this->source); })()), "field_description", [], "any", false, false, false, 174), "mappingtype", [], "any", false, false, false, 174), "html", null, true);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 512 => 174, 506 => 172, 504 => 171, 499 => 170, 496 => 169, 486 => 168, 472 => 164, 466 => 162, 464 => 161, 459 => 160, 457 => 159, 452 => 158, 450 => 157, 445 => 156, 442 => 155, 440 => 154, 430 => 153, 420 => 150, 403 => 136, 398 => 134, 391 => 131, 385 => 126, 379 => 123, 373 => 120, 368 => 118, 365 => 117, 363 => 116, 358 => 113, 352 => 110, 346 => 107, 340 => 106, 336 => 105, 333 => 104, 331 => 103, 330 => 102, 329 => 103, 327 => 102, 325 => 100, 324 => 99, 322 => 98, 316 => 95, 310 => 92, 305 => 90, 300 => 89, 298 => 87, 297 => 86, 296 => 85, 293 => 84, 287 => 81, 281 => 78, 276 => 76, 271 => 75, 269 => 74, 264 => 72, 261 => 71, 255 => 68, 252 => 67, 250 => 66, 247 => 65, 245 => 64, 244 => 63, 243 => 62, 242 => 61, 240 => 60, 238 => 59, 234 => 58, 229 => 57, 219 => 56, 205 => 52, 203 => 51, 197 => 49, 195 => 48, 190 => 47, 188 => 46, 183 => 45, 181 => 44, 176 => 43, 174 => 42, 169 => 41, 167 => 40, 164 => 39, 161 => 37, 159 => 33, 149 => 32, 138 => 29, 128 => 28, 117 => 25, 107 => 24, 96 => 21, 86 => 20, 75 => 17, 65 => 16, 42 => 12,);
}
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.
#}
{% extends '@SonataAdmin/Form/form_admin_fields.html.twig' %}
{# Custom Sonata Admin Extension #}
{% block sonata_admin_orm_one_to_one_widget %}
{% include '@SonataAdmin/CRUD/Association/edit_one_to_one.html.twig' %}
{% endblock %}
{% block sonata_admin_orm_many_to_many_widget %}
{% include '@SonataAdmin/CRUD/Association/edit_many_to_many.html.twig' %}
{% endblock %}
{% block sonata_admin_orm_many_to_one_widget %}
{% include '@SonataAdmin/CRUD/Association/edit_many_to_one.html.twig' %}
{% endblock %}
{% block sonata_admin_orm_one_to_many_widget %}
{% include '@SonataAdmin/CRUD/Association/edit_one_to_many.html.twig' %}
{% endblock %}
{% block sonata_type_model_widget %}
{#
This is not the best way to do if
TODO : improve this part
#}
{#model {{ sonata_admin.field_description.mappingtype }}#}
{% if sonata_admin.field_description is empty %}
{{ block('choice_widget') }}
{% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::ONE_TO_ONE') %}
{{ block('sonata_admin_orm_one_to_one_widget') }}
{% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::MANY_TO_ONE') %}
{{ block('sonata_admin_orm_many_to_one_widget') }}
{% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::MANY_TO_MANY') %}
{{ block('sonata_admin_orm_many_to_many_widget') }}
{% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::ONE_TO_MANY') %}
{{ block('sonata_admin_orm_one_to_many_widget') }}
{% else %}
{#INVALID MODE : {{ id }}#}
{{ block('choice_widget') }}
{% endif %}
{% endblock %}
{% block sonata_type_model_list_widget %}
<div id=\"field_container_{{ id }}\" class=\"field-container\">
<span id=\"field_widget_{{ id }}\" class=\"field-short-description\">
{% if sonata_admin.field_description.associationadmin.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 id=\"field_actions_{{ id }}\" class=\"field-actions\">
<span class=\"btn-group\">
{% if sonata_admin.field_description.associationadmin.hasroute('list') and sonata_admin.field_description.associationadmin.isGranted('LIST') and btn_list %}
<a href=\"{{ sonata_admin.field_description.associationadmin.generateUrl('list') }}\"
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 sonata_admin.field_description.associationadmin.hasroute('create')
and sonata_admin.field_description.associationadmin.isGranted('CREATE')
and btn_add
%}
<a href=\"{{ sonata_admin.field_description.associationadmin.generateUrl('create') }}\"
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 %}
{% if sonata_admin.field_description.associationadmin.hasroute('edit')
and sonata_admin.field_description.associationadmin.isGranted('EDIT')
and btn_edit
%}
<a href=\"{{ sonata_admin.value == null ? '' : sonata_admin.field_description.associationadmin.generateUrl('edit', {
'id' : sonata_admin.field_description.associationadmin.normalizedIdentifier(sonata_admin.value)})
}}\"
onclick=\"return start_field_dialog_form_edit_{{ id }}(this);\"
class=\"btn btn-warning btn-sm sonata-ba-action {% if sonata_admin.value == null %}hidden{% endif %}\"
title=\"{{ btn_edit|trans({}, btn_catalogue) }}\"
>
<i class=\"fa fa-pencil\"></i>
{{ btn_edit|trans({}, btn_catalogue) }}
</a>
{% endif %}
</span>
<span class=\"btn-group\">
{% if sonata_admin.field_description.associationadmin.hasRoute('delete') and sonata_admin.field_description.associationadmin.isGranted('DELETE') and 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 %}
</span>
</span>
<span style=\"display: none\" >
{# Hidden text input cannot be required, because browser will throw error \"An invalid form control with name='' is not focusable\" #}
{{ form_widget(form, {'required':false}) }}
</span>
{{ block('sonata_help') }}
<div class=\"modal fade\" id=\"field_dialog_{{ id }}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-lg\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>
<h4 class=\"modal-title\"></h4>
</div>
<div class=\"modal-body\">
</div>
</div>
</div>
</div>
</div>
{% include '@SonataAdmin/CRUD/Association/edit_many_script.html.twig' %}
{% endblock %}
{% block sonata_type_admin_widget %}
{#admin {{ sonata_admin.field_description.mappingtype }}#}
{% if sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::ONE_TO_ONE') %}
{{ block('sonata_admin_orm_one_to_one_widget') }}
{% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::MANY_TO_ONE') %}
{{ block('sonata_admin_orm_many_to_one_widget') }}
{% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::MANY_TO_MANY') %}
{{ block('sonata_admin_orm_many_to_many_widget') }}
{% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::ONE_TO_MANY') %}
{{ block('sonata_admin_orm_one_to_many_widget') }}
{% else %}
INVALID MODE : {{ id }}
{% endif %}
{% endblock %}
{% block sonata_type_collection_widget %}
{% if sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::ONE_TO_MANY') %}
{{ block('sonata_admin_orm_one_to_many_widget') }}
{% elseif sonata_admin.field_description.mappingtype == constant('Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo::MANY_TO_MANY') %}
{{ block('sonata_admin_orm_many_to_many_widget') }}
{% else %}
INVALID MODE : {{ id }} - type : CollectionType - mapping : {{ sonata_admin.field_description.mappingtype }}
{% endif %}
{% endblock %}
", "SonataDoctrineORMAdminBundle:Form:form_admin_fields.html.twig", "/var/www/radmin.tehnik.tech/vendor/sonata-project/doctrine-orm-admin-bundle/src/Resources/views/Form/form_admin_fields.html.twig");
}
}