var/cache/dev/twig/2e/2e15f623388a545c2ef15b999941274b.php line 43

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @admin/Product/product.twig */
  14. class __TwigTemplate_ae1beee2f294d81023461dab288fe7d5 extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'sub_title' => [$this'block_sub_title'],
  25.             'javascript' => [$this'block_javascript'],
  26.             'main' => [$this'block_main'],
  27.         ];
  28.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  29.         $this->checkSecurity();
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 11
  34.         return "@admin/default_frame.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@admin/Product/product.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@admin/Product/product.twig"));
  43.         // line 13
  44.         $context["menus"] = [=> "product"=> "product_edit"];
  45.         // line 18
  46.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'18$this->source); })()), [=> "@admin/Form/bootstrap_4_horizontal_layout.html.twig"], true);
  47.         // line 11
  48.         $this->parent $this->loadTemplate("@admin/default_frame.twig""@admin/Product/product.twig"11);
  49.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  50.         
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52.         
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  54.     }
  55.     // line 15
  56.     public function block_title($context, array $blocks = [])
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  63.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_registration"), "html"nulltrue);
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.     }
  69.     // line 16
  70.     public function block_sub_title($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sub_title"));
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sub_title"));
  77.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_management"), "html"nulltrue);
  78.         
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  80.         
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  82.     }
  83.     // line 20
  84.     public function block_javascript($context, array $blocks = [])
  85.     {
  86.         $macros $this->macros;
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  91.         // line 21
  92.         echo "    <script>
  93.         \$(document).on('drop dragover', function(e) {
  94.             e.preventDefault();
  95.         });
  96.         \$(function() {
  97.             ";
  98.         // line 27
  99.         if (((isset($context["has_class"]) || array_key_exists("has_class"$context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.'27$this->source); })()) == false)) {
  100.             // line 28
  101.             echo "            if (\$(\"#";
  102.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'28$this->source); })()), "class", [], "any"falsefalsetrue28), "stock_unlimited", [], "any"falsefalsetrue28), "vars", [], "any"falsefalsetrue28), "id", [], "any"falsefalsetrue28), 28$this->source), "html"nulltrue);
  103.             echo "\").prop(\"checked\")) {
  104.                 \$(\"#";
  105.             // line 29
  106.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'29$this->source); })()), "class", [], "any"falsefalsetrue29), "stock", [], "any"falsefalsetrue29), "vars", [], "any"falsefalsetrue29), "id", [], "any"falsefalsetrue29), 29$this->source), "html"nulltrue);
  107.             echo "\").attr(\"disabled\", \"disabled\").val('');
  108.             } else {
  109.                 \$(\"#";
  110.             // line 31
  111.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'31$this->source); })()), "class", [], "any"falsefalsetrue31), "stock", [], "any"falsefalsetrue31), "vars", [], "any"falsefalsetrue31), "id", [], "any"falsefalsetrue31), 31$this->source), "html"nulltrue);
  112.             echo "\").removeAttr(\"disabled\");
  113.             }
  114.             \$(\"#";
  115.             // line 33
  116.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'33$this->source); })()), "class", [], "any"falsefalsetrue33), "stock_unlimited", [], "any"falsefalsetrue33), "vars", [], "any"falsefalsetrue33), "id", [], "any"falsefalsetrue33), 33$this->source), "html"nulltrue);
  117.             echo "\").on(\"click change\", function() {
  118.                 if (\$(this).prop(\"checked\")) {
  119.                     \$(\"#";
  120.             // line 35
  121.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'35$this->source); })()), "class", [], "any"falsefalsetrue35), "stock", [], "any"falsefalsetrue35), "vars", [], "any"falsefalsetrue35), "id", [], "any"falsefalsetrue35), 35$this->source), "html"nulltrue);
  122.             echo "\").attr(\"disabled\", \"disabled\").val('');
  123.                 } else {
  124.                     \$(\"#";
  125.             // line 37
  126.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'37$this->source); })()), "class", [], "any"falsefalsetrue37), "stock", [], "any"falsefalsetrue37), "vars", [], "any"falsefalsetrue37), "id", [], "any"falsefalsetrue37), 37$this->source), "html"nulltrue);
  127.             echo "\").removeAttr(\"disabled\");
  128.                 }
  129.             });
  130.             ";
  131.         }
  132.         // line 41
  133.         echo "
  134.             // ファイルアップロード
  135.             // see https://pqina.nl/filepond/
  136.             var inputFileElement = document.querySelector('input[type=file]');
  137.             
  138.             FilePond.setOptions({
  139.                 server: {
  140.                     process: {
  141.                         url: '";
  142.         // line 49
  143.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_image_process");
  144.         echo "',
  145.                         headers: {
  146.                             'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content'),
  147.                             'X-Requested-With': 'XMLHttpRequest'
  148.                         }
  149.                     },
  150.                     load: {
  151.                         url: '";
  152.         // line 56
  153.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_image_load");
  154.         echo "?source=',
  155.                         headers: {
  156.                             'X-Requested-With': 'XMLHttpRequest'
  157.                         }
  158.                     },
  159.                     revert: {
  160.                         url: '";
  161.         // line 62
  162.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_image_revert");
  163.         echo "',
  164.                         headers: {
  165.                             'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content'),
  166.                             'X-Requested-With': 'XMLHttpRequest'
  167.                         }
  168.                     }
  169.                 }
  170.             });
  171.             var pond = FilePond.create(inputFileElement, {
  172.                 allowFileTypeValidation: true,
  173.                 acceptedFileTypes: [
  174.                     'image/gif',
  175.                     'image/png',
  176.                     'image/jpeg'
  177.                 ],
  178.                 allowFileSizeValidation: true,
  179.                 maxFileSize: 10000000,
  180.                 maxFiles: 10,
  181.                 allowBrowse: true,
  182.                 allowDrop: true,
  183.                 allowReorder: true,
  184.                 labelIdle: '<i class=\"fa fa-cloud-upload fa-3x text-ec-lightGray mx-3 align-middle\" aria-hidden=\"true\" style=\"font-size: 40px\"></i>";
  185.         // line 83
  186.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.drag_and_drop_image_description"), "html"nulltrue);
  187.         echo "<span class=\"filepond--label-action\">";
  188.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.file_select"), "html"nulltrue);
  189.         echo "</span>',
  190.                 styleItemPanelAspectRatio: 0.5625,
  191.                 // 保存されている画像のロード
  192.                 files: [
  193.                     ";
  194.         // line 87
  195.         $context['_parent'] = $context;
  196.         $context['_seq'] = twig_ensure_traversable(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.'87$this->source); })()), "images", [], "any"falsefalsetrue87));
  197.         foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  198.             // line 88
  199.             echo "                    {
  200.                         source: '";
  201.             // line 89
  202.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "vars", [], "any"falsefalsetrue89), "value", [], "any"falsefalsetrue89), 89$this->source), "html"nulltrue);
  203.             echo "',
  204.                         options: {
  205.                             type: 'local'
  206.                         }
  207.                     },
  208.                     ";
  209.         }
  210.         $_parent $context['_parent'];
  211.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  212.         $context array_intersect_key($context$_parent) + $_parent;
  213.         // line 95
  214.         echo "                    // 追加してすぐの画像のロード. バリデーションエラーの場合など.
  215.                     ";
  216.         // line 96
  217.         $context['_parent'] = $context;
  218.         $context['_seq'] = twig_ensure_traversable(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.'96$this->source); })()), "add_images", [], "any"falsefalsetrue96));
  219.         foreach ($context['_seq'] as $context["_key"] => $context["add_image"]) {
  220.             // line 97
  221.             echo "                    {
  222.                         source: '";
  223.             // line 98
  224.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["add_image"], "vars", [], "any"falsefalsetrue98), "value", [], "any"falsefalsetrue98), 98$this->source), "html"nulltrue);
  225.             echo "',
  226.                         options: {
  227.                             type: 'local'
  228.                         }
  229.                     },
  230.                     ";
  231.         }
  232.         $_parent $context['_parent'];
  233.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['add_image'], $context['_parent'], $context['loop']);
  234.         $context array_intersect_key($context$_parent) + $_parent;
  235.         // line 104
  236.         echo "                ]
  237.             });
  238.             // 画像が追加されたら add_images にファイル名を追加する
  239.             var proto_add = '";
  240.         // line 107
  241.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'107$this->source); })()), "add_images", [], "any"falsefalsetrue107), "vars", [], "any"falsefalsetrue107), "prototype", [], "any"falsefalsetrue107), 107$this->source), 'widget');
  242.         echo "';
  243.             pond.on('processfile', function(error, file) {
  244.                 if (error) {
  245.                     console.log(error);
  246.                 } else {
  247.                     \$('#upload-zone').append(
  248.                         \$(proto_add.replace(/__name__/g, file.id))
  249.                             .val(file.serverId)
  250.                             .addClass('add_images')
  251.                     );
  252.                 }
  253.             });
  254.             // 画像が削除されたら delete_images にファイル名を追加する
  255.             var proto_del = '";
  256.         // line 120
  257.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'120$this->source); })()), "delete_images", [], "any"falsefalsetrue120), "vars", [], "any"falsefalsetrue120), "prototype", [], "any"falsefalsetrue120), 120$this->source), 'widget');
  258.         echo "';
  259.             pond.on('removefile', function(error, file) {
  260.                 if (error) {
  261.                     console.log(error);
  262.                 } else {
  263.                     // file.serverId にはアップロードしたファイル名が格納される.
  264.                     if (file.serverId) {
  265.                         \$('#upload-zone').append(
  266.                             \$(proto_del.replace(/__name__/g, file.id))
  267.                                 .val(file.serverId)
  268.                                 .addClass('del_images')
  269.                         );
  270.                     }
  271.                     // 追加してすぐ削除した画像があれば削除する
  272.                     \$('#upload-zone').find('#admin_product_add_images_' + file.id).remove(); // 追加してすぐ削除した画像
  273.                     \$('#upload-zone').find('.add_images[value=\"' + file.filename + '\"]').remove(); // 追加後, バリデーションエラーが発生した後に削除した画像
  274.                 }
  275.             });
  276.             pond.on('initfile', function() {
  277.                 \$('#product_image_error').hide();
  278.             });
  279.             pond.on('error', function(error, file) {
  280.                 var message = '";
  281.         // line 142
  282.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.upload_error"), "html"nulltrue);
  283.         echo "';
  284.                 if (error.main !== undefined) {
  285.                     message = `\${error.main}: \${error.sub}`;
  286.                 }
  287.                 \$('#product_image_error')
  288.                     .show()
  289.                     .find('.form-error-message').text(message);
  290.                 // エラーメッセージが表示されてからプレビューエリアのエラーメッセージを非表示にする
  291.                 setTimeout(function() {
  292.                     \$('.filepond--file-status').hide();
  293.                 }, 300);
  294.             });
  295.             // バリデーションエラーが出た場合に画像を保持するための hidden を追加しておく
  296.             var proto_image = '";
  297.         // line 157
  298.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'157$this->source); })()), "images", [], "any"falsefalsetrue157), "vars", [], "any"falsefalsetrue157), "prototype", [], "any"falsefalsetrue157), 157$this->source), 'widget');
  299.         echo "';
  300.             ";
  301.         // line 158
  302.         $context['_parent'] = $context;
  303.         $context['_seq'] = twig_ensure_traversable(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.'158$this->source); })()), "images", [], "any"falsefalsetrue158));
  304.         $context['loop'] = [
  305.           'parent' => $context['_parent'],
  306.           'index0' => 0,
  307.           'index'  => 1,
  308.           'first'  => true,
  309.         ];
  310.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  311.             $length count($context['_seq']);
  312.             $context['loop']['revindex0'] = $length 1;
  313.             $context['loop']['revindex'] = $length;
  314.             $context['loop']['length'] = $length;
  315.             $context['loop']['last'] = === $length;
  316.         }
  317.         foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  318.             // line 159
  319.             echo "                \$('#upload-zone').append(
  320.                     \$(proto_image.replace(/__name__/g, '";
  321.             // line 160
  322.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsetrue160), 160$this->source), "html"nulltrue);
  323.             echo "'))
  324.                         .val('";
  325.             // line 161
  326.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "vars", [], "any"falsefalsetrue161), "value", [], "any"falsefalsetrue161), 161$this->source), "html"nulltrue);
  327.             echo "')
  328.                         .addClass('images')
  329.                 );
  330.             ";
  331.             ++$context['loop']['index0'];
  332.             ++$context['loop']['index'];
  333.             $context['loop']['first'] = false;
  334.             if (isset($context['loop']['length'])) {
  335.                 --$context['loop']['revindex0'];
  336.                 --$context['loop']['revindex'];
  337.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  338.             }
  339.         }
  340.         $_parent $context['_parent'];
  341.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  342.         $context array_intersect_key($context$_parent) + $_parent;
  343.         // line 165
  344.         echo "            ";
  345.         $context['_parent'] = $context;
  346.         $context['_seq'] = twig_ensure_traversable(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.'165$this->source); })()), "add_images", [], "any"falsefalsetrue165));
  347.         foreach ($context['_seq'] as $context["_key"] => $context["add_image"]) {
  348.             // line 166
  349.             echo "                \$('#upload-zone').append(
  350.                     \$('";
  351.             // line 167
  352.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["add_image"], 167$this->source), 'widget');
  353.             echo "')
  354.                         .val('";
  355.             // line 168
  356.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["add_image"], "vars", [], "any"falsefalsetrue168), "value", [], "any"falsefalsetrue168), 168$this->source), "html"nulltrue);
  357.             echo "')
  358.                         .addClass('add_images')
  359.                 );
  360.             ";
  361.         }
  362.         $_parent $context['_parent'];
  363.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['add_image'], $context['_parent'], $context['loop']);
  364.         $context array_intersect_key($context$_parent) + $_parent;
  365.         // line 172
  366.         echo "            ";
  367.         $context['_parent'] = $context;
  368.         $context['_seq'] = twig_ensure_traversable(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.'172$this->source); })()), "delete_images", [], "any"falsefalsetrue172));
  369.         foreach ($context['_seq'] as $context["_key"] => $context["delete_image"]) {
  370.             // line 173
  371.             echo "                \$('#upload-zone').append(
  372.                     \$('";
  373.             // line 174
  374.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["delete_image"], 174$this->source), 'widget');
  375.             echo "').addClass('del_images')
  376.                 );
  377.             ";
  378.         }
  379.         $_parent $context['_parent'];
  380.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['delete_image'], $context['_parent'], $context['loop']);
  381.         $context array_intersect_key($context$_parent) + $_parent;
  382.         // line 177
  383.         echo "
  384.             // タグ管理
  385.             var mainTags = \$('#allTags');
  386.             var adminProductTag = \$('#admin_product_Tag');
  387.             \$('input', adminProductTag).each(function() {
  388.                 if (\$(this).is(':checked')) {
  389.                     \$('button[data-tag-id=\"' + \$(this).val() + '\"]').removeClass('btn-outline-secondary').addClass('btn-outline-primary');
  390.                 }
  391.             });
  392.             mainTags.on('click', 'button.btn', function() {
  393.                 var btnTag = \$(this);
  394.                 var tagId = btnTag.data('tag-id');
  395.                 if (btnTag.hasClass('btn-outline-primary')) {
  396.                     btnTag.removeClass('btn-outline-primary').addClass('btn-outline-secondary');
  397.                     \$('input[value=\"' + tagId + '\"]', mainTags).prop('checked', false);
  398.                 } else {
  399.                     btnTag.removeClass('btn-outline-secondary').addClass('btn-outline-primary');
  400.                     \$('input[value=\"' + tagId + '\"]', mainTags).prop('checked', true);
  401.                 }
  402.             });
  403.             var confirmFormChange = function(form, target, modal) {
  404.                 var returnLink = form.find('input[type=\"hidden\"][name*=\"return_link\"]'),
  405.                     saveBtn = modal.find('a[data-action=\"save\"]'),
  406.                     cancelBtn = modal.find('a[data-action=\"cancel\"]');
  407.                 modal.on('hidden.bs.modal', function() {
  408.                     returnLink.val('');
  409.                 });
  410.                 saveBtn.on('click', function() {
  411.                     returnLink.val(\$(this).data('return-link'));
  412.                     \$(this).addClass('disabled');
  413.                     form.submit();
  414.                 });
  415.                 target.on('click', function() {
  416.                     modal.find('.modal-body .screen-name').text(\$(this).attr('title'));
  417.                     modal.modal('show');
  418.                     saveBtn.data('return-link', \$(this).attr('href'));
  419.                     cancelBtn.attr('href', \$(this).attr('href'));
  420.                     return false;
  421.                 });
  422.             };
  423.             confirmFormChange(\$('#form1'), \$('a[data-action=\"confirm\"]'), \$('#confirmFormChangeModal'))
  424.         });
  425.         // searchWordの実行
  426.         \$('#search-category').on('input', function () {
  427.             searchWord(\$(this).val(), \$('.category-li'));
  428.         });
  429.     </script>
  430. ";
  431.         
  432.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  433.         
  434.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  435.     }
  436.     // line 228
  437.     public function block_main($context, array $blocks = [])
  438.     {
  439.         $macros $this->macros;
  440.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  441.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  442.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  443.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  444.         // line 229
  445.         echo "    <!-- 移動確認モーダル-->
  446.     <div class=\"modal fade\" id=\"confirmFormChangeModal\" tabindex=\"-1\" role=\"dialog\"
  447.          aria-labelledby=\"confirmFormChangeModal\" aria-hidden=\"true\">
  448.         <div class=\"modal-dialog\" role=\"document\">
  449.             <div class=\"modal-content\">
  450.                 <div class=\"modal-header\">
  451.                     <h5 class=\"modal-title\">";
  452.         // line 235
  453.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_title"), "html"nulltrue);
  454.         echo "</h5>
  455.                     <button class=\"btn-close\" type=\"button\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
  456.                     </button>
  457.                 </div>
  458.                 <div class=\"modal-body\">
  459.                     <p class=\"screen-name\"></p>
  460.                 </div>
  461.                 <div class=\"modal-footer\">
  462.                     <a class=\"btn btn-ec-conversion\" data-action=\"save\" href=\"javascript:void(0)\">
  463.                         ";
  464.         // line 245
  465.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_save_and_move"), "html"nulltrue);
  466.         echo "
  467.                     </a>
  468.                     <a class=\"btn btn-ec-sub\" data-action=\"cancel\" href=\"javascript:void(0)\">
  469.                         ";
  470.         // line 248
  471.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_move_only"), "html"nulltrue);
  472.         echo "
  473.                     </a>
  474.                 </div>
  475.             </div>
  476.         </div>
  477.     </div>
  478.     <form role=\"form\" name=\"form1\" id=\"form1\" method=\"post\" action=\"\" novalidate enctype=\"multipart/form-data\">
  479.         ";
  480.         // line 255
  481.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'255$this->source); })()), "_token", [], "any"falsefalsetrue255), 255$this->source), 'widget');
  482.         echo "
  483.         ";
  484.         // line 256
  485.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'256$this->source); })()), "return_link", [], "any"falsefalsetrue256), 256$this->source), 'widget');
  486.         echo "
  487.         <div class=\"c-contentsArea__cols\">
  488.             <div class=\"c-contentsArea__primaryCol\">
  489.                 <div class=\"c-primaryCol\">
  490.                     <div class=\"card rounded border-0 mb-4\">
  491.                         <div class=\"card-header\">
  492.                             <div class=\"row\">
  493.                                 <div class=\"col-8\">
  494.                                     <div class=\"d-inline-block\">
  495.                                     <span class=\"card-title\">
  496.                                         ";
  497.         // line 266
  498.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product__card_title"), "html"nulltrue);
  499.         echo "
  500.                                     </span>
  501.                                     </div>
  502.                                 </div>
  503.                                 <div class=\"col-4 text-end\">
  504.                                     <a data-bs-toggle=\"collapse\" href=\"#basicConfig\" aria-expanded=\"false\"
  505.                                        aria-controls=\"basicConfig\">
  506.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  507.                                     </a>
  508.                                 </div>
  509.                             </div>
  510.                         </div>
  511.                         <div class=\"collapse show ec-cardCollapse\" id=\"basicConfig\">
  512.                             <div class=\"card-body\">
  513.                                 ";
  514.         // line 280
  515.         if (twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'280$this->source); })()), "id", [], "any"falsefalsetrue280)) {
  516.             // line 281
  517.             echo "                                    <div class=\"row\">
  518.                                         <div class=\"col-3\">
  519.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"";
  520.             // line 283
  521.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.product_id"), "html"nulltrue);
  522.             echo "\">
  523.                                                 <span>";
  524.             // line 284
  525.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_id"), "html"nulltrue);
  526.             echo "</span>
  527.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  528.                                             </div>
  529.                                         </div>
  530.                                         <div class=\"col\">
  531.                                             <p>";
  532.             // line 289
  533.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'289$this->source); })()), "id", [], "any"falsefalsetrue289), 289$this->source), "html"nulltrue);
  534.             echo "</p>
  535.                                         </div>
  536.                                     </div>
  537.                                 ";
  538.         }
  539.         // line 293
  540.         echo "                                <div class=\"row\">
  541.                                     <div class=\"col-3\">
  542.                                         <div class=\"d-inline-block\">
  543.                                             <span>";
  544.         // line 296
  545.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.name"), "html"nulltrue);
  546.         echo "</span>
  547.                                             <span class=\"badge bg-primary ms-1\">
  548.                                                 ";
  549.         // line 298
  550.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html"nulltrue);
  551.         echo "
  552.                                             </span>
  553.                                         </div>
  554.                                     </div>
  555.                                     <div class=\"col mb-2\">
  556.                                         ";
  557.         // line 303
  558.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'303$this->source); })()), "name", [], "any"falsefalsetrue303), 303$this->source), 'widget');
  559.         echo "
  560.                                         ";
  561.         // line 304
  562.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'304$this->source); })()), "name", [], "any"falsefalsetrue304), 304$this->source), 'errors');
  563.         echo "
  564.                                     </div>
  565.                                 </div>
  566.                                 ";
  567.         // line 307
  568.         if (((isset($context["has_class"]) || array_key_exists("has_class"$context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.'307$this->source); })()) == false)) {
  569.             // line 308
  570.             echo "                                    <div class=\"row\" style=\"display:none;\">
  571.                                         <div class=\"col-3\">
  572.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"";
  573.             // line 310
  574.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.sale_type"), "html"nulltrue);
  575.             echo "\">
  576.                                                 <span>";
  577.             // line 311
  578.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.sale_type"), "html"nulltrue);
  579.             echo "</span>
  580.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  581.                                                 <span class=\"badge bg-primary ms-1\">
  582.                                                     ";
  583.             // line 314
  584.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html"nulltrue);
  585.             echo "
  586.                                                 </span>
  587.                                             </div>
  588.                                         </div>
  589.                                         <div class=\"col mb-2\">
  590.                                             ";
  591.             // line 319
  592.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'319$this->source); })()), "class", [], "any"falsefalsetrue319), "sale_type", [], "any"falsefalsetrue319), 319$this->source), 'widget', ["type" => "hidden""value" => "1"]);
  593.             // line 322
  594.             echo "
  595.                                             ";
  596.             // line 323
  597.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'323$this->source); })()), "class", [], "any"falsefalsetrue323), "sale_type", [], "any"falsefalsetrue323), 323$this->source), 'errors');
  598.             echo "
  599.                                         </div>
  600.                                     </div>
  601.                                 ";
  602.         }
  603.         // line 327
  604.         echo "                                <div class=\"row\">
  605.                                     <div class=\"col-3\">
  606.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"";
  607.         // line 329
  608.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.image"), "html"nulltrue);
  609.         echo "\">
  610.                                             <span>";
  611.         // line 330
  612.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.image"), "html"nulltrue);
  613.         echo "</span>
  614.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  615.                                             <br>";
  616.         // line 332
  617.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.image_size"), "html"nulltrue);
  618.         echo "
  619.                                         </div>
  620.                                     </div>
  621.                                     <div class=\"col mb-2\">
  622.                                         <p id=\"message\"></p>
  623.                                         <div id=\"upload-zone\" class=\"rounded\">
  624.                                             ";
  625.         // line 338
  626.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'338$this->source); })()), "product_image", [], "any"falsefalsetrue338), 338$this->source), 'widget', ["attr" => ["style" => "display:none;"]]);
  627.         echo "
  628.                                             ";
  629.         // line 339
  630.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'339$this->source); })()), "product_image", [], "any"falsefalsetrue339), 339$this->source), 'errors');
  631.         echo "
  632.                                         </div><!-- /#upload-zone -->
  633.                                         <span class=\"invalid-feedback\" id=\"product_image_error\" style=\"display: none\">
  634.                                             <span class=\"d-block\">
  635.                                                 <span class=\"form-error-icon badge bg-danger text-uppercase\">";
  636.         // line 343
  637.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Error", [], "validators"), "html"nulltrue);
  638.         echo "</span>
  639.                                                 <span class=\"form-error-message\"></span>
  640.                                             </span>
  641.                                         </span>
  642.                                     </div>
  643.                                 </div>
  644.                                 <div class=\"row\">
  645.                                     <div class=\"col-3\">
  646.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  647.                                              title=\"";
  648.         // line 352
  649.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.description_detail"), "html"nulltrue);
  650.         echo "\">
  651.                                             <span>";
  652.         // line 353
  653.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.description_detail"), "html"nulltrue);
  654.         echo "</span>
  655.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  656.                                         </div>
  657.                                     </div>
  658.                                     <div class=\"col\">
  659.                                         ";
  660.         // line 358
  661.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'358$this->source); })()), "description_detail", [], "any"falsefalsetrue358), 358$this->source), 'widget', ["attr" => ["rows" => "8"]]);
  662.         echo "
  663.                                         ";
  664.         // line 359
  665.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'359$this->source); })()), "description_detail", [], "any"falsefalsetrue359), 359$this->source), 'errors');
  666.         echo "
  667.                                         <div class=\"d-inline-block mb-2\" data-bs-toggle=\"collapse\" href=\"#addComment\"
  668.                                              role=\"button\" aria-expanded=\"false\" aria-controls=\"addComment\">
  669.                                             <a>
  670.                                                 <i class=\"fa fa-plus-square-o fw-bold me-1\"></i>
  671.                                                 <span class=\"fw-bold text-ec-black\">
  672.                                                     ";
  673.         // line 365
  674.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.description_list__add"), "html"nulltrue);
  675.         echo "
  676.                                                 </span>
  677.                                             </a>
  678.                                         </div>
  679.                                     </div>
  680.                                 </div>
  681.                                 <div class=\"collapse ec-collapse\" id=\"addComment\">
  682.                                     <div class=\"row bg-ec-formGray pt-3 mb-2\">
  683.                                         <div class=\"col-3\">
  684.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  685.                                                  title=\"";
  686.         // line 375
  687.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.description_list"), "html"nulltrue);
  688.         echo "\">
  689.                                                 <span>";
  690.         // line 376
  691.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.description_list"), "html"nulltrue);
  692.         echo "</span>
  693.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  694.                                             </div>
  695.                                         </div>
  696.                                         <div class=\"col mb-4\">
  697.                                             <div>
  698.                                                 ";
  699.         // line 382
  700.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'382$this->source); })()), "description_list", [], "any"falsefalsetrue382), 382$this->source), 'widget', ["attr" => ["rows" => "4"]]);
  701.         echo "
  702.                                                 ";
  703.         // line 383
  704.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'383$this->source); })()), "description_list", [], "any"falsefalsetrue383), 383$this->source), 'errors');
  705.         echo "
  706.                                             </div>
  707.                                         </div>
  708.                                     </div>
  709.                                 </div>
  710.                                 ";
  711.         // line 388
  712.         if (((isset($context["has_class"]) || array_key_exists("has_class"$context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.'388$this->source); })()) == false)) {
  713.             // line 389
  714.             echo "                                    <div class=\"row\">
  715.                                         <div class=\"col-3\">
  716.                                             <div class=\"d-inline-block\">
  717.                                                 <span>";
  718.             // line 392
  719.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.sale_price"), "html"nulltrue);
  720.             echo "</span>
  721.                                                 <span class=\"badge bg-primary ms-1\">
  722.                                                     ";
  723.             // line 394
  724.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html"nulltrue);
  725.             echo "
  726.                                                 </span>
  727.                                             </div>
  728.                                         </div>
  729.                                         <div class=\"col mb-2\">
  730.                                             <div>
  731.                                                 ";
  732.             // line 400
  733.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'400$this->source); })()), "class", [], "any"falsefalsetrue400), "price02", [], "any"falsefalsetrue400), 400$this->source), 'widget');
  734.             echo "
  735.                                                 ";
  736.             // line 401
  737.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'401$this->source); })()), "class", [], "any"falsefalsetrue401), "price02", [], "any"falsefalsetrue401), 401$this->source), 'errors');
  738.             echo "
  739.                                             </div>
  740.                                         </div>
  741.                                     </div>
  742.                                     <div class=\"row\">
  743.                                         <div class=\"col-3\">
  744.                                             <div class=\"d-inline-block\">
  745.                                                 <span>";
  746.             // line 408
  747.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.retail_price"), "html"nulltrue);
  748.             echo "</span>
  749.                                                 <span class=\"badge bg-primary ms-1\">
  750.                                                     ";
  751.             // line 410
  752.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html"nulltrue);
  753.             echo "
  754.                                                 </span>
  755.                                             </div>
  756.                                         </div>
  757.                                         <div class=\"col mb-2\">
  758.                                             <div>
  759.                                                 ";
  760.             // line 416
  761.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'416$this->source); })()), "class", [], "any"falsefalsetrue416), "retailPrice", [], "any"falsefalsetrue416), 416$this->source), 'widget');
  762.             echo "
  763.                                                 ";
  764.             // line 417
  765.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'417$this->source); })()), "class", [], "any"falsefalsetrue417), "retailPrice", [], "any"falsefalsetrue417), 417$this->source), 'errors');
  766.             echo "
  767.                                             </div>
  768.                                         </div>
  769.                                     </div>
  770.                                     <div class=\"row\">
  771.                                         <div class=\"col-3\">
  772.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  773.                                                  title=\"";
  774.             // line 424
  775.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.normal_price"), "html"nulltrue);
  776.             echo "\">
  777.                                                 <span>";
  778.             // line 425
  779.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.normal_price"), "html"nulltrue);
  780.             echo "</span>
  781.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  782.                                             </div>
  783.                                         </div>
  784.                                         <div class=\"col mb-2\">
  785.                                             <div>
  786.                                                 ";
  787.             // line 431
  788.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'431$this->source); })()), "class", [], "any"falsefalsetrue431), "price01", [], "any"falsefalsetrue431), 431$this->source), 'widget');
  789.             echo "
  790.                                                 ";
  791.             // line 432
  792.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'432$this->source); })()), "class", [], "any"falsefalsetrue432), "price01", [], "any"falsefalsetrue432), 432$this->source), 'errors');
  793.             echo "
  794.                                             </div>
  795.                                         </div>
  796.                                     </div>
  797.                                     <div class=\"row\">
  798.                                         <div class=\"col-3\">
  799.                                             <div class=\"d-inline-block\">
  800.                                                 <span>";
  801.             // line 439
  802.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.stock"), "html"nulltrue);
  803.             echo "</span>
  804.                                                 <span class=\"badge bg-primary ms-1\">
  805.                                                     ";
  806.             // line 441
  807.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html"nulltrue);
  808.             echo "
  809.                                                 </span>
  810.                                             </div>
  811.                                         </div>
  812.                                         <div class=\"col\">
  813.                                             <div>
  814.                                                 ";
  815.             // line 447
  816.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'447$this->source); })()), "class", [], "any"falsefalsetrue447), "stock", [], "any"falsefalsetrue447), 447$this->source), 'widget');
  817.             echo "
  818.                                                 ";
  819.             // line 448
  820.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'448$this->source); })()), "class", [], "any"falsefalsetrue448), "stock", [], "any"falsefalsetrue448), 448$this->source), 'errors');
  821.             echo "
  822.                                                 ";
  823.             // line 450
  824.             echo "                                                ";
  825.             // line 451
  826.             echo "                                                ";
  827.             // line 452
  828.             echo "                                                ";
  829.             // line 453
  830.             echo "                                                ";
  831.             // line 454
  832.             echo "                                                ";
  833.             // line 455
  834.             echo "                                                ";
  835.             // line 456
  836.             echo "                                                ";
  837.             // line 457
  838.             echo "                                                ";
  839.             // line 458
  840.             echo "                                                ";
  841.             // line 459
  842.             echo "                                                ";
  843.             // line 460
  844.             echo "                                                ";
  845.             // line 461
  846.             echo "                                                ";
  847.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'461$this->source); })()), "class", [], "any"falsefalsetrue461), "stock_unlimited", [], "any"falsefalsetrue461), 461$this->source), 'widget');
  848.             echo "
  849.                                                 ";
  850.             // line 462
  851.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'462$this->source); })()), "class", [], "any"falsefalsetrue462), "stock_unlimited", [], "any"falsefalsetrue462), 462$this->source), 'errors');
  852.             echo "
  853.                                             </div>
  854.                                         </div>
  855.                                     </div>
  856.                                 ";
  857.         }
  858.         // line 467
  859.         echo "                                <div class=\"row\">
  860.                                     <div class=\"col-3\">
  861.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  862.                                              title=\"";
  863.         // line 470
  864.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.search_word"), "html"nulltrue);
  865.         echo "\">
  866.                                             <span>";
  867.         // line 471
  868.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.search_word"), "html"nulltrue);
  869.         echo "</span>
  870.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  871.                                         </div>
  872.                                     </div>
  873.                                     <div class=\"col mb-2\">
  874.                                         <div>
  875.                                             ";
  876.         // line 477
  877.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'477$this->source); })()), "search_word", [], "any"falsefalsetrue477), 477$this->source), 'widget');
  878.         echo "
  879.                                             ";
  880.         // line 478
  881.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'478$this->source); })()), "search_word", [], "any"falsefalsetrue478), 478$this->source), 'errors');
  882.         echo "
  883.                                         </div>
  884.                                     </div>
  885.                                 </div>
  886.                                 ";
  887.         // line 483
  888.         if (((isset($context["has_class"]) || array_key_exists("has_class"$context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.'483$this->source); })()) == false)) {
  889.             // line 484
  890.             echo "                                    <div class=\"row\">
  891.                                         <div class=\"col-3\">
  892.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  893.                                                  title=\"";
  894.             // line 487
  895.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.product_code"), "html"nulltrue);
  896.             echo "\">
  897.                                                 <span>";
  898.             // line 488
  899.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_code"), "html"nulltrue);
  900.             echo "</span>
  901.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  902.                                             </div>
  903.                                         </div>
  904.                                         <div class=\"col mb-2\">
  905.                                             <div>
  906.                                                 ";
  907.             // line 494
  908.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'494$this->source); })()), "class", [], "any"falsefalsetrue494), "code", [], "any"falsefalsetrue494), 494$this->source), 'widget');
  909.             echo "
  910.                                                 ";
  911.             // line 495
  912.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'495$this->source); })()), "class", [], "any"falsefalsetrue495), "code", [], "any"falsefalsetrue495), 495$this->source), 'errors');
  913.             echo "
  914.                                             </div>
  915.                                         </div>
  916.                                     </div>
  917.                                     <div class=\"row\">
  918.                                         <div class=\"col-3\">
  919.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  920.                                                  title=\"";
  921.             // line 502
  922.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.sale_limit"), "html"nulltrue);
  923.             echo "\">
  924.                                                 <span>";
  925.             // line 503
  926.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.sale_limit"), "html"nulltrue);
  927.             echo "</span>
  928.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  929.                                             </div>
  930.                                         </div>
  931.                                         <div class=\"col mb-2\">
  932.                                             <div>
  933.                                                 ";
  934.             // line 509
  935.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'509$this->source); })()), "class", [], "any"falsefalsetrue509), "sale_limit", [], "any"falsefalsetrue509), 509$this->source), 'widget');
  936.             echo "
  937.                                                 ";
  938.             // line 510
  939.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'510$this->source); })()), "class", [], "any"falsefalsetrue510), "sale_limit", [], "any"falsefalsetrue510), 510$this->source), 'errors');
  940.             echo "
  941.                                             </div>
  942.                                         </div>
  943.                                     </div>
  944.                                     <div class=\"row\">
  945.                                         <div class=\"col-3\">
  946.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  947.                                                  title=\"";
  948.             // line 517
  949.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.delivery_duration"), "html"nulltrue);
  950.             echo "\">
  951.                                                 <span>";
  952.             // line 518
  953.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.delivery_duration"), "html"nulltrue);
  954.             echo "</span>
  955.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  956.                                             </div>
  957.                                         </div>
  958.                                         <div class=\"col mb-2\">
  959.                                             <div>
  960.                                                 ";
  961.             // line 524
  962.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'524$this->source); })()), "class", [], "any"falsefalsetrue524), "delivery_duration", [], "any"falsefalsetrue524), 524$this->source), 'widget');
  963.             echo "
  964.                                                 ";
  965.             // line 525
  966.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'525$this->source); })()), "class", [], "any"falsefalsetrue525), "delivery_duration", [], "any"falsefalsetrue525), 525$this->source), 'errors');
  967.             echo "
  968.                                             </div>
  969.                                         </div>
  970.                                     </div>
  971.                                     <div class=\"row\">
  972.                                         <div class=\"col-3\">
  973.                                             <div class=\"d-inline-block\">
  974.                                                 <span>";
  975.             // line 532
  976.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.reserved_price"), "html"nulltrue);
  977.             echo "</span>
  978.                                             </div>
  979.                                         </div>
  980.                                         <div class=\"col mb-2\">
  981.                                             <div>
  982.                                                 ";
  983.             // line 537
  984.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'537$this->source); })()), "class", [], "any"falsefalsetrue537), "reserved_price", [], "any"falsefalsetrue537), 537$this->source), 'widget');
  985.             echo "
  986.                                                 ";
  987.             // line 538
  988.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'538$this->source); })()), "class", [], "any"falsefalsetrue538), "reserved_price", [], "any"falsefalsetrue538), 538$this->source), 'errors');
  989.             echo "
  990.                                             </div>
  991.                                         </div>
  992.                                     </div>
  993.                                     <div class=\"row\">
  994.                                         <div class=\"col-3\">
  995.                                             <div class=\"d-inline-block\">
  996.                                                 <span>";
  997.             // line 545
  998.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.reserved_retail_price"), "html"nulltrue);
  999.             echo "</span>
  1000.                                             </div>
  1001.                                         </div>
  1002.                                         <div class=\"col mb-2\">
  1003.                                             <div>
  1004.                                                 ";
  1005.             // line 550
  1006.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'550$this->source); })()), "class", [], "any"falsefalsetrue550), "reserved_retail_price", [], "any"falsefalsetrue550), 550$this->source), 'widget');
  1007.             echo "
  1008.                                                 ";
  1009.             // line 551
  1010.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'551$this->source); })()), "class", [], "any"falsefalsetrue551), "reserved_retail_price", [], "any"falsefalsetrue551), 551$this->source), 'errors');
  1011.             echo "
  1012.                                             </div>
  1013.                                         </div>
  1014.                                     </div>
  1015.                                     <div class=\"row\">
  1016.                                         <div class=\"col-3\">
  1017.                                             <div class=\"d-inline-block\">
  1018.                                                 <span>";
  1019.             // line 558
  1020.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.price_update_datetime"), "html"nulltrue);
  1021.             echo "</span>
  1022.                                             </div>
  1023.                                         </div>
  1024.                                         <div class=\"col mb-2\">
  1025.                                             <div>
  1026.                                                 ";
  1027.             // line 563
  1028.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'563$this->source); })()), "class", [], "any"falsefalsetrue563), "price_update_datetime", [], "any"falsefalsetrue563), 563$this->source), 'widget');
  1029.             echo "
  1030.                                                 ";
  1031.             // line 564
  1032.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'564$this->source); })()), "class", [], "any"falsefalsetrue564), "price_update_datetime", [], "any"falsefalsetrue564), 564$this->source), 'errors');
  1033.             echo "
  1034.                                             </div>
  1035.                                         </div>
  1036.                                     </div>
  1037.                                     ";
  1038.             // line 569
  1039.             echo "                                    ";
  1040.             // line 570
  1041.             echo "                                    <div class=\"row\">
  1042.                                         <div class=\"col-3\">
  1043.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  1044.                                                  title=\"";
  1045.             // line 573
  1046.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.vendor"), "html"nulltrue);
  1047.             echo "\">
  1048.                                                 <span>";
  1049.             // line 574
  1050.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.vendor"), "html"nulltrue);
  1051.             echo "</span>
  1052.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  1053.                                             </div>
  1054.                                         </div>
  1055.                                         <div class=\"col mb-2\">
  1056.                                             <div>
  1057.                                                 ";
  1058.             // line 580
  1059.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'580$this->source); })()), "vendor", [], "any"falsefalsetrue580), 580$this->source), 'widget');
  1060.             echo "
  1061.                                                 ";
  1062.             // line 581
  1063.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'581$this->source); })()), "vendor", [], "any"falsefalsetrue581), 581$this->source), 'errors');
  1064.             echo "
  1065.                                             </div>
  1066.                                         </div>
  1067.                                     </div>
  1068.                                     ";
  1069.             // line 588
  1070.             echo "
  1071.                                     ";
  1072.             // line 589
  1073.             if (twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'589$this->source); })()), "option_product_delivery_fee", [], "any"falsefalsetrue589)) {
  1074.                 // line 590
  1075.                 echo "                                        <div class=\"row\">
  1076.                                             <div class=\"col-3\">
  1077.                                                 <div class=\"d-inline-block\">
  1078.                                                     <span>";
  1079.                 // line 593
  1080.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.delivery_fee"), "html"nulltrue);
  1081.                 echo "</span>
  1082.                                                 </div>
  1083.                                             </div>
  1084.                                             <div class=\"col mb-2\">
  1085.                                                 <div>
  1086.                                                     ";
  1087.                 // line 598
  1088.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'598$this->source); })()), "class", [], "any"falsefalsetrue598), "delivery_fee", [], "any"falsefalsetrue598), 598$this->source), 'widget');
  1089.                 echo "
  1090.                                                     ";
  1091.                 // line 599
  1092.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'599$this->source); })()), "class", [], "any"falsefalsetrue599), "delivery_fee", [], "any"falsefalsetrue599), 599$this->source), 'errors');
  1093.                 echo "
  1094.                                                 </div>
  1095.                                             </div>
  1096.                                         </div>
  1097.                                     ";
  1098.             }
  1099.             // line 604
  1100.             echo "                                    ";
  1101.             if (twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'604$this->source); })()), "option_product_tax_rule", [], "any"falsefalsetrue604)) {
  1102.                 // line 605
  1103.                 echo "                                        <div class=\"row\">
  1104.                                             <div class=\"col-3\">
  1105.                                                 <div class=\"d-inline-block\">
  1106.                                                     <span>";
  1107.                 // line 608
  1108.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.tax_rate"), "html"nulltrue);
  1109.                 echo "</span>
  1110.                                                 </div>
  1111.                                             </div>
  1112.                                             <div class=\"col mb-2\">
  1113.                                                 <div>
  1114.                                                     ";
  1115.                 // line 613
  1116.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'613$this->source); })()), "class", [], "any"falsefalsetrue613), "tax_rate", [], "any"falsefalsetrue613), 613$this->source), 'widget');
  1117.                 echo "
  1118.                                                     ";
  1119.                 // line 614
  1120.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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.'614$this->source); })()), "class", [], "any"falsefalsetrue614), "tax_rate", [], "any"falsefalsetrue614), 614$this->source), 'errors');
  1121.                 echo "
  1122.                                                 </div>
  1123.                                             </div>
  1124.                                         </div>
  1125.                                     ";
  1126.             }
  1127.             // line 619
  1128.             echo "                                ";
  1129.         }
  1130.         // line 620
  1131.         echo "
  1132.                                 ";
  1133.         // line 622
  1134.         echo "                                ";
  1135.         $context['_parent'] = $context;
  1136.         $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'622$this->source); })()), function ($__f__) use ($context$macros) { $context["f"] = $__f__; return twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue622), "eccube_form_options", [], "any"falsefalsetrue622), "auto_render", [], "any"falsefalsetrue622); }));
  1137.         foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
  1138.             // line 623
  1139.             echo "                                    ";
  1140.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue623), "eccube_form_options", [], "any"falsefalsetrue623), "form_theme", [], "any"falsefalsetrue623)) {
  1141.                 // line 624
  1142.                 echo "                                        ";
  1143.                 $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme($context["f"], [=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue624), "eccube_form_options", [], "any"falsefalsetrue624), "form_theme", [], "any"falsefalsetrue624)], true);
  1144.                 // line 625
  1145.                 echo "                                        ";
  1146.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 625$this->source), 'row');
  1147.                 echo "
  1148.                                     ";
  1149.             } else {
  1150.                 // line 627
  1151.                 echo "                                        <div class=\"row\">
  1152.                                             <div class=\"col-3\">
  1153.                                                 <span>";
  1154.                 // line 629
  1155.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue629), "label", [], "any"falsefalsetrue629), 629$this->source)), "html"nulltrue);
  1156.                 echo "</span>
  1157.                                             </div>
  1158.                                             <div class=\"col mb-2\">
  1159.                                                 <div>
  1160.                                                     ";
  1161.                 // line 633
  1162.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 633$this->source), 'widget');
  1163.                 echo "
  1164.                                                     ";
  1165.                 // line 634
  1166.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 634$this->source), 'errors');
  1167.                 echo "
  1168.                                                 </div>
  1169.                                             </div>
  1170.                                         </div>
  1171.                                     ";
  1172.             }
  1173.             // line 639
  1174.             echo "                                ";
  1175.         }
  1176.         $_parent $context['_parent'];
  1177.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
  1178.         $context array_intersect_key($context$_parent) + $_parent;
  1179.         // line 640
  1180.         echo "
  1181.                                 ";
  1182.         // line 641
  1183.         if (((isset($context["has_class"]) || array_key_exists("has_class"$context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.'641$this->source); })()) == false)) {
  1184.             // line 642
  1185.             echo "                                    ";
  1186.             $context['_parent'] = $context;
  1187.             $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->envtwig_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.'642$this->source); })()), "class", [], "any"falsefalsetrue642), function ($__f__) use ($context$macros) { $context["f"] = $__f__; return twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue642), "eccube_form_options", [], "any"falsefalsetrue642), "auto_render", [], "any"falsefalsetrue642); }));
  1188.             foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
  1189.                 // line 643
  1190.                 echo "                                        ";
  1191.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue643), "eccube_form_options", [], "any"falsefalsetrue643), "form_theme", [], "any"falsefalsetrue643)) {
  1192.                     // line 644
  1193.                     echo "                                            ";
  1194.                     $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme($context["f"], [=> twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue644), "eccube_form_options", [], "any"falsefalsetrue644), "form_theme", [], "any"falsefalsetrue644)], true);
  1195.                     // line 645
  1196.                     echo "                                            ";
  1197.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 645$this->source), 'row');
  1198.                     echo "
  1199.                                         ";
  1200.                 } else {
  1201.                     // line 647
  1202.                     echo "                                            <div class=\"row\">
  1203.                                                 <div class=\"col-3\">
  1204.                                                     <span>";
  1205.                     // line 649
  1206.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsetrue649), "label", [], "any"falsefalsetrue649), 649$this->source)), "html"nulltrue);
  1207.                     echo "</span>
  1208.                                                 </div>
  1209.                                                 <div class=\"col mb-2\">
  1210.                                                     <div>
  1211.                                                         ";
  1212.                     // line 653
  1213.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 653$this->source), 'widget');
  1214.                     echo "
  1215.                                                         ";
  1216.                     // line 654
  1217.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 654$this->source), 'errors');
  1218.                     echo "
  1219.                                                     </div>
  1220.                                                 </div>
  1221.                                             </div>
  1222.                                         ";
  1223.                 }
  1224.                 // line 659
  1225.                 echo "                                    ";
  1226.             }
  1227.             $_parent $context['_parent'];
  1228.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
  1229.             $context array_intersect_key($context$_parent) + $_parent;
  1230.             // line 660
  1231.             echo "                                ";
  1232.         }
  1233.         // line 661
  1234.         echo "
  1235.                             </div>
  1236.                         </div>
  1237.                     </div>
  1238.                     ";
  1239.         // line 665
  1240.         if ( !(null === (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'665$this->source); })()))) {
  1241.             // line 666
  1242.             echo "                        <div class=\"card rounded border-0 mb-4\" style=\"display: none;\">
  1243.                             <div class=\"card-header\">
  1244.                                 <div class=\"row\">
  1245.                                     <div class=\"col-8\">
  1246.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  1247.                                              title=\"";
  1248.             // line 671
  1249.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.product_class"), "html"nulltrue);
  1250.             echo "\">
  1251.                                         <span class=\"card-title\">
  1252.                                             ";
  1253.             // line 673
  1254.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_class__card_title"), "html"nulltrue);
  1255.             echo "
  1256.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  1257.                                         </span>
  1258.                                         </div>
  1259.                                     </div>
  1260.                                     <div class=\"col-4 text-end\">
  1261.                                         <a data-bs-toggle=\"collapse\" href=\"#standardConfig\" aria-expanded=\"false\"
  1262.                                            aria-controls=\"standardConfig\">
  1263.                                             <i class=\"fa fa-angle-up fa-lg\"></i>
  1264.                                         </a>
  1265.                                     </div>
  1266.                                 </div>
  1267.                             </div>
  1268.                             <div class=\"collapse show ec-cardCollapse\" id=\"standardConfig\">
  1269.                                 <div class=\"card-body\">
  1270.                                     ";
  1271.             // line 688
  1272.             if (((isset($context["has_class"]) || array_key_exists("has_class"$context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.'688$this->source); })()) == true)) {
  1273.                 // line 689
  1274.                 echo "                                        <table class=\"table table-striped\">
  1275.                                             <thead class=\"table-active\">
  1276.                                             <th class=\"ps-3 pt-2 pb-2\">";
  1277.                 // line 691
  1278.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.class_category1__short"), "html"nulltrue);
  1279.                 echo "</th>
  1280.                                             <th class=\"pt-2 pb-2\">";
  1281.                 // line 692
  1282.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.class_category2__short"), "html"nulltrue);
  1283.                 echo "</th>
  1284.                                             <th class=\"pt-2 pb-2\">";
  1285.                 // line 693
  1286.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_code__short"), "html"nulltrue);
  1287.                 echo "</th>
  1288.                                             <th class=\"pt-2 pb-2\">";
  1289.                 // line 694
  1290.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.stock"), "html"nulltrue);
  1291.                 echo "</th>
  1292.                                             <th class=\"pe-3 pt-2 pb-2\">";
  1293.                 // line 695
  1294.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.price"), "html"nulltrue);
  1295.                 echo "</th>
  1296.                                             </thead>
  1297.                                             <tbody>
  1298.                                             ";
  1299.                 // line 698
  1300.                 $context['_parent'] = $context;
  1301.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'698$this->source); })()), "ProductClasses", [], "any"falsefalsetrue698));
  1302.                 foreach ($context['_seq'] as $context["_key"] => $context["Class"]) {
  1303.                     // line 699
  1304.                     echo "                                                ";
  1305.                     if ((twig_get_attribute($this->env$this->source$context["Class"], "visible", [], "any"falsefalsetrue699) == 1)) {
  1306.                         // line 700
  1307.                         echo "                                                    <tr>
  1308.                                                         <td class=\"ps-3\">";
  1309.                         // line 701
  1310.                         if (twig_get_attribute($this->env$this->source$context["Class"], "hasClassCategory1", [], "any"falsefalsetrue701)) {
  1311.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Class"], "ClassCategory1", [], "any"falsefalsetrue701), "name", [], "any"falsefalsetrue701), 701$this->source), "html"nulltrue);
  1312.                         }
  1313.                         echo "</td>
  1314.                                                         <td>";
  1315.                         // line 702
  1316.                         if (twig_get_attribute($this->env$this->source$context["Class"], "hasClassCategory2", [], "any"falsefalsetrue702)) {
  1317.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Class"], "ClassCategory2", [], "any"falsefalsetrue702), "name", [], "any"falsefalsetrue702), 702$this->source), "html"nulltrue);
  1318.                         }
  1319.                         echo "</td>
  1320.                                                         <td>";
  1321.                         // line 703
  1322.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Class"], "code", [], "any"falsefalsetrue703), 703$this->source), "html"nulltrue);
  1323.                         echo "</td>
  1324.                                                         <td>";
  1325.                         // line 704
  1326.                         if (twig_get_attribute($this->env$this->source$context["Class"], "stock_unlimited", [], "any"falsefalsetrue704)) {
  1327.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.stock_unlimited__short"), "html"nulltrue);
  1328.                         } else {
  1329.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Class"], "stock", [], "any"falsefalsetrue704), 704$this->source), "html"nulltrue);
  1330.                         }
  1331.                         echo "</td>
  1332.                                                         <td class=\"pe-3\">";
  1333.                         // line 705
  1334.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Class"], "price02", [], "any"falsefalsetrue705), 705$this->source)), "html"nulltrue);
  1335.                         echo "</td>
  1336.                                                     </tr>
  1337.                                                 ";
  1338.                     }
  1339.                     // line 708
  1340.                     echo "                                            ";
  1341.                 }
  1342.                 $_parent $context['_parent'];
  1343.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Class'], $context['_parent'], $context['loop']);
  1344.                 $context array_intersect_key($context$_parent) + $_parent;
  1345.                 // line 709
  1346.                 echo "                                            </tbody>
  1347.                                         </table>
  1348.                                     ";
  1349.             }
  1350.             // line 712
  1351.             echo "
  1352.                                     <div class=\"d-block text-center text-center\">
  1353.                                         <a href=\"";
  1354.             // line 714
  1355.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_product_class", ["id" => (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'714$this->source); })())]), "html"nulltrue);
  1356.             echo "\" class=\"btn btn-ec-regular\" data-action=\"confirm\"
  1357.                                            title=\"";
  1358.             // line 715
  1359.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_message", ["%name%" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_class_registration")]), "html"nulltrue);
  1360.             // line 717
  1361.             echo "\">";
  1362.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_class__confirm_of_product"), "html"nulltrue);
  1363.             echo "</a>
  1364.                                     </div>
  1365.                                 </div>
  1366.                             </div>
  1367.                         </div>
  1368.                     ";
  1369.         }
  1370.         // line 723
  1371.         echo "                    <div class=\"card rounded border-0 mb-4\">
  1372.                         <div class=\"card-header\">
  1373.                             <div class=\"row\">
  1374.                                 <div class=\"col-8\">
  1375.                                     <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  1376.                                          title=\"";
  1377.         // line 728
  1378.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.free_area"), "html"nulltrue);
  1379.         echo "\">
  1380.                                         <span class=\"card-title\">";
  1381.         // line 729
  1382.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.free_area__card_title"), "html"nulltrue);
  1383.         echo "</span>
  1384.                                         <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  1385.                                     </div>
  1386.                                 </div>
  1387.                                 <div class=\"col-4 text-end\">
  1388.                                     <a data-bs-toggle=\"collapse\" href=\"#freeArea\" aria-expanded=\"false\"
  1389.                                        aria-controls=\"freeArea\">
  1390.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  1391.                                     </a>
  1392.                                 </div>
  1393.                             </div>
  1394.                         </div>
  1395.                         <div class=\"collapse show ec-cardCollapse\" id=\"freeArea\">
  1396.                             <div class=\"card-body\">
  1397.                                 <div class=\"row\">
  1398.                                     <div class=\"col-3\">
  1399.                                         <span>";
  1400.         // line 745
  1401.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.free_area"), "html"nulltrue);
  1402.         echo "</span>
  1403.                                     </div>
  1404.                                     <div class=\"col-9\">
  1405.                                         <div>
  1406.                                             ";
  1407.         // line 749
  1408.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'749$this->source); })()), "free_area", [], "any"falsefalsetrue749), 749$this->source), 'widget', ["id" => "wysiwyg-area""attr" => ["rows" => "8"]]);
  1409.         echo "
  1410.                                             ";
  1411.         // line 750
  1412.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'750$this->source); })()), "free_area", [], "any"falsefalsetrue750), 750$this->source), 'errors');
  1413.         echo "
  1414.                                         </div>
  1415.                                     </div>
  1416.                                 </div>
  1417.                             </div>
  1418.                         </div>
  1419.                     </div>
  1420.                 </div>
  1421.             </div>
  1422.             <div class=\"c-contentsArea__secondaryCol\">
  1423.                 <div class=\"c-secondaryCol\">
  1424.                     ";
  1425.         // line 762
  1426.         if ( !(null === (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'762$this->source); })()))) {
  1427.             // line 763
  1428.             echo "                        <div class=\"card rounded border-0 mb-4\">
  1429.                             <div class=\"collapse show ec-cardCollapse\" id=\"preview\">
  1430.                                 <div class=\"card-body\">
  1431.                                     <div class=\"d-block text-center\">
  1432.                                         <a class=\"btn w-100 btn-ec-regular\"
  1433.                                            target=\"_blank\"
  1434.                                            href=\"";
  1435.             // line 769
  1436.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'769$this->source); })())]), "html"nulltrue);
  1437.             echo "\"
  1438.                                            title=\"";
  1439.             // line 770
  1440.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.preview"), "html"nulltrue);
  1441.             echo "\">";
  1442.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.preview"), "html"nulltrue);
  1443.             echo "</a>
  1444.                                     </div>
  1445.                                 </div>
  1446.                             </div>
  1447.                         </div>
  1448.                     ";
  1449.         }
  1450.         // line 776
  1451.         echo "                    <div class=\"card rounded border-0 mb-4\">
  1452.                         <div class=\"card-header\">
  1453.                             <div class=\"row\">
  1454.                                 <div class=\"col-8\">
  1455.                                     <div class=\"d-inline-block\">
  1456.                                         <span class=\"card-title\">";
  1457.         // line 781
  1458.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.category__product_card_title"), "html"nulltrue);
  1459.         echo "</span>
  1460.                                     </div>
  1461.                                 </div>
  1462.                                 <div class=\"col-4 text-end\">
  1463.                                     <a data-bs-toggle=\"collapse\" href=\"#category\" aria-expanded=\"false\"
  1464.                                        aria-controls=\"category\">
  1465.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  1466.                                     </a>
  1467.                                 </div>
  1468.                             </div>
  1469.                         </div>
  1470.                         <div class=\"collapse show ec-cardCollapse\" id=\"category\">
  1471.                             <div class=\"card-body\">
  1472.                                 <div class=\"mb-3\">
  1473.                                     <div class=\"row\">
  1474.                                         <div class=\"col\">
  1475.                                             <div class=\"input-group\">
  1476.                                                 <div class=\"input-group-text\">
  1477.                                                     <span id=\"basic-addon1\">
  1478.                                                             <i class=\"fa fa-search\"></i>
  1479.                                                     </span>
  1480.                                                 </div>
  1481.                                                 <input id=\"search-category\" class=\"form-control\" type=\"search\"
  1482.                                                        placeholder=\"";
  1483.         // line 804
  1484.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.search_category"), "html"nulltrue);
  1485.         echo "\"
  1486.                                                        aria-label=\"Search\">
  1487.                                             </div>
  1488.                                         </div>
  1489.                                     </div>
  1490.                                 </div>
  1491.                                 ";
  1492.         // line 823
  1493.         echo "
  1494.                                 <div class=\"c-directoryTree--register rounded border mb-3 p-3\">
  1495.                                     ";
  1496.         // line 825
  1497.         $macros["renderMacro"] = $this;
  1498.         // line 826
  1499.         echo "                                    ";
  1500.         $context['_parent'] = $context;
  1501.         $context['_seq'] = twig_ensure_traversable((isset($context["TopCategories"]) || array_key_exists("TopCategories"$context) ? $context["TopCategories"] : (function () { throw new RuntimeError('Variable "TopCategories" does not exist.'826$this->source); })()));
  1502.         foreach ($context['_seq'] as $context["_key"] => $context["TopCategory"]) {
  1503.             // line 827
  1504.             echo "                                        <ul class=\"list-unstyled\">
  1505.                                             ";
  1506.             // line 828
  1507.             echo twig_call_macro($macros["renderMacro"], "macro_tree", [(isset($context["ChoicedCategoryIds"]) || array_key_exists("ChoicedCategoryIds"$context) ? $context["ChoicedCategoryIds"] : (function () { throw new RuntimeError('Variable "ChoicedCategoryIds" does not exist.'828$this->source); })()), $context["TopCategory"], 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.'828$this->source); })()), "Category", [], "any"falsefalsetrue828)], 828$context$this->getSourceContext());
  1508.             echo "
  1509.                                         </ul>
  1510.                                     ";
  1511.         }
  1512.         $_parent $context['_parent'];
  1513.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['TopCategory'], $context['_parent'], $context['loop']);
  1514.         $context array_intersect_key($context$_parent) + $_parent;
  1515.         // line 831
  1516.         echo "                                    ";
  1517.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'831$this->source); })()), "Category", [], "any"falsefalsetrue831), 831$this->source), 'errors');
  1518.         echo "
  1519.                                 </div>
  1520.                                 <div class=\"d-block text-center\">
  1521.                                     <a class=\"btn w-100 btn-ec-regular\"
  1522.                                        data-action=\"confirm\"
  1523.                                        href=\"";
  1524.         // line 836
  1525.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_category");
  1526.         echo "\"
  1527.                                        title=\"";
  1528.         // line 837
  1529.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_message", ["%name%" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.category_management")]), "html"nulltrue);
  1530.         // line 838
  1531.         echo "\">";
  1532.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.move_to_category"), "html"nulltrue);
  1533.         echo "</a>
  1534.                                 </div>
  1535.                             </div>
  1536.                         </div>
  1537.                     </div>
  1538.                     <div class=\"card rounded border-0 mb-4\">
  1539.                         <div class=\"card-header\">
  1540.                             <div class=\"row\">
  1541.                                 <div class=\"col-8\">
  1542.                                     <div class=\"d-inline-block\">
  1543.                                         <span class=\"card-title\">
  1544.                                             ";
  1545.         // line 849
  1546.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.tag__product_card_title"), "html"nulltrue);
  1547.         echo "
  1548.                                         </span>
  1549.                                     </div>
  1550.                                 </div>
  1551.                                 <div class=\"col-4 text-end\">
  1552.                                     <a data-bs-toggle=\"collapse\" href=\"#tag\" aria-expanded=\"false\" aria-controls=\"tag\">
  1553.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  1554.                                     </a>
  1555.                                 </div>
  1556.                             </div>
  1557.                         </div>
  1558.                         <div class=\"collapse show ec-cardCollapse\" id=\"tag\">
  1559.                             <div class=\"card-body\">
  1560.                                 ";
  1561.         // line 863
  1562.         if ((twig_length_filter($this->env, (isset($context["Tags"]) || array_key_exists("Tags"$context) ? $context["Tags"] : (function () { throw new RuntimeError('Variable "Tags" does not exist.'863$this->source); })())) > 0)) {
  1563.             // line 864
  1564.             echo "                                    ";
  1565.             $context['_parent'] = $context;
  1566.             $context['_seq'] = twig_ensure_traversable((isset($context["Tags"]) || array_key_exists("Tags"$context) ? $context["Tags"] : (function () { throw new RuntimeError('Variable "Tags" does not exist.'864$this->source); })()));
  1567.             foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  1568.                 // line 865
  1569.                 echo "                                        <div class=\"d-inline-block mb-2 me-2\">
  1570.                                             <button class=\"btn btn-outline-primary\" type=\"button\">";
  1571.                 // line 866
  1572.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Tag"], "name", [], "any"falsefalsetrue866), 866$this->source), "html"nulltrue);
  1573.                 echo "</button>
  1574.                                         </div>
  1575.                                     ";
  1576.             }
  1577.             $_parent $context['_parent'];
  1578.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  1579.             $context array_intersect_key($context$_parent) + $_parent;
  1580.             // line 869
  1581.             echo "                                ";
  1582.         }
  1583.         // line 870
  1584.         echo "
  1585.                                 <div class=\"d-block mb-3\" data-bs-toggle=\"collapse\" href=\"#allTags\" role=\"button\"
  1586.                                      aria-expanded=\"false\" aria-controls=\"allTags\">
  1587.                                     <a>
  1588.                                         <i class=\"fa fa-plus-square-o fw-bold me-1\"></i>
  1589.                                         <span class=\"fw-bold\">";
  1590.         // line 875
  1591.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.save_tag"), "html"nulltrue);
  1592.         echo "</span>
  1593.                                     </a>
  1594.                                 </div>
  1595.                                 <div class=\"collapse p-3 bg-ec-lightGray mb-3 ec-collapse\" id=\"allTags\">
  1596.                                     <div class=\"d-none\">
  1597.                                         ";
  1598.         // line 880
  1599.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'880$this->source); })()), "Tag", [], "any"falsefalsetrue880), 880$this->source), 'widget');
  1600.         echo "
  1601.                                     </div>
  1602.                                     ";
  1603.         // line 882
  1604.         if ((twig_length_filter($this->env, (isset($context["TagsList"]) || array_key_exists("TagsList"$context) ? $context["TagsList"] : (function () { throw new RuntimeError('Variable "TagsList" does not exist.'882$this->source); })())) > 0)) {
  1605.             // line 883
  1606.             echo "                                        ";
  1607.             $context['_parent'] = $context;
  1608.             $context['_seq'] = twig_ensure_traversable((isset($context["TagsList"]) || array_key_exists("TagsList"$context) ? $context["TagsList"] : (function () { throw new RuntimeError('Variable "TagsList" does not exist.'883$this->source); })()));
  1609.             foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  1610.                 // line 884
  1611.                 echo "                                            <div class=\"d-inline-block mb-2 me-2\">
  1612.                                                 <button class=\"btn btn-outline-secondary\" type=\"button\"
  1613.                                                         data-tag-id=\"";
  1614.                 // line 886
  1615.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Tag"], "id", [], "any"falsefalsetrue886), 886$this->source), "html"nulltrue);
  1616.                 echo "\">";
  1617.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Tag"], "name", [], "any"falsefalsetrue886), 886$this->source), "html"nulltrue);
  1618.                 echo "</button>
  1619.                                             </div>
  1620.                                         ";
  1621.             }
  1622.             $_parent $context['_parent'];
  1623.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  1624.             $context array_intersect_key($context$_parent) + $_parent;
  1625.             // line 889
  1626.             echo "                                    ";
  1627.         }
  1628.         // line 890
  1629.         echo "
  1630.                                     <div class=\"d-block mb-3\" data-bs-toggle=\"collapse\" href=\"#allTags\" role=\"button\"
  1631.                                          aria-expanded=\"false\" aria-controls=\"allTags\"></div>
  1632.                                 </div>
  1633.                                 <div class=\"d-block text-center\">
  1634.                                     <a href=\"";
  1635.         // line 896
  1636.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_tag");
  1637.         echo "\"
  1638.                                        class=\"btn w-100 btn-ec-regular\"
  1639.                                        data-action=\"confirm\"
  1640.                                        title=\"";
  1641.         // line 899
  1642.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_message", ["%name%" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.tag_management")]), "html"nulltrue);
  1643.         // line 900
  1644.         echo "\">";
  1645.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.move_to_tag"), "html"nulltrue);
  1646.         echo "</a>
  1647.                                 </div>
  1648.                             </div>
  1649.                         </div>
  1650.                     </div>
  1651.                     <div class=\"card rounded border-0 mb-4\">
  1652.                         <div class=\"card-header\">
  1653.                             <div class=\"row\">
  1654.                                 <div class=\"col-8\">
  1655.                                     <span class=\"card-title\">";
  1656.         // line 909
  1657.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.create_date__card_title"), "html"nulltrue);
  1658.         echo "</span>
  1659.                                 </div>
  1660.                                 <div class=\"col-4 text-end\">
  1661.                                     <a data-bs-toggle=\"collapse\" href=\"#update\" aria-expanded=\"false\"
  1662.                                        aria-controls=\"update\">
  1663.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  1664.                                     </a>
  1665.                                 </div>
  1666.                             </div>
  1667.                         </div>
  1668.                         <div class=\"collapse show ec-cardCollapse\" id=\"update\">
  1669.                             <div class=\"card-body\">
  1670.                                 <div class=\"row mb-2\">
  1671.                                     <div class=\"col\">
  1672.                                         <i class=\"fa fa-flag me-1\"></i>
  1673.                                         <span>";
  1674.         // line 924
  1675.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.create_date"), "html"nulltrue);
  1676.         echo "</span>
  1677.                                     </div>
  1678.                                     <div class=\"col\">
  1679.                                         <span>:";
  1680.         // line 927
  1681.         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IntlExtension']->date_min($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'927$this->source); })()), "create_date", [], "any"falsefalsetrue927), 927$this->source)), "html"nulltrue);
  1682.         echo "</span>
  1683.                                     </div>
  1684.                                 </div>
  1685.                                 <div class=\"row mb-2\">
  1686.                                     <div class=\"col\">
  1687.                                         <i class=\"fa fa-refresh me-1\"></i>
  1688.                                         <span>";
  1689.         // line 933
  1690.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.update_date"), "html"nulltrue);
  1691.         echo "</span>
  1692.                                     </div>
  1693.                                     <div class=\"col\">
  1694.                                         <span>:";
  1695.         // line 936
  1696.         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IntlExtension']->date_min($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'936$this->source); })()), "update_date", [], "any"falsefalsetrue936), 936$this->source)), "html"nulltrue);
  1697.         echo "</span>
  1698.                                     </div>
  1699.                                 </div>
  1700.                                 <div class=\"row mb-2\">
  1701.                                     <div class=\"col\">
  1702.                                         <i class=\"fa fa-user me-1\"></i>
  1703.                                         <span>";
  1704.         // line 942
  1705.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.last_updater"), "html"nulltrue);
  1706.         echo "</span>
  1707.                                     </div>
  1708.                                     <div class=\"col\">
  1709.                                         <span>:";
  1710.         // line 945
  1711.         ((twig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'945$this->source); })()), "Creator", [], "any"falsefalsetrue945)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["Product"]) || array_key_exists("Product"$context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.'945$this->source); })()), "Creator", [], "any"falsefalsetrue945), "name", [], "any"falsefalsetrue945), "html"nulltrue))) : (print ("")));
  1712.         echo "</span>
  1713.                                     </div>
  1714.                                 </div>
  1715.                             </div>
  1716.                         </div>
  1717.                     </div>
  1718.                     <div class=\"card rounded border-0 mb-4\">
  1719.                         <div class=\"card-header\">
  1720.                             <div class=\"row\">
  1721.                                 <div class=\"col-8\">
  1722.                                     <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  1723.                                          title=\"";
  1724.         // line 956
  1725.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.shop_memo"), "html"nulltrue);
  1726.         echo "\">
  1727.                                         <span class=\"card-title\">
  1728.                                             ";
  1729.         // line 958
  1730.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.shop_memo"), "html"nulltrue);
  1731.         echo "
  1732.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  1733.                                         </span>
  1734.                                     </div>
  1735.                                 </div>
  1736.                                 <div class=\"col-4 text-end\">
  1737.                                     <a data-bs-toggle=\"collapse\" href=\"#shopMemo\" aria-expanded=\"false\"
  1738.                                        aria-controls=\"shopMemo\">
  1739.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  1740.                                     </a>
  1741.                                 </div>
  1742.                             </div>
  1743.                         </div>
  1744.                         <div class=\"collapse show ec-cardCollapse\" id=\"shopMemo\">
  1745.                             <div class=\"card-body\">
  1746.                                 ";
  1747.         // line 973
  1748.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'973$this->source); })()), "note", [], "any"falsefalsetrue973), 973$this->source), 'widget', ["attr" => ["rows" => "8"]]);
  1749.         echo "
  1750.                                 ";
  1751.         // line 974
  1752.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'974$this->source); })()), "note", [], "any"falsefalsetrue974), 974$this->source), 'errors');
  1753.         echo "
  1754.                             </div>
  1755.                         </div>
  1756.                     </div>
  1757.                 </div>
  1758.             </div>
  1759.         </div>
  1760.         <div class=\"c-conversionArea\">
  1761.             <div class=\"c-conversionArea__container\">
  1762.                 <div class=\"row justify-content-between align-items-center\">
  1763.                     <div class=\"col-6\">
  1764.                         <div class=\"c-conversionArea__leftBlockItem\">
  1765.                             <a class=\"c-baseLink\" href=\"";
  1766.         // line 986
  1767.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_page", ["page_no" => ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "session", [], "any"falsetruetrue986), "get", [=> "eccube.admin.product.search.page_no"], "method"truetruetrue986)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "session", [], "any"falsetruetrue986), "get", [=> "eccube.admin.product.search.page_no"], "method"falsefalsetrue986), 986$this->source), "1")) : ("1"))]), "html"nulltrue);
  1768.         echo "\"
  1769.                                data-action=\"confirm\" title=\"";
  1770.         // line 987
  1771.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_message", ["%name%" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_list")]), "html"nulltrue);
  1772.         echo "\">
  1773.                                 <i class=\"fa fa-backward\" aria-hidden=\"true\"></i><span>";
  1774.         // line 988
  1775.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_list"), "html"nulltrue);
  1776.         echo "</span>
  1777.                             </a>
  1778.                         </div>
  1779.                     </div>
  1780.                     <div class=\"col-6\">
  1781.                         <div id=\"ex-conversion-action\" class=\"row align-items-center justify-content-end\">
  1782.                             <div class=\"col-auto\">
  1783.                                 ";
  1784.         // line 995
  1785.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'995$this->source); })()), "Status", [], "any"falsefalsetrue995), 995$this->source), 'widget');
  1786.         echo "
  1787.                                 ";
  1788.         // line 996
  1789.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.'996$this->source); })()), "Status", [], "any"falsefalsetrue996), 996$this->source), 'errors');
  1790.         echo "
  1791.                             </div>
  1792.                             <div class=\"col-auto\">
  1793.                                 <button class=\"btn btn-ec-conversion px-5\" type=\"submit\">";
  1794.         // line 999
  1795.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.registration"), "html"nulltrue);
  1796.         echo "</button>
  1797.                             </div>
  1798.                         </div>
  1799.                     </div>
  1800.                 </div>
  1801.             </div>
  1802.         </div>
  1803.     </form>
  1804. ";
  1805.         
  1806.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1807.         
  1808.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1809.     }
  1810.     // line 811
  1811.     public function macro_tree($__ChoicedIds__ null$__Category__ null$__form__ null, ...$__varargs__)
  1812.     {
  1813.         $macros $this->macros;
  1814.         $context $this->env->mergeGlobals([
  1815.             "ChoicedIds" => $__ChoicedIds__,
  1816.             "Category" => $__Category__,
  1817.             "form" => $__form__,
  1818.             "varargs" => $__varargs__,
  1819.         ]);
  1820.         $blocks = [];
  1821.         ob_start();
  1822.         try {
  1823.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1824.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  1825.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1826.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  1827.             // line 812
  1828.             echo "                                    ";
  1829.             $macros["selfMacro"] = $this;
  1830.             // line 813
  1831.             echo "                                    <li class=\"c-directoryTree--registerItem category-li\">
  1832.                                         <input type=\"checkbox\" id=\"admin_product_category_";
  1833.             // line 814
  1834.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'814$this->source); })()), "id", [], "any"falsefalsetrue814), 814$this->source), "html"nulltrue);
  1835.             echo "\" name=\"admin_product[Category][]\" value=\"";
  1836.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'814$this->source); })()), "id", [], "any"falsefalsetrue814), 814$this->source), "html"nulltrue);
  1837.             echo "\" ";
  1838.             if (twig_in_filter(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'814$this->source); })()), "id", [], "any"falsefalsetrue814), (isset($context["ChoicedIds"]) || array_key_exists("ChoicedIds"$context) ? $context["ChoicedIds"] : (function () { throw new RuntimeError('Variable "ChoicedIds" does not exist.'814$this->source); })()))) {
  1839.                 echo "checked";
  1840.             }
  1841.             echo ">
  1842.                                         <label for=\"admin_product_category_";
  1843.             // line 815
  1844.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'815$this->source); })()), "id", [], "any"falsefalsetrue815), 815$this->source), "html"nulltrue);
  1845.             echo "\">";
  1846.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'815$this->source); })()), "name", [], "any"falsefalsetrue815), 815$this->source), "html"nulltrue);
  1847.             echo "</label>
  1848.                                         <ul class=\"list-unstyled\">
  1849.                                             ";
  1850.             // line 817
  1851.             $context['_parent'] = $context;
  1852.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["Category"]) || array_key_exists("Category"$context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.'817$this->source); })()), "children", [], "any"falsefalsetrue817));
  1853.             foreach ($context['_seq'] as $context["child"] => $context["ChildCategory"]) {
  1854.                 // line 818
  1855.                 echo "                                                ";
  1856.                 echo twig_call_macro($macros["selfMacro"], "macro_tree", [(isset($context["ChoicedIds"]) || array_key_exists("ChoicedIds"$context) ? $context["ChoicedIds"] : (function () { throw new RuntimeError('Variable "ChoicedIds" does not exist.'818$this->source); })()), $context["ChildCategory"], (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'818$this->source); })())], 818$context$this->getSourceContext());
  1857.                 echo "
  1858.                                             ";
  1859.             }
  1860.             $_parent $context['_parent'];
  1861.             unset($context['_seq'], $context['_iterated'], $context['child'], $context['ChildCategory'], $context['_parent'], $context['loop']);
  1862.             $context array_intersect_key($context$_parent) + $_parent;
  1863.             // line 820
  1864.             echo "                                        </ul>
  1865.                                     </li>
  1866.                                 ";
  1867.             
  1868.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1869.             
  1870.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1871.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  1872.         } finally {
  1873.             ob_end_clean();
  1874.         }
  1875.     }
  1876.     public function getTemplateName()
  1877.     {
  1878.         return "@admin/Product/product.twig";
  1879.     }
  1880.     public function isTraitable()
  1881.     {
  1882.         return false;
  1883.     }
  1884.     public function getDebugInfo()
  1885.     {
  1886.         return array (  1911 => 820,  1902 => 818,  1898 => 817,  1891 => 815,  1881 => 814,  1878 => 813,  1875 => 812,  1854 => 811,  1835 => 999,  1829 => 996,  1825 => 995,  1815 => 988,  1811 => 987,  1807 => 986,  1792 => 974,  1788 => 973,  1770 => 958,  1765 => 956,  1751 => 945,  1745 => 942,  1736 => 936,  1730 => 933,  1721 => 927,  1715 => 924,  1697 => 909,  1684 => 900,  1682 => 899,  1676 => 896,  1668 => 890,  1665 => 889,  1654 => 886,  1650 => 884,  1645 => 883,  1643 => 882,  1638 => 880,  1630 => 875,  1623 => 870,  1620 => 869,  1611 => 866,  1608 => 865,  1603 => 864,  1601 => 863,  1584 => 849,  1569 => 838,  1567 => 837,  1563 => 836,  1554 => 831,  1545 => 828,  1542 => 827,  1537 => 826,  1535 => 825,  1531 => 823,  1521 => 804,  1495 => 781,  1488 => 776,  1477 => 770,  1473 => 769,  1465 => 763,  1463 => 762,  1448 => 750,  1444 => 749,  1437 => 745,  1418 => 729,  1414 => 728,  1407 => 723,  1397 => 717,  1395 => 715,  1391 => 714,  1387 => 712,  1382 => 709,  1376 => 708,  1370 => 705,  1362 => 704,  1358 => 703,  1352 => 702,  1346 => 701,  1343 => 700,  1340 => 699,  1336 => 698,  1330 => 695,  1326 => 694,  1322 => 693,  1318 => 692,  1314 => 691,  1310 => 689,  1308 => 688,  1290 => 673,  1285 => 671,  1278 => 666,  1276 => 665,  1270 => 661,  1267 => 660,  1261 => 659,  1253 => 654,  1249 => 653,  1242 => 649,  1238 => 647,  1232 => 645,  1229 => 644,  1226 => 643,  1221 => 642,  1219 => 641,  1216 => 640,  1210 => 639,  1202 => 634,  1198 => 633,  1191 => 629,  1187 => 627,  1181 => 625,  1178 => 624,  1175 => 623,  1170 => 622,  1167 => 620,  1164 => 619,  1156 => 614,  1152 => 613,  1144 => 608,  1139 => 605,  1136 => 604,  1128 => 599,  1124 => 598,  1116 => 593,  1111 => 590,  1109 => 589,  1106 => 588,  1099 => 581,  1095 => 580,  1086 => 574,  1082 => 573,  1077 => 570,  1075 => 569,  1068 => 564,  1064 => 563,  1056 => 558,  1046 => 551,  1042 => 550,  1034 => 545,  1024 => 538,  1020 => 537,  1012 => 532,  1002 => 525,  998 => 524,  989 => 518,  985 => 517,  975 => 510,  971 => 509,  962 => 503,  958 => 502,  948 => 495,  944 => 494,  935 => 488,  931 => 487,  926 => 484,  924 => 483,  916 => 478,  912 => 477,  903 => 471,  899 => 470,  894 => 467,  886 => 462,  881 => 461,  879 => 460,  877 => 459,  875 => 458,  873 => 457,  871 => 456,  869 => 455,  867 => 454,  865 => 453,  863 => 452,  861 => 451,  859 => 450,  855 => 448,  851 => 447,  842 => 441,  837 => 439,  827 => 432,  823 => 431,  814 => 425,  810 => 424,  800 => 417,  796 => 416,  787 => 410,  782 => 408,  772 => 401,  768 => 400,  759 => 394,  754 => 392,  749 => 389,  747 => 388,  739 => 383,  735 => 382,  726 => 376,  722 => 375,  709 => 365,  700 => 359,  696 => 358,  688 => 353,  684 => 352,  672 => 343,  665 => 339,  661 => 338,  652 => 332,  647 => 330,  643 => 329,  639 => 327,  632 => 323,  629 => 322,  627 => 319,  619 => 314,  613 => 311,  609 => 310,  605 => 308,  603 => 307,  597 => 304,  593 => 303,  585 => 298,  580 => 296,  575 => 293,  568 => 289,  560 => 284,  556 => 283,  552 => 281,  550 => 280,  533 => 266,  520 => 256,  516 => 255,  506 => 248,  500 => 245,  487 => 235,  479 => 229,  469 => 228,  410 => 177,  401 => 174,  398 => 173,  393 => 172,  383 => 168,  379 => 167,  376 => 166,  371 => 165,  353 => 161,  349 => 160,  346 => 159,  329 => 158,  325 => 157,  307 => 142,  282 => 120,  266 => 107,  261 => 104,  249 => 98,  246 => 97,  242 => 96,  239 => 95,  227 => 89,  224 => 88,  220 => 87,  211 => 83,  187 => 62,  178 => 56,  168 => 49,  158 => 41,  151 => 37,  146 => 35,  141 => 33,  136 => 31,  131 => 29,  126 => 28,  124 => 27,  116 => 21,  106 => 20,  87 => 16,  68 => 15,  57 => 11,  55 => 18,  53 => 13,  40 => 11,);
  1887.     }
  1888.     public function getSourceContext()
  1889.     {
  1890.         return new Source("{#
  1891. This file is part of EC-CUBE
  1892. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  1893. http://www.ec-cube.co.jp/
  1894. For the full copyright and license information, please view the LICENSE
  1895. file that was distributed with this source code.
  1896. #}
  1897. {% extends '@admin/default_frame.twig' %}
  1898. {% set menus = ['product', 'product_edit'] %}
  1899. {% block title %}{{ 'admin.product.product_registration'|trans }}{% endblock %}
  1900. {% block sub_title %}{{ 'admin.product.product_management'|trans }}{% endblock %}
  1901. {% form_theme form '@admin/Form/bootstrap_4_horizontal_layout.html.twig' %}
  1902. {% block javascript %}
  1903.     <script>
  1904.         \$(document).on('drop dragover', function(e) {
  1905.             e.preventDefault();
  1906.         });
  1907.         \$(function() {
  1908.             {% if has_class == false %}
  1909.             if (\$(\"#{{ form.class.stock_unlimited.vars.id }}\").prop(\"checked\")) {
  1910.                 \$(\"#{{ form.class.stock.vars.id }}\").attr(\"disabled\", \"disabled\").val('');
  1911.             } else {
  1912.                 \$(\"#{{ form.class.stock.vars.id }}\").removeAttr(\"disabled\");
  1913.             }
  1914.             \$(\"#{{ form.class.stock_unlimited.vars.id }}\").on(\"click change\", function() {
  1915.                 if (\$(this).prop(\"checked\")) {
  1916.                     \$(\"#{{ form.class.stock.vars.id }}\").attr(\"disabled\", \"disabled\").val('');
  1917.                 } else {
  1918.                     \$(\"#{{ form.class.stock.vars.id }}\").removeAttr(\"disabled\");
  1919.                 }
  1920.             });
  1921.             {% endif %}
  1922.             // ファイルアップロード
  1923.             // see https://pqina.nl/filepond/
  1924.             var inputFileElement = document.querySelector('input[type=file]');
  1925.             
  1926.             FilePond.setOptions({
  1927.                 server: {
  1928.                     process: {
  1929.                         url: '{{ path('admin_product_image_process') }}',
  1930.                         headers: {
  1931.                             'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content'),
  1932.                             'X-Requested-With': 'XMLHttpRequest'
  1933.                         }
  1934.                     },
  1935.                     load: {
  1936.                         url: '{{ path('admin_product_image_load') }}?source=',
  1937.                         headers: {
  1938.                             'X-Requested-With': 'XMLHttpRequest'
  1939.                         }
  1940.                     },
  1941.                     revert: {
  1942.                         url: '{{ path('admin_product_image_revert') }}',
  1943.                         headers: {
  1944.                             'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content'),
  1945.                             'X-Requested-With': 'XMLHttpRequest'
  1946.                         }
  1947.                     }
  1948.                 }
  1949.             });
  1950.             var pond = FilePond.create(inputFileElement, {
  1951.                 allowFileTypeValidation: true,
  1952.                 acceptedFileTypes: [
  1953.                     'image/gif',
  1954.                     'image/png',
  1955.                     'image/jpeg'
  1956.                 ],
  1957.                 allowFileSizeValidation: true,
  1958.                 maxFileSize: 10000000,
  1959.                 maxFiles: 10,
  1960.                 allowBrowse: true,
  1961.                 allowDrop: true,
  1962.                 allowReorder: true,
  1963.                 labelIdle: '<i class=\"fa fa-cloud-upload fa-3x text-ec-lightGray mx-3 align-middle\" aria-hidden=\"true\" style=\"font-size: 40px\"></i>{{ 'admin.common.drag_and_drop_image_description'|trans }}<span class=\"filepond--label-action\">{{ 'admin.common.file_select'|trans }}</span>',
  1964.                 styleItemPanelAspectRatio: 0.5625,
  1965.                 // 保存されている画像のロード
  1966.                 files: [
  1967.                     {% for image in form.images %}
  1968.                     {
  1969.                         source: '{{ image.vars.value }}',
  1970.                         options: {
  1971.                             type: 'local'
  1972.                         }
  1973.                     },
  1974.                     {% endfor %}
  1975.                     // 追加してすぐの画像のロード. バリデーションエラーの場合など.
  1976.                     {% for add_image in form.add_images %}
  1977.                     {
  1978.                         source: '{{ add_image.vars.value }}',
  1979.                         options: {
  1980.                             type: 'local'
  1981.                         }
  1982.                     },
  1983.                     {% endfor %}
  1984.                 ]
  1985.             });
  1986.             // 画像が追加されたら add_images にファイル名を追加する
  1987.             var proto_add = '{{ form_widget(form.add_images.vars.prototype) }}';
  1988.             pond.on('processfile', function(error, file) {
  1989.                 if (error) {
  1990.                     console.log(error);
  1991.                 } else {
  1992.                     \$('#upload-zone').append(
  1993.                         \$(proto_add.replace(/__name__/g, file.id))
  1994.                             .val(file.serverId)
  1995.                             .addClass('add_images')
  1996.                     );
  1997.                 }
  1998.             });
  1999.             // 画像が削除されたら delete_images にファイル名を追加する
  2000.             var proto_del = '{{ form_widget(form.delete_images.vars.prototype) }}';
  2001.             pond.on('removefile', function(error, file) {
  2002.                 if (error) {
  2003.                     console.log(error);
  2004.                 } else {
  2005.                     // file.serverId にはアップロードしたファイル名が格納される.
  2006.                     if (file.serverId) {
  2007.                         \$('#upload-zone').append(
  2008.                             \$(proto_del.replace(/__name__/g, file.id))
  2009.                                 .val(file.serverId)
  2010.                                 .addClass('del_images')
  2011.                         );
  2012.                     }
  2013.                     // 追加してすぐ削除した画像があれば削除する
  2014.                     \$('#upload-zone').find('#admin_product_add_images_' + file.id).remove(); // 追加してすぐ削除した画像
  2015.                     \$('#upload-zone').find('.add_images[value=\"' + file.filename + '\"]').remove(); // 追加後, バリデーションエラーが発生した後に削除した画像
  2016.                 }
  2017.             });
  2018.             pond.on('initfile', function() {
  2019.                 \$('#product_image_error').hide();
  2020.             });
  2021.             pond.on('error', function(error, file) {
  2022.                 var message = '{{ 'admin.common.upload_error'|trans }}';
  2023.                 if (error.main !== undefined) {
  2024.                     message = `\${error.main}: \${error.sub}`;
  2025.                 }
  2026.                 \$('#product_image_error')
  2027.                     .show()
  2028.                     .find('.form-error-message').text(message);
  2029.                 // エラーメッセージが表示されてからプレビューエリアのエラーメッセージを非表示にする
  2030.                 setTimeout(function() {
  2031.                     \$('.filepond--file-status').hide();
  2032.                 }, 300);
  2033.             });
  2034.             // バリデーションエラーが出た場合に画像を保持するための hidden を追加しておく
  2035.             var proto_image = '{{ form_widget(form.images.vars.prototype) }}';
  2036.             {% for image in form.images %}
  2037.                 \$('#upload-zone').append(
  2038.                     \$(proto_image.replace(/__name__/g, '{{ loop.index0 }}'))
  2039.                         .val('{{ image.vars.value }}')
  2040.                         .addClass('images')
  2041.                 );
  2042.             {% endfor %}
  2043.             {% for add_image in form.add_images %}
  2044.                 \$('#upload-zone').append(
  2045.                     \$('{{ form_widget(add_image) }}')
  2046.                         .val('{{ add_image.vars.value }}')
  2047.                         .addClass('add_images')
  2048.                 );
  2049.             {% endfor %}
  2050.             {% for delete_image in form.delete_images %}
  2051.                 \$('#upload-zone').append(
  2052.                     \$('{{ form_widget(delete_image) }}').addClass('del_images')
  2053.                 );
  2054.             {% endfor %}
  2055.             // タグ管理
  2056.             var mainTags = \$('#allTags');
  2057.             var adminProductTag = \$('#admin_product_Tag');
  2058.             \$('input', adminProductTag).each(function() {
  2059.                 if (\$(this).is(':checked')) {
  2060.                     \$('button[data-tag-id=\"' + \$(this).val() + '\"]').removeClass('btn-outline-secondary').addClass('btn-outline-primary');
  2061.                 }
  2062.             });
  2063.             mainTags.on('click', 'button.btn', function() {
  2064.                 var btnTag = \$(this);
  2065.                 var tagId = btnTag.data('tag-id');
  2066.                 if (btnTag.hasClass('btn-outline-primary')) {
  2067.                     btnTag.removeClass('btn-outline-primary').addClass('btn-outline-secondary');
  2068.                     \$('input[value=\"' + tagId + '\"]', mainTags).prop('checked', false);
  2069.                 } else {
  2070.                     btnTag.removeClass('btn-outline-secondary').addClass('btn-outline-primary');
  2071.                     \$('input[value=\"' + tagId + '\"]', mainTags).prop('checked', true);
  2072.                 }
  2073.             });
  2074.             var confirmFormChange = function(form, target, modal) {
  2075.                 var returnLink = form.find('input[type=\"hidden\"][name*=\"return_link\"]'),
  2076.                     saveBtn = modal.find('a[data-action=\"save\"]'),
  2077.                     cancelBtn = modal.find('a[data-action=\"cancel\"]');
  2078.                 modal.on('hidden.bs.modal', function() {
  2079.                     returnLink.val('');
  2080.                 });
  2081.                 saveBtn.on('click', function() {
  2082.                     returnLink.val(\$(this).data('return-link'));
  2083.                     \$(this).addClass('disabled');
  2084.                     form.submit();
  2085.                 });
  2086.                 target.on('click', function() {
  2087.                     modal.find('.modal-body .screen-name').text(\$(this).attr('title'));
  2088.                     modal.modal('show');
  2089.                     saveBtn.data('return-link', \$(this).attr('href'));
  2090.                     cancelBtn.attr('href', \$(this).attr('href'));
  2091.                     return false;
  2092.                 });
  2093.             };
  2094.             confirmFormChange(\$('#form1'), \$('a[data-action=\"confirm\"]'), \$('#confirmFormChangeModal'))
  2095.         });
  2096.         // searchWordの実行
  2097.         \$('#search-category').on('input', function () {
  2098.             searchWord(\$(this).val(), \$('.category-li'));
  2099.         });
  2100.     </script>
  2101. {% endblock javascript %}
  2102. {% block main %}
  2103.     <!-- 移動確認モーダル-->
  2104.     <div class=\"modal fade\" id=\"confirmFormChangeModal\" tabindex=\"-1\" role=\"dialog\"
  2105.          aria-labelledby=\"confirmFormChangeModal\" aria-hidden=\"true\">
  2106.         <div class=\"modal-dialog\" role=\"document\">
  2107.             <div class=\"modal-content\">
  2108.                 <div class=\"modal-header\">
  2109.                     <h5 class=\"modal-title\">{{ 'admin.common.move_to_confirm_title'|trans }}</h5>
  2110.                     <button class=\"btn-close\" type=\"button\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
  2111.                     </button>
  2112.                 </div>
  2113.                 <div class=\"modal-body\">
  2114.                     <p class=\"screen-name\"></p>
  2115.                 </div>
  2116.                 <div class=\"modal-footer\">
  2117.                     <a class=\"btn btn-ec-conversion\" data-action=\"save\" href=\"javascript:void(0)\">
  2118.                         {{ 'admin.common.move_to_confirm_save_and_move'|trans }}
  2119.                     </a>
  2120.                     <a class=\"btn btn-ec-sub\" data-action=\"cancel\" href=\"javascript:void(0)\">
  2121.                         {{ 'admin.common.move_to_confirm_move_only'|trans }}
  2122.                     </a>
  2123.                 </div>
  2124.             </div>
  2125.         </div>
  2126.     </div>
  2127.     <form role=\"form\" name=\"form1\" id=\"form1\" method=\"post\" action=\"\" novalidate enctype=\"multipart/form-data\">
  2128.         {{ form_widget(form._token) }}
  2129.         {{ form_widget(form.return_link) }}
  2130.         <div class=\"c-contentsArea__cols\">
  2131.             <div class=\"c-contentsArea__primaryCol\">
  2132.                 <div class=\"c-primaryCol\">
  2133.                     <div class=\"card rounded border-0 mb-4\">
  2134.                         <div class=\"card-header\">
  2135.                             <div class=\"row\">
  2136.                                 <div class=\"col-8\">
  2137.                                     <div class=\"d-inline-block\">
  2138.                                     <span class=\"card-title\">
  2139.                                         {{ 'admin.product.product__card_title'|trans }}
  2140.                                     </span>
  2141.                                     </div>
  2142.                                 </div>
  2143.                                 <div class=\"col-4 text-end\">
  2144.                                     <a data-bs-toggle=\"collapse\" href=\"#basicConfig\" aria-expanded=\"false\"
  2145.                                        aria-controls=\"basicConfig\">
  2146.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  2147.                                     </a>
  2148.                                 </div>
  2149.                             </div>
  2150.                         </div>
  2151.                         <div class=\"collapse show ec-cardCollapse\" id=\"basicConfig\">
  2152.                             <div class=\"card-body\">
  2153.                                 {% if Product.id %}
  2154.                                     <div class=\"row\">
  2155.                                         <div class=\"col-3\">
  2156.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"{{ 'tooltip.product.product_id'|trans }}\">
  2157.                                                 <span>{{ 'admin.product.product_id'|trans }}</span>
  2158.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2159.                                             </div>
  2160.                                         </div>
  2161.                                         <div class=\"col\">
  2162.                                             <p>{{ Product.id }}</p>
  2163.                                         </div>
  2164.                                     </div>
  2165.                                 {% endif %}
  2166.                                 <div class=\"row\">
  2167.                                     <div class=\"col-3\">
  2168.                                         <div class=\"d-inline-block\">
  2169.                                             <span>{{ 'admin.product.name'|trans }}</span>
  2170.                                             <span class=\"badge bg-primary ms-1\">
  2171.                                                 {{ 'admin.common.required'|trans }}
  2172.                                             </span>
  2173.                                         </div>
  2174.                                     </div>
  2175.                                     <div class=\"col mb-2\">
  2176.                                         {{ form_widget(form.name) }}
  2177.                                         {{ form_errors(form.name) }}
  2178.                                     </div>
  2179.                                 </div>
  2180.                                 {% if has_class == false %}
  2181.                                     <div class=\"row\" style=\"display:none;\">
  2182.                                         <div class=\"col-3\">
  2183.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"{{ 'tooltip.product.sale_type'|trans }}\">
  2184.                                                 <span>{{ 'admin.product.sale_type'|trans }}</span>
  2185.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2186.                                                 <span class=\"badge bg-primary ms-1\">
  2187.                                                     {{ 'admin.common.required'|trans }}
  2188.                                                 </span>
  2189.                                             </div>
  2190.                                         </div>
  2191.                                         <div class=\"col mb-2\">
  2192.                                             {{ form_widget(form.class.sale_type, {
  2193.                                                 type: 'hidden',
  2194.                                                 value: '1'
  2195.                                             })}}
  2196.                                             {{ form_errors(form.class.sale_type) }}
  2197.                                         </div>
  2198.                                     </div>
  2199.                                 {% endif %}
  2200.                                 <div class=\"row\">
  2201.                                     <div class=\"col-3\">
  2202.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"{{ 'tooltip.product.image'|trans }}\">
  2203.                                             <span>{{ 'admin.product.image'|trans }}</span>
  2204.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2205.                                             <br>{{ 'admin.product.image_size'|trans }}
  2206.                                         </div>
  2207.                                     </div>
  2208.                                     <div class=\"col mb-2\">
  2209.                                         <p id=\"message\"></p>
  2210.                                         <div id=\"upload-zone\" class=\"rounded\">
  2211.                                             {{ form_widget(form.product_image, { attr : { style : 'display:none;' } }) }}
  2212.                                             {{ form_errors(form.product_image) }}
  2213.                                         </div><!-- /#upload-zone -->
  2214.                                         <span class=\"invalid-feedback\" id=\"product_image_error\" style=\"display: none\">
  2215.                                             <span class=\"d-block\">
  2216.                                                 <span class=\"form-error-icon badge bg-danger text-uppercase\">{{ 'Error'|trans({}, 'validators') }}</span>
  2217.                                                 <span class=\"form-error-message\"></span>
  2218.                                             </span>
  2219.                                         </span>
  2220.                                     </div>
  2221.                                 </div>
  2222.                                 <div class=\"row\">
  2223.                                     <div class=\"col-3\">
  2224.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2225.                                              title=\"{{ 'tooltip.product.description_detail'|trans }}\">
  2226.                                             <span>{{ 'admin.product.description_detail'|trans }}</span>
  2227.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2228.                                         </div>
  2229.                                     </div>
  2230.                                     <div class=\"col\">
  2231.                                         {{ form_widget(form.description_detail, { attr : { rows : \"8\"} }) }}
  2232.                                         {{ form_errors(form.description_detail) }}
  2233.                                         <div class=\"d-inline-block mb-2\" data-bs-toggle=\"collapse\" href=\"#addComment\"
  2234.                                              role=\"button\" aria-expanded=\"false\" aria-controls=\"addComment\">
  2235.                                             <a>
  2236.                                                 <i class=\"fa fa-plus-square-o fw-bold me-1\"></i>
  2237.                                                 <span class=\"fw-bold text-ec-black\">
  2238.                                                     {{ 'admin.product.description_list__add'|trans }}
  2239.                                                 </span>
  2240.                                             </a>
  2241.                                         </div>
  2242.                                     </div>
  2243.                                 </div>
  2244.                                 <div class=\"collapse ec-collapse\" id=\"addComment\">
  2245.                                     <div class=\"row bg-ec-formGray pt-3 mb-2\">
  2246.                                         <div class=\"col-3\">
  2247.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2248.                                                  title=\"{{ 'tooltip.product.description_list'|trans }}\">
  2249.                                                 <span>{{ 'admin.product.description_list'|trans }}</span>
  2250.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2251.                                             </div>
  2252.                                         </div>
  2253.                                         <div class=\"col mb-4\">
  2254.                                             <div>
  2255.                                                 {{ form_widget(form.description_list, { attr : { rows : \"4\"} }) }}
  2256.                                                 {{ form_errors(form.description_list) }}
  2257.                                             </div>
  2258.                                         </div>
  2259.                                     </div>
  2260.                                 </div>
  2261.                                 {% if has_class == false %}
  2262.                                     <div class=\"row\">
  2263.                                         <div class=\"col-3\">
  2264.                                             <div class=\"d-inline-block\">
  2265.                                                 <span>{{ 'admin.product.sale_price'|trans }}</span>
  2266.                                                 <span class=\"badge bg-primary ms-1\">
  2267.                                                     {{ 'admin.common.required'|trans }}
  2268.                                                 </span>
  2269.                                             </div>
  2270.                                         </div>
  2271.                                         <div class=\"col mb-2\">
  2272.                                             <div>
  2273.                                                 {{ form_widget(form.class.price02) }}
  2274.                                                 {{ form_errors(form.class.price02) }}
  2275.                                             </div>
  2276.                                         </div>
  2277.                                     </div>
  2278.                                     <div class=\"row\">
  2279.                                         <div class=\"col-3\">
  2280.                                             <div class=\"d-inline-block\">
  2281.                                                 <span>{{ 'admin.product.retail_price'|trans }}</span>
  2282.                                                 <span class=\"badge bg-primary ms-1\">
  2283.                                                     {{ 'admin.common.required'|trans }}
  2284.                                                 </span>
  2285.                                             </div>
  2286.                                         </div>
  2287.                                         <div class=\"col mb-2\">
  2288.                                             <div>
  2289.                                                 {{ form_widget(form.class.retailPrice) }}
  2290.                                                 {{ form_errors(form.class.retailPrice) }}
  2291.                                             </div>
  2292.                                         </div>
  2293.                                     </div>
  2294.                                     <div class=\"row\">
  2295.                                         <div class=\"col-3\">
  2296.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2297.                                                  title=\"{{ 'tooltip.product.normal_price'|trans }}\">
  2298.                                                 <span>{{ 'admin.product.normal_price'|trans }}</span>
  2299.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2300.                                             </div>
  2301.                                         </div>
  2302.                                         <div class=\"col mb-2\">
  2303.                                             <div>
  2304.                                                 {{ form_widget(form.class.price01) }}
  2305.                                                 {{ form_errors(form.class.price01) }}
  2306.                                             </div>
  2307.                                         </div>
  2308.                                     </div>
  2309.                                     <div class=\"row\">
  2310.                                         <div class=\"col-3\">
  2311.                                             <div class=\"d-inline-block\">
  2312.                                                 <span>{{ 'admin.product.stock'|trans }}</span>
  2313.                                                 <span class=\"badge bg-primary ms-1\">
  2314.                                                     {{ 'admin.common.required'|trans }}
  2315.                                                 </span>
  2316.                                             </div>
  2317.                                         </div>
  2318.                                         <div class=\"col\">
  2319.                                             <div>
  2320.                                                 {{ form_widget(form.class.stock) }}
  2321.                                                 {{ form_errors(form.class.stock) }}
  2322.                                                 {# TODO: form_layoutの調整 #}
  2323.                                                 {#<div class=\"form-check mb-2\">#}
  2324.                                                 {#<input class=\"form-check-input\"#}
  2325.                                                 {#id=\"{{ form.class.stock_unlimited.vars.id }}\"#}
  2326.                                                 {#name=\"{{ form.class.stock_unlimited.vars.full_name }}\"#}
  2327.                                                 {#type=\"checkbox\"#}
  2328.                                                 {#value=\"{{ form.class.stock_unlimited.vars.value }}\">#}
  2329.                                                 {#<label class=\"form-check-label\"#}
  2330.                                                 {#for=\"{{ form.class.stock_unlimited.vars.id }}\">#}
  2331.                                                 {#{{ 'admin.product.product.stock_unlimited'|trans }}#}
  2332.                                                 {#</label>#}
  2333.                                                 {#</div>#}
  2334.                                                 {{ form_widget(form.class.stock_unlimited) }}
  2335.                                                 {{ form_errors(form.class.stock_unlimited) }}
  2336.                                             </div>
  2337.                                         </div>
  2338.                                     </div>
  2339.                                 {% endif %}
  2340.                                 <div class=\"row\">
  2341.                                     <div class=\"col-3\">
  2342.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2343.                                              title=\"{{ 'tooltip.product.search_word'|trans }}\">
  2344.                                             <span>{{ 'admin.product.search_word'|trans }}</span>
  2345.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2346.                                         </div>
  2347.                                     </div>
  2348.                                     <div class=\"col mb-2\">
  2349.                                         <div>
  2350.                                             {{ form_widget(form.search_word) }}
  2351.                                             {{ form_errors(form.search_word) }}
  2352.                                         </div>
  2353.                                     </div>
  2354.                                 </div>
  2355.                                 {% if has_class == false %}
  2356.                                     <div class=\"row\">
  2357.                                         <div class=\"col-3\">
  2358.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2359.                                                  title=\"{{ 'tooltip.product.product_code'|trans }}\">
  2360.                                                 <span>{{ 'admin.product.product_code'|trans }}</span>
  2361.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2362.                                             </div>
  2363.                                         </div>
  2364.                                         <div class=\"col mb-2\">
  2365.                                             <div>
  2366.                                                 {{ form_widget(form.class.code) }}
  2367.                                                 {{ form_errors(form.class.code) }}
  2368.                                             </div>
  2369.                                         </div>
  2370.                                     </div>
  2371.                                     <div class=\"row\">
  2372.                                         <div class=\"col-3\">
  2373.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2374.                                                  title=\"{{ 'tooltip.product.sale_limit'|trans }}\">
  2375.                                                 <span>{{ 'admin.product.sale_limit'|trans }}</span>
  2376.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2377.                                             </div>
  2378.                                         </div>
  2379.                                         <div class=\"col mb-2\">
  2380.                                             <div>
  2381.                                                 {{ form_widget(form.class.sale_limit) }}
  2382.                                                 {{ form_errors(form.class.sale_limit) }}
  2383.                                             </div>
  2384.                                         </div>
  2385.                                     </div>
  2386.                                     <div class=\"row\">
  2387.                                         <div class=\"col-3\">
  2388.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2389.                                                  title=\"{{ 'tooltip.product.delivery_duration'|trans }}\">
  2390.                                                 <span>{{ 'admin.product.delivery_duration'|trans }}</span>
  2391.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2392.                                             </div>
  2393.                                         </div>
  2394.                                         <div class=\"col mb-2\">
  2395.                                             <div>
  2396.                                                 {{ form_widget(form.class.delivery_duration) }}
  2397.                                                 {{ form_errors(form.class.delivery_duration) }}
  2398.                                             </div>
  2399.                                         </div>
  2400.                                     </div>
  2401.                                     <div class=\"row\">
  2402.                                         <div class=\"col-3\">
  2403.                                             <div class=\"d-inline-block\">
  2404.                                                 <span>{{ 'admin.product.reserved_price'|trans }}</span>
  2405.                                             </div>
  2406.                                         </div>
  2407.                                         <div class=\"col mb-2\">
  2408.                                             <div>
  2409.                                                 {{ form_widget(form.class.reserved_price) }}
  2410.                                                 {{ form_errors(form.class.reserved_price) }}
  2411.                                             </div>
  2412.                                         </div>
  2413.                                     </div>
  2414.                                     <div class=\"row\">
  2415.                                         <div class=\"col-3\">
  2416.                                             <div class=\"d-inline-block\">
  2417.                                                 <span>{{ 'admin.product.reserved_retail_price'|trans }}</span>
  2418.                                             </div>
  2419.                                         </div>
  2420.                                         <div class=\"col mb-2\">
  2421.                                             <div>
  2422.                                                 {{ form_widget(form.class.reserved_retail_price) }}
  2423.                                                 {{ form_errors(form.class.reserved_retail_price) }}
  2424.                                             </div>
  2425.                                         </div>
  2426.                                     </div>
  2427.                                     <div class=\"row\">
  2428.                                         <div class=\"col-3\">
  2429.                                             <div class=\"d-inline-block\">
  2430.                                                 <span>{{ 'admin.product.price_update_datetime'|trans }}</span>
  2431.                                             </div>
  2432.                                         </div>
  2433.                                         <div class=\"col mb-2\">
  2434.                                             <div>
  2435.                                                 {{ form_widget(form.class.price_update_datetime) }}
  2436.                                                 {{ form_errors(form.class.price_update_datetime) }}
  2437.                                             </div>
  2438.                                         </div>
  2439.                                     </div>
  2440.                                     {# 出店者 #}
  2441.                                     {# {% if app.user.getCustomizeRole() == 'ROLE_ADMIN' %} #}
  2442.                                     <div class=\"row\">
  2443.                                         <div class=\"col-3\">
  2444.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2445.                                                  title=\"{{ 'tooltip.product.vendor'|trans }}\">
  2446.                                                 <span>{{ 'admin.product.vendor'|trans }}</span>
  2447.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2448.                                             </div>
  2449.                                         </div>
  2450.                                         <div class=\"col mb-2\">
  2451.                                             <div>
  2452.                                                 {{ form_widget(form.vendor) }}
  2453.                                                 {{ form_errors(form.vendor) }}
  2454.                                             </div>
  2455.                                         </div>
  2456.                                     </div>
  2457.                                     {# {% else %}
  2458.                                         {{ form_widget(form.vendor) }}
  2459.                                     {% endif %} #}
  2460.                                     {% if BaseInfo.option_product_delivery_fee %}
  2461.                                         <div class=\"row\">
  2462.                                             <div class=\"col-3\">
  2463.                                                 <div class=\"d-inline-block\">
  2464.                                                     <span>{{ 'admin.product.delivery_fee'|trans }}</span>
  2465.                                                 </div>
  2466.                                             </div>
  2467.                                             <div class=\"col mb-2\">
  2468.                                                 <div>
  2469.                                                     {{ form_widget(form.class.delivery_fee) }}
  2470.                                                     {{ form_errors(form.class.delivery_fee) }}
  2471.                                                 </div>
  2472.                                             </div>
  2473.                                         </div>
  2474.                                     {% endif %}
  2475.                                     {% if BaseInfo.option_product_tax_rule %}
  2476.                                         <div class=\"row\">
  2477.                                             <div class=\"col-3\">
  2478.                                                 <div class=\"d-inline-block\">
  2479.                                                     <span>{{ 'admin.product.tax_rate'|trans }}</span>
  2480.                                                 </div>
  2481.                                             </div>
  2482.                                             <div class=\"col mb-2\">
  2483.                                                 <div>
  2484.                                                     {{ form_widget(form.class.tax_rate) }}
  2485.                                                     {{ form_errors(form.class.tax_rate) }}
  2486.                                                 </div>
  2487.                                             </div>
  2488.                                         </div>
  2489.                                     {% endif %}
  2490.                                 {% endif %}
  2491.                                 {# エンティティ拡張の自動出力 #}
  2492.                                 {% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
  2493.                                     {% if f.vars.eccube_form_options.form_theme %}
  2494.                                         {% form_theme f f.vars.eccube_form_options.form_theme %}
  2495.                                         {{ form_row(f) }}
  2496.                                     {% else %}
  2497.                                         <div class=\"row\">
  2498.                                             <div class=\"col-3\">
  2499.                                                 <span>{{ f.vars.label|trans }}</span>
  2500.                                             </div>
  2501.                                             <div class=\"col mb-2\">
  2502.                                                 <div>
  2503.                                                     {{ form_widget(f) }}
  2504.                                                     {{ form_errors(f) }}
  2505.                                                 </div>
  2506.                                             </div>
  2507.                                         </div>
  2508.                                     {% endif %}
  2509.                                 {% endfor %}
  2510.                                 {% if has_class == false %}
  2511.                                     {% for f in form.class|filter(f => f.vars.eccube_form_options.auto_render) %}
  2512.                                         {% if f.vars.eccube_form_options.form_theme %}
  2513.                                             {% form_theme f f.vars.eccube_form_options.form_theme %}
  2514.                                             {{ form_row(f) }}
  2515.                                         {% else %}
  2516.                                             <div class=\"row\">
  2517.                                                 <div class=\"col-3\">
  2518.                                                     <span>{{ f.vars.label|trans }}</span>
  2519.                                                 </div>
  2520.                                                 <div class=\"col mb-2\">
  2521.                                                     <div>
  2522.                                                         {{ form_widget(f) }}
  2523.                                                         {{ form_errors(f) }}
  2524.                                                     </div>
  2525.                                                 </div>
  2526.                                             </div>
  2527.                                         {% endif %}
  2528.                                     {% endfor %}
  2529.                                 {% endif %}
  2530.                             </div>
  2531.                         </div>
  2532.                     </div>
  2533.                     {% if id is not null %}
  2534.                         <div class=\"card rounded border-0 mb-4\" style=\"display: none;\">
  2535.                             <div class=\"card-header\">
  2536.                                 <div class=\"row\">
  2537.                                     <div class=\"col-8\">
  2538.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2539.                                              title=\"{{ 'tooltip.product.product_class'|trans }}\">
  2540.                                         <span class=\"card-title\">
  2541.                                             {{ 'admin.product.product_class__card_title'|trans }}
  2542.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2543.                                         </span>
  2544.                                         </div>
  2545.                                     </div>
  2546.                                     <div class=\"col-4 text-end\">
  2547.                                         <a data-bs-toggle=\"collapse\" href=\"#standardConfig\" aria-expanded=\"false\"
  2548.                                            aria-controls=\"standardConfig\">
  2549.                                             <i class=\"fa fa-angle-up fa-lg\"></i>
  2550.                                         </a>
  2551.                                     </div>
  2552.                                 </div>
  2553.                             </div>
  2554.                             <div class=\"collapse show ec-cardCollapse\" id=\"standardConfig\">
  2555.                                 <div class=\"card-body\">
  2556.                                     {% if has_class == true %}
  2557.                                         <table class=\"table table-striped\">
  2558.                                             <thead class=\"table-active\">
  2559.                                             <th class=\"ps-3 pt-2 pb-2\">{{ 'admin.product.class_category1__short'|trans }}</th>
  2560.                                             <th class=\"pt-2 pb-2\">{{ 'admin.product.class_category2__short'|trans }}</th>
  2561.                                             <th class=\"pt-2 pb-2\">{{ 'admin.product.product_code__short'|trans }}</th>
  2562.                                             <th class=\"pt-2 pb-2\">{{ 'admin.product.stock'|trans }}</th>
  2563.                                             <th class=\"pe-3 pt-2 pb-2\">{{ 'admin.product.price'|trans }}</th>
  2564.                                             </thead>
  2565.                                             <tbody>
  2566.                                             {% for Class in Product.ProductClasses %}
  2567.                                                 {% if Class.visible == 1 %}
  2568.                                                     <tr>
  2569.                                                         <td class=\"ps-3\">{% if Class.hasClassCategory1 %}{{ Class.ClassCategory1.name }}{% endif %}</td>
  2570.                                                         <td>{% if Class.hasClassCategory2 %}{{ Class.ClassCategory2.name }}{% endif %}</td>
  2571.                                                         <td>{{ Class.code }}</td>
  2572.                                                         <td>{% if Class.stock_unlimited %}{{ 'admin.product.stock_unlimited__short'|trans }}{% else %}{{ Class.stock }}{% endif %}</td>
  2573.                                                         <td class=\"pe-3\">{{ Class.price02|price }}</td>
  2574.                                                     </tr>
  2575.                                                 {% endif %}
  2576.                                             {% endfor %}
  2577.                                             </tbody>
  2578.                                         </table>
  2579.                                     {% endif %}
  2580.                                     <div class=\"d-block text-center text-center\">
  2581.                                         <a href=\"{{ path('admin_product_product_class', { 'id' : id }) }}\" class=\"btn btn-ec-regular\" data-action=\"confirm\"
  2582.                                            title=\"{{ 'admin.common.move_to_confirm_message'|trans({
  2583.                                                '%name%' : 'admin.product.product_class_registration'|trans
  2584.                                            }) }}\">{{ 'admin.product.product_class__confirm_of_product'|trans }}</a>
  2585.                                     </div>
  2586.                                 </div>
  2587.                             </div>
  2588.                         </div>
  2589.                     {% endif %}
  2590.                     <div class=\"card rounded border-0 mb-4\">
  2591.                         <div class=\"card-header\">
  2592.                             <div class=\"row\">
  2593.                                 <div class=\"col-8\">
  2594.                                     <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2595.                                          title=\"{{ 'tooltip.product.free_area'|trans }}\">
  2596.                                         <span class=\"card-title\">{{ 'admin.product.free_area__card_title'|trans }}</span>
  2597.                                         <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2598.                                     </div>
  2599.                                 </div>
  2600.                                 <div class=\"col-4 text-end\">
  2601.                                     <a data-bs-toggle=\"collapse\" href=\"#freeArea\" aria-expanded=\"false\"
  2602.                                        aria-controls=\"freeArea\">
  2603.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  2604.                                     </a>
  2605.                                 </div>
  2606.                             </div>
  2607.                         </div>
  2608.                         <div class=\"collapse show ec-cardCollapse\" id=\"freeArea\">
  2609.                             <div class=\"card-body\">
  2610.                                 <div class=\"row\">
  2611.                                     <div class=\"col-3\">
  2612.                                         <span>{{ 'admin.product.free_area'|trans }}</span>
  2613.                                     </div>
  2614.                                     <div class=\"col-9\">
  2615.                                         <div>
  2616.                                             {{ form_widget(form.free_area, {id: 'wysiwyg-area', attr : { rows : \"8\"} }) }}
  2617.                                             {{ form_errors(form.free_area) }}
  2618.                                         </div>
  2619.                                     </div>
  2620.                                 </div>
  2621.                             </div>
  2622.                         </div>
  2623.                     </div>
  2624.                 </div>
  2625.             </div>
  2626.             <div class=\"c-contentsArea__secondaryCol\">
  2627.                 <div class=\"c-secondaryCol\">
  2628.                     {% if id is not null %}
  2629.                         <div class=\"card rounded border-0 mb-4\">
  2630.                             <div class=\"collapse show ec-cardCollapse\" id=\"preview\">
  2631.                                 <div class=\"card-body\">
  2632.                                     <div class=\"d-block text-center\">
  2633.                                         <a class=\"btn w-100 btn-ec-regular\"
  2634.                                            target=\"_blank\"
  2635.                                            href=\"{{ url('product_detail', {id:id}) }}\"
  2636.                                            title=\"{{ 'admin.product.preview'|trans }}\">{{ 'admin.product.preview'|trans }}</a>
  2637.                                     </div>
  2638.                                 </div>
  2639.                             </div>
  2640.                         </div>
  2641.                     {% endif %}
  2642.                     <div class=\"card rounded border-0 mb-4\">
  2643.                         <div class=\"card-header\">
  2644.                             <div class=\"row\">
  2645.                                 <div class=\"col-8\">
  2646.                                     <div class=\"d-inline-block\">
  2647.                                         <span class=\"card-title\">{{ 'admin.product.category__product_card_title'|trans }}</span>
  2648.                                     </div>
  2649.                                 </div>
  2650.                                 <div class=\"col-4 text-end\">
  2651.                                     <a data-bs-toggle=\"collapse\" href=\"#category\" aria-expanded=\"false\"
  2652.                                        aria-controls=\"category\">
  2653.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  2654.                                     </a>
  2655.                                 </div>
  2656.                             </div>
  2657.                         </div>
  2658.                         <div class=\"collapse show ec-cardCollapse\" id=\"category\">
  2659.                             <div class=\"card-body\">
  2660.                                 <div class=\"mb-3\">
  2661.                                     <div class=\"row\">
  2662.                                         <div class=\"col\">
  2663.                                             <div class=\"input-group\">
  2664.                                                 <div class=\"input-group-text\">
  2665.                                                     <span id=\"basic-addon1\">
  2666.                                                             <i class=\"fa fa-search\"></i>
  2667.                                                     </span>
  2668.                                                 </div>
  2669.                                                 <input id=\"search-category\" class=\"form-control\" type=\"search\"
  2670.                                                        placeholder=\"{{ 'admin.product.search_category'|trans }}\"
  2671.                                                        aria-label=\"Search\">
  2672.                                             </div>
  2673.                                         </div>
  2674.                                     </div>
  2675.                                 </div>
  2676.                                 {% macro tree(ChoicedIds, Category, form) %}
  2677.                                     {% import _self as selfMacro %}
  2678.                                     <li class=\"c-directoryTree--registerItem category-li\">
  2679.                                         <input type=\"checkbox\" id=\"admin_product_category_{{ Category.id }}\" name=\"admin_product[Category][]\" value=\"{{ Category.id }}\" {% if Category.id in ChoicedIds %}checked{% endif %}>
  2680.                                         <label for=\"admin_product_category_{{ Category.id }}\">{{ Category.name }}</label>
  2681.                                         <ul class=\"list-unstyled\">
  2682.                                             {% for child,ChildCategory in Category.children %}
  2683.                                                 {{ selfMacro.tree(ChoicedIds, ChildCategory, form) }}
  2684.                                             {% endfor %}
  2685.                                         </ul>
  2686.                                     </li>
  2687.                                 {% endmacro %}
  2688.                                 <div class=\"c-directoryTree--register rounded border mb-3 p-3\">
  2689.                                     {% import _self as renderMacro %}
  2690.                                     {% for TopCategory in TopCategories %}
  2691.                                         <ul class=\"list-unstyled\">
  2692.                                             {{ renderMacro.tree(ChoicedCategoryIds, TopCategory, form.Category) }}
  2693.                                         </ul>
  2694.                                     {% endfor %}
  2695.                                     {{ form_errors(form.Category) }}
  2696.                                 </div>
  2697.                                 <div class=\"d-block text-center\">
  2698.                                     <a class=\"btn w-100 btn-ec-regular\"
  2699.                                        data-action=\"confirm\"
  2700.                                        href=\"{{ path('admin_product_category') }}\"
  2701.                                        title=\"{{ 'admin.common.move_to_confirm_message'|trans({
  2702.                                            '%name%' : 'admin.product.category_management'|trans}) }}\">{{ 'admin.product.move_to_category'|trans }}</a>
  2703.                                 </div>
  2704.                             </div>
  2705.                         </div>
  2706.                     </div>
  2707.                     <div class=\"card rounded border-0 mb-4\">
  2708.                         <div class=\"card-header\">
  2709.                             <div class=\"row\">
  2710.                                 <div class=\"col-8\">
  2711.                                     <div class=\"d-inline-block\">
  2712.                                         <span class=\"card-title\">
  2713.                                             {{ 'admin.product.tag__product_card_title'|trans }}
  2714.                                         </span>
  2715.                                     </div>
  2716.                                 </div>
  2717.                                 <div class=\"col-4 text-end\">
  2718.                                     <a data-bs-toggle=\"collapse\" href=\"#tag\" aria-expanded=\"false\" aria-controls=\"tag\">
  2719.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  2720.                                     </a>
  2721.                                 </div>
  2722.                             </div>
  2723.                         </div>
  2724.                         <div class=\"collapse show ec-cardCollapse\" id=\"tag\">
  2725.                             <div class=\"card-body\">
  2726.                                 {% if(Tags|length > 0) %}
  2727.                                     {% for Tag in Tags %}
  2728.                                         <div class=\"d-inline-block mb-2 me-2\">
  2729.                                             <button class=\"btn btn-outline-primary\" type=\"button\">{{ Tag.name }}</button>
  2730.                                         </div>
  2731.                                     {% endfor %}
  2732.                                 {% endif %}
  2733.                                 <div class=\"d-block mb-3\" data-bs-toggle=\"collapse\" href=\"#allTags\" role=\"button\"
  2734.                                      aria-expanded=\"false\" aria-controls=\"allTags\">
  2735.                                     <a>
  2736.                                         <i class=\"fa fa-plus-square-o fw-bold me-1\"></i>
  2737.                                         <span class=\"fw-bold\">{{ 'admin.product.save_tag'|trans }}</span>
  2738.                                     </a>
  2739.                                 </div>
  2740.                                 <div class=\"collapse p-3 bg-ec-lightGray mb-3 ec-collapse\" id=\"allTags\">
  2741.                                     <div class=\"d-none\">
  2742.                                         {{ form_widget(form.Tag) }}
  2743.                                     </div>
  2744.                                     {% if(TagsList|length > 0) %}
  2745.                                         {% for Tag in TagsList %}
  2746.                                             <div class=\"d-inline-block mb-2 me-2\">
  2747.                                                 <button class=\"btn btn-outline-secondary\" type=\"button\"
  2748.                                                         data-tag-id=\"{{ Tag.id }}\">{{ Tag.name }}</button>
  2749.                                             </div>
  2750.                                         {% endfor %}
  2751.                                     {% endif %}
  2752.                                     <div class=\"d-block mb-3\" data-bs-toggle=\"collapse\" href=\"#allTags\" role=\"button\"
  2753.                                          aria-expanded=\"false\" aria-controls=\"allTags\"></div>
  2754.                                 </div>
  2755.                                 <div class=\"d-block text-center\">
  2756.                                     <a href=\"{{ path('admin_product_tag') }}\"
  2757.                                        class=\"btn w-100 btn-ec-regular\"
  2758.                                        data-action=\"confirm\"
  2759.                                        title=\"{{ 'admin.common.move_to_confirm_message'|trans({
  2760.                                            '%name%' : 'admin.product.tag_management'|trans }) }}\">{{ 'admin.product.move_to_tag'|trans }}</a>
  2761.                                 </div>
  2762.                             </div>
  2763.                         </div>
  2764.                     </div>
  2765.                     <div class=\"card rounded border-0 mb-4\">
  2766.                         <div class=\"card-header\">
  2767.                             <div class=\"row\">
  2768.                                 <div class=\"col-8\">
  2769.                                     <span class=\"card-title\">{{ 'admin.product.create_date__card_title'|trans }}</span>
  2770.                                 </div>
  2771.                                 <div class=\"col-4 text-end\">
  2772.                                     <a data-bs-toggle=\"collapse\" href=\"#update\" aria-expanded=\"false\"
  2773.                                        aria-controls=\"update\">
  2774.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  2775.                                     </a>
  2776.                                 </div>
  2777.                             </div>
  2778.                         </div>
  2779.                         <div class=\"collapse show ec-cardCollapse\" id=\"update\">
  2780.                             <div class=\"card-body\">
  2781.                                 <div class=\"row mb-2\">
  2782.                                     <div class=\"col\">
  2783.                                         <i class=\"fa fa-flag me-1\"></i>
  2784.                                         <span>{{ 'admin.common.create_date'|trans }}</span>
  2785.                                     </div>
  2786.                                     <div class=\"col\">
  2787.                                         <span>:{{ Product.create_date|date_min }}</span>
  2788.                                     </div>
  2789.                                 </div>
  2790.                                 <div class=\"row mb-2\">
  2791.                                     <div class=\"col\">
  2792.                                         <i class=\"fa fa-refresh me-1\"></i>
  2793.                                         <span>{{ 'admin.common.update_date'|trans }}</span>
  2794.                                     </div>
  2795.                                     <div class=\"col\">
  2796.                                         <span>:{{ Product.update_date|date_min }}</span>
  2797.                                     </div>
  2798.                                 </div>
  2799.                                 <div class=\"row mb-2\">
  2800.                                     <div class=\"col\">
  2801.                                         <i class=\"fa fa-user me-1\"></i>
  2802.                                         <span>{{ 'admin.common.last_updater'|trans }}</span>
  2803.                                     </div>
  2804.                                     <div class=\"col\">
  2805.                                         <span>:{{ Product.Creator ? Product.Creator.name }}</span>
  2806.                                     </div>
  2807.                                 </div>
  2808.                             </div>
  2809.                         </div>
  2810.                     </div>
  2811.                     <div class=\"card rounded border-0 mb-4\">
  2812.                         <div class=\"card-header\">
  2813.                             <div class=\"row\">
  2814.                                 <div class=\"col-8\">
  2815.                                     <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2816.                                          title=\"{{ 'tooltip.product.shop_memo'|trans }}\">
  2817.                                         <span class=\"card-title\">
  2818.                                             {{ 'admin.common.shop_memo'|trans }}
  2819.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2820.                                         </span>
  2821.                                     </div>
  2822.                                 </div>
  2823.                                 <div class=\"col-4 text-end\">
  2824.                                     <a data-bs-toggle=\"collapse\" href=\"#shopMemo\" aria-expanded=\"false\"
  2825.                                        aria-controls=\"shopMemo\">
  2826.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  2827.                                     </a>
  2828.                                 </div>
  2829.                             </div>
  2830.                         </div>
  2831.                         <div class=\"collapse show ec-cardCollapse\" id=\"shopMemo\">
  2832.                             <div class=\"card-body\">
  2833.                                 {{ form_widget(form.note, { attr : { rows : \"8\"} }) }}
  2834.                                 {{ form_errors(form.note) }}
  2835.                             </div>
  2836.                         </div>
  2837.                     </div>
  2838.                 </div>
  2839.             </div>
  2840.         </div>
  2841.         <div class=\"c-conversionArea\">
  2842.             <div class=\"c-conversionArea__container\">
  2843.                 <div class=\"row justify-content-between align-items-center\">
  2844.                     <div class=\"col-6\">
  2845.                         <div class=\"c-conversionArea__leftBlockItem\">
  2846.                             <a class=\"c-baseLink\" href=\"{{ path('admin_product_page', { page_no : app.session.get('eccube.admin.product.search.page_no')|default('1') } ) }}\"
  2847.                                data-action=\"confirm\" title=\"{{ 'admin.common.move_to_confirm_message'|trans({'%name%' : 'admin.product.product_list'|trans }) }}\">
  2848.                                 <i class=\"fa fa-backward\" aria-hidden=\"true\"></i><span>{{ 'admin.product.product_list'|trans }}</span>
  2849.                             </a>
  2850.                         </div>
  2851.                     </div>
  2852.                     <div class=\"col-6\">
  2853.                         <div id=\"ex-conversion-action\" class=\"row align-items-center justify-content-end\">
  2854.                             <div class=\"col-auto\">
  2855.                                 {{ form_widget(form.Status) }}
  2856.                                 {{ form_errors(form.Status) }}
  2857.                             </div>
  2858.                             <div class=\"col-auto\">
  2859.                                 <button class=\"btn btn-ec-conversion px-5\" type=\"submit\">{{ 'admin.common.registration'|trans }}</button>
  2860.                             </div>
  2861.                         </div>
  2862.                     </div>
  2863.                 </div>
  2864.             </div>
  2865.         </div>
  2866.     </form>
  2867. {% endblock %}
  2868. ""@admin/Product/product.twig""/home/bluehippo91/www/bluehippo91.sakura.ne.jp/app/template/admin/Product/product.twig");
  2869.     }
  2870.     
  2871.     public function checkSecurity()
  2872.     {
  2873.         static $tags = array("set" => 13"form_theme" => 18"if" => 27"for" => 87"import" => 825"macro" => 811);
  2874.         static $filters = array("escape" => 15"trans" => 15"filter" => 622"price" => 705"length" => 863"date_min" => 927"default" => 986);
  2875.         static $functions = array("path" => 49"form_widget" => 107"form_errors" => 304"form_row" => 625"url" => 769);
  2876.         try {
  2877.             $this->sandbox->checkSecurity(
  2878.                 ['set''form_theme''if''for''import''macro'],
  2879.                 ['escape''trans''filter''price''length''date_min''default'],
  2880.                 ['path''form_widget''form_errors''form_row''url']
  2881.             );
  2882.         } catch (SecurityError $e) {
  2883.             $e->setSourceContext($this->source);
  2884.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  2885.                 $e->setTemplateLine($tags[$e->getTagName()]);
  2886.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  2887.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  2888.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  2889.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  2890.             }
  2891.             throw $e;
  2892.         }
  2893.     }
  2894. }