<?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;
/* @FOSSyliusImportExportPlugin/Crud/import.html.twig */
class __TwigTemplate_79264dada62a8e54d98f9ea29c83eb71 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSSyliusImportExportPlugin/Crud/import.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSSyliusImportExportPlugin/Crud/import.html.twig"));
// line 1
$context["resource"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 1, $this->source); })()), "settings", [], "any", false, false, false, 1), "resources", [], "any", false, false, false, 1), "metadata", [], "any", false, false, false, 1), "name", [], "any", false, false, false, 1);
// line 2
if (((isset($context["resource"]) || array_key_exists("resource", $context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.', 2, $this->source); })()) == "customer")) {
// line 3
echo " ";
$context["resource"] = "app_customer";
} elseif (( // line 4
(isset($context["resource"]) || array_key_exists("resource", $context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.', 4, $this->source); })()) == "payment_method")) {
// line 5
echo " ";
$context["resource"] = "app_payment_method";
} elseif (((( // line 6
(isset($context["resource"]) || array_key_exists("resource", $context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.', 6, $this->source); })()) == "country") || ((isset($context["resource"]) || array_key_exists("resource", $context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.', 6, $this->source); })()) == "tax_category")) || ((isset($context["resource"]) || array_key_exists("resource", $context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.', 6, $this->source); })()) == "customer_group"))) {
// line 7
echo " ";
$context["resource"] = null;
}
// line 9
echo "<div class=\"ui hidden divider\"></div>
";
// line 10
if ((isset($context["resource"]) || array_key_exists("resource", $context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.', 10, $this->source); })())) {
// line 11
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("sylius.controller.import_data:importFormAction", ["resource" => // line 13
(isset($context["resource"]) || array_key_exists("resource", $context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.', 13, $this->source); })())]));
// line 14
echo "
";
}
// line 16
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["block"]) || array_key_exists("block", $context) ? $context["block"] : (function () { throw new RuntimeError('Variable "block" does not exist.', 16, $this->source); })()), "settings", [], "any", false, false, false, 16), "resources", [], "any", false, false, false, 16), "metadata", [], "any", false, false, false, 16), "name", [], "any", false, false, false, 16) == "product")) {
// line 17
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("sylius.controller.import_data:importFormAction", ["resource" => "app_product_variant"]));
// line 20
echo "
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@FOSSyliusImportExportPlugin/Crud/import.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 79 => 20, 76 => 17, 74 => 16, 70 => 14, 68 => 13, 66 => 11, 64 => 10, 61 => 9, 57 => 7, 55 => 6, 52 => 5, 50 => 4, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set resource = block.settings.resources.metadata.name %}
{% if resource == \"customer\" %}
{% set resource = \"app_customer\" %}
{% elseif resource == \"payment_method\" %}
{% set resource = \"app_payment_method\" %}
{% elseif resource == \"country\" or resource == \"tax_category\" or resource == \"customer_group\" %}
{% set resource = null %}
{% endif %}
<div class=\"ui hidden divider\"></div>
{% if resource %}
{{ render(controller(
'sylius.controller.import_data:importFormAction',
{'resource': resource}
)) }}
{% endif %}
{% if block.settings.resources.metadata.name == \"product\" %}
{{ render(controller(
'sylius.controller.import_data:importFormAction',
{'resource': \"app_product_variant\"}
)) }}
{% endif %}
", "@FOSSyliusImportExportPlugin/Crud/import.html.twig", "/var/www/html/templates/bundles/FOSSyliusImportExportPlugin/Crud/import.html.twig");
}
}