var/cache/dev/twig/9a/9a6d05a1ac50f768f2ea783b24a6871b75e01989e061c515854a90cd485990f2.php line 41

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_51e193f48c1c73bcc8869151bfd5ab9d9de23fb83cd36e08e1758449f97302a5 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.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 11
  32.         return "@admin/default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@admin/Product/product.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@admin/Product/product.twig"));
  41.         // line 13
  42.         $context["menus"] = [=> "product"=> "product_edit"];
  43.         // line 18
  44.         $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);
  45.         // line 11
  46.         $this->parent $this->loadTemplate("@admin/default_frame.twig""@admin/Product/product.twig"11);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  50.         
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  52.     }
  53.     // line 15
  54.     public function block_title($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_registration"), "html"nulltrue);
  62.         
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  64.         
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  66.     }
  67.     // line 16
  68.     public function block_sub_title($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sub_title"));
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sub_title"));
  75.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_management"), "html"nulltrue);
  76.         
  77.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  78.         
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  80.     }
  81.     // line 20
  82.     public function block_javascript($context, array $blocks = [])
  83.     {
  84.         $macros $this->macros;
  85.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  86.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  87.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  88.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  89.         // line 21
  90.         echo "    <script>
  91.         \$(document).on('drop dragover', function(e) {
  92.             e.preventDefault();
  93.         });
  94.         \$(function() {
  95.             ";
  96.         // line 27
  97.         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)) {
  98.             // line 28
  99.             echo "            if (\$(\"#";
  100.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse28), "stock_unlimited", [], "any"falsefalsefalse28), "vars", [], "any"falsefalsefalse28), "id", [], "any"falsefalsefalse28), "html"nulltrue);
  101.             echo "\").prop(\"checked\")) {
  102.                 \$(\"#";
  103.             // line 29
  104.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse29), "stock", [], "any"falsefalsefalse29), "vars", [], "any"falsefalsefalse29), "id", [], "any"falsefalsefalse29), "html"nulltrue);
  105.             echo "\").attr(\"disabled\", \"disabled\").val('');
  106.             } else {
  107.                 \$(\"#";
  108.             // line 31
  109.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse31), "stock", [], "any"falsefalsefalse31), "vars", [], "any"falsefalsefalse31), "id", [], "any"falsefalsefalse31), "html"nulltrue);
  110.             echo "\").removeAttr(\"disabled\");
  111.             }
  112.             \$(\"#";
  113.             // line 33
  114.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse33), "stock_unlimited", [], "any"falsefalsefalse33), "vars", [], "any"falsefalsefalse33), "id", [], "any"falsefalsefalse33), "html"nulltrue);
  115.             echo "\").on(\"click change\", function() {
  116.                 if (\$(this).prop(\"checked\")) {
  117.                     \$(\"#";
  118.             // line 35
  119.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse35), "stock", [], "any"falsefalsefalse35), "vars", [], "any"falsefalsefalse35), "id", [], "any"falsefalsefalse35), "html"nulltrue);
  120.             echo "\").attr(\"disabled\", \"disabled\").val('');
  121.                 } else {
  122.                     \$(\"#";
  123.             // line 37
  124.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse37), "stock", [], "any"falsefalsefalse37), "vars", [], "any"falsefalsefalse37), "id", [], "any"falsefalsefalse37), "html"nulltrue);
  125.             echo "\").removeAttr(\"disabled\");
  126.                 }
  127.             });
  128.             ";
  129.         }
  130.         // line 41
  131.         echo "
  132.             // ファイルアップロード
  133.             // see https://pqina.nl/filepond/
  134.             var inputFileElement = document.querySelector('input[type=file]');
  135.             ";
  136.         // line 45
  137.         if (((twig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'45$this->source); })()), "locale", [], "any"falsefalsefalse45) == "ja") || (twig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'45$this->source); })()), "locale", [], "any"falsefalsefalse45) == "en"))) {
  138.             // line 46
  139.             echo "            FilePond.setOptions(FilePondLocale_";
  140.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'46$this->source); })()), "locale", [], "any"falsefalsefalse46), "html"nulltrue);
  141.             echo ");
  142.             ";
  143.         }
  144.         // line 48
  145.         echo "            FilePond.setOptions({
  146.                 server: {
  147.                     process: {
  148.                         url: '";
  149.         // line 51
  150.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_image_process");
  151.         echo "',
  152.                         headers: {
  153.                             'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content'),
  154.                             'X-Requested-With': 'XMLHttpRequest'
  155.                         }
  156.                     },
  157.                     load: {
  158.                         url: '";
  159.         // line 58
  160.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_image_load");
  161.         echo "?source=',
  162.                         headers: {
  163.                             'X-Requested-With': 'XMLHttpRequest'
  164.                         }
  165.                     },
  166.                     revert: {
  167.                         url: '";
  168.         // line 64
  169.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_image_revert");
  170.         echo "',
  171.                         headers: {
  172.                             'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content'),
  173.                             'X-Requested-With': 'XMLHttpRequest'
  174.                         }
  175.                     }
  176.                 }
  177.             });
  178.             var pond = FilePond.create(inputFileElement, {
  179.                 allowFileTypeValidation: true,
  180.                 acceptedFileTypes: [
  181.                     'image/gif',
  182.                     'image/png',
  183.                     'image/jpeg'
  184.                 ],
  185.                 allowFileSizeValidation: true,
  186.                 maxFileSize: 10000000,
  187.                 maxFiles: 10,
  188.                 allowBrowse: true,
  189.                 allowDrop: true,
  190.                 allowReorder: true,
  191.                 labelIdle: '<i class=\"fa fa-cloud-upload fa-3x text-ec-lightGray mx-3 align-middle\" aria-hidden=\"true\" style=\"font-size: 40px\"></i>";
  192.         // line 85
  193.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.drag_and_drop_image_description"), "html"nulltrue);
  194.         echo "<span class=\"filepond--label-action\">";
  195.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.file_select"), "html"nulltrue);
  196.         echo "</span>',
  197.                 styleItemPanelAspectRatio: 0.5625,
  198.                 // 保存されている画像のロード
  199.                 files: [
  200.                     ";
  201.         // line 89
  202.         $context['_parent'] = $context;
  203.         $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.'89$this->source); })()), "images", [], "any"falsefalsefalse89));
  204.         foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  205.             // line 90
  206.             echo "                    {
  207.                         source: '";
  208.             // line 91
  209.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "vars", [], "any"falsefalsefalse91), "value", [], "any"falsefalsefalse91), "html"nulltrue);
  210.             echo "',
  211.                         options: {
  212.                             type: 'local'
  213.                         }
  214.                     },
  215.                     ";
  216.         }
  217.         $_parent $context['_parent'];
  218.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  219.         $context array_intersect_key($context$_parent) + $_parent;
  220.         // line 97
  221.         echo "                    // 追加してすぐの画像のロード. バリデーションエラーの場合など.
  222.                     ";
  223.         // line 98
  224.         $context['_parent'] = $context;
  225.         $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.'98$this->source); })()), "add_images", [], "any"falsefalsefalse98));
  226.         foreach ($context['_seq'] as $context["_key"] => $context["add_image"]) {
  227.             // line 99
  228.             echo "                    {
  229.                         source: '";
  230.             // line 100
  231.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["add_image"], "vars", [], "any"falsefalsefalse100), "value", [], "any"falsefalsefalse100), "html"nulltrue);
  232.             echo "',
  233.                         options: {
  234.                             type: 'local'
  235.                         }
  236.                     },
  237.                     ";
  238.         }
  239.         $_parent $context['_parent'];
  240.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['add_image'], $context['_parent'], $context['loop']);
  241.         $context array_intersect_key($context$_parent) + $_parent;
  242.         // line 106
  243.         echo "                ]
  244.             });
  245.             // 画像が追加されたら add_images にファイル名を追加する
  246.             var proto_add = '";
  247.         // line 109
  248.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'109$this->source); })()), "add_images", [], "any"falsefalsefalse109), "vars", [], "any"falsefalsefalse109), "prototype", [], "any"falsefalsefalse109), 'widget');
  249.         echo "';
  250.             pond.on('processfile', function(error, file) {
  251.                 if (error) {
  252.                     console.log(error);
  253.                 } else {
  254.                     \$('#upload-zone').append(
  255.                         \$(proto_add.replace(/__name__/g, file.id))
  256.                             .val(file.serverId)
  257.                             .addClass('add_images')
  258.                     );
  259.                 }
  260.             });
  261.             // 画像が削除されたら delete_images にファイル名を追加する
  262.             var proto_del = '";
  263.         // line 122
  264.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'122$this->source); })()), "delete_images", [], "any"falsefalsefalse122), "vars", [], "any"falsefalsefalse122), "prototype", [], "any"falsefalsefalse122), 'widget');
  265.         echo "';
  266.             pond.on('removefile', function(error, file) {
  267.                 if (error) {
  268.                     console.log(error);
  269.                 } else {
  270.                     // file.serverId にはアップロードしたファイル名が格納される.
  271.                     if (file.serverId) {
  272.                         \$('#upload-zone').append(
  273.                             \$(proto_del.replace(/__name__/g, file.id))
  274.                                 .val(file.serverId)
  275.                                 .addClass('del_images')
  276.                         );
  277.                     }
  278.                     // 追加してすぐ削除した画像があれば削除する
  279.                     \$('#upload-zone').find('#admin_product_add_images_' + file.id).remove(); // 追加してすぐ削除した画像
  280.                     \$('#upload-zone').find('.add_images[value=\"' + file.filename + '\"]').remove(); // 追加後, バリデーションエラーが発生した後に削除した画像
  281.                 }
  282.             });
  283.             pond.on('initfile', function() {
  284.                 \$('#product_image_error').hide();
  285.             });
  286.             pond.on('error', function(error, file) {
  287.                 var message = '";
  288.         // line 144
  289.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.upload_error"), "html"nulltrue);
  290.         echo "';
  291.                 if (error.main !== undefined) {
  292.                     message = `\${error.main}: \${error.sub}`;
  293.                 }
  294.                 \$('#product_image_error')
  295.                     .show()
  296.                     .find('.form-error-message').text(message);
  297.                 // エラーメッセージが表示されてからプレビューエリアのエラーメッセージを非表示にする
  298.                 setTimeout(function() {
  299.                     \$('.filepond--file-status').hide();
  300.                 }, 300);
  301.             });
  302.             // バリデーションエラーが出た場合に画像を保持するための hidden を追加しておく
  303.             var proto_image = '";
  304.         // line 159
  305.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'159$this->source); })()), "images", [], "any"falsefalsefalse159), "vars", [], "any"falsefalsefalse159), "prototype", [], "any"falsefalsefalse159), 'widget');
  306.         echo "';
  307.             ";
  308.         // line 160
  309.         $context['_parent'] = $context;
  310.         $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.'160$this->source); })()), "images", [], "any"falsefalsefalse160));
  311.         $context['loop'] = [
  312.           'parent' => $context['_parent'],
  313.           'index0' => 0,
  314.           'index'  => 1,
  315.           'first'  => true,
  316.         ];
  317.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  318.             $length count($context['_seq']);
  319.             $context['loop']['revindex0'] = $length 1;
  320.             $context['loop']['revindex'] = $length;
  321.             $context['loop']['length'] = $length;
  322.             $context['loop']['last'] = === $length;
  323.         }
  324.         foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  325.             // line 161
  326.             echo "                \$('#upload-zone').append(
  327.                     \$(proto_image.replace(/__name__/g, '";
  328.             // line 162
  329.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse162), "html"nulltrue);
  330.             echo "'))
  331.                         .val('";
  332.             // line 163
  333.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "vars", [], "any"falsefalsefalse163), "value", [], "any"falsefalsefalse163), "html"nulltrue);
  334.             echo "')
  335.                         .addClass('images')
  336.                 );
  337.             ";
  338.             ++$context['loop']['index0'];
  339.             ++$context['loop']['index'];
  340.             $context['loop']['first'] = false;
  341.             if (isset($context['loop']['length'])) {
  342.                 --$context['loop']['revindex0'];
  343.                 --$context['loop']['revindex'];
  344.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  345.             }
  346.         }
  347.         $_parent $context['_parent'];
  348.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  349.         $context array_intersect_key($context$_parent) + $_parent;
  350.         // line 167
  351.         echo "            ";
  352.         $context['_parent'] = $context;
  353.         $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.'167$this->source); })()), "add_images", [], "any"falsefalsefalse167));
  354.         foreach ($context['_seq'] as $context["_key"] => $context["add_image"]) {
  355.             // line 168
  356.             echo "                \$('#upload-zone').append(
  357.                     \$('";
  358.             // line 169
  359.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["add_image"], 'widget');
  360.             echo "')
  361.                         .val('";
  362.             // line 170
  363.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["add_image"], "vars", [], "any"falsefalsefalse170), "value", [], "any"falsefalsefalse170), "html"nulltrue);
  364.             echo "')
  365.                         .addClass('add_images')
  366.                 );
  367.             ";
  368.         }
  369.         $_parent $context['_parent'];
  370.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['add_image'], $context['_parent'], $context['loop']);
  371.         $context array_intersect_key($context$_parent) + $_parent;
  372.         // line 174
  373.         echo "            ";
  374.         $context['_parent'] = $context;
  375.         $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.'174$this->source); })()), "delete_images", [], "any"falsefalsefalse174));
  376.         foreach ($context['_seq'] as $context["_key"] => $context["delete_image"]) {
  377.             // line 175
  378.             echo "                \$('#upload-zone').append(
  379.                     \$('";
  380.             // line 176
  381.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["delete_image"], 'widget');
  382.             echo "').addClass('del_images')
  383.                 );
  384.             ";
  385.         }
  386.         $_parent $context['_parent'];
  387.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['delete_image'], $context['_parent'], $context['loop']);
  388.         $context array_intersect_key($context$_parent) + $_parent;
  389.         // line 179
  390.         echo "
  391.             // タグ管理
  392.             var mainTags = \$('#allTags');
  393.             var adminProductTag = \$('#admin_product_Tag');
  394.             \$('input', adminProductTag).each(function() {
  395.                 if (\$(this).is(':checked')) {
  396.                     \$('button[data-tag-id=\"' + \$(this).val() + '\"]').removeClass('btn-outline-secondary').addClass('btn-outline-primary');
  397.                 }
  398.             });
  399.             mainTags.on('click', 'button.btn', function() {
  400.                 var btnTag = \$(this);
  401.                 var tagId = btnTag.data('tag-id');
  402.                 if (btnTag.hasClass('btn-outline-primary')) {
  403.                     btnTag.removeClass('btn-outline-primary').addClass('btn-outline-secondary');
  404.                     \$('input[value=\"' + tagId + '\"]', mainTags).prop('checked', false);
  405.                 } else {
  406.                     btnTag.removeClass('btn-outline-secondary').addClass('btn-outline-primary');
  407.                     \$('input[value=\"' + tagId + '\"]', mainTags).prop('checked', true);
  408.                 }
  409.             });
  410.             var confirmFormChange = function(form, target, modal) {
  411.                 var returnLink = form.find('input[type=\"hidden\"][name*=\"return_link\"]'),
  412.                     saveBtn = modal.find('a[data-action=\"save\"]'),
  413.                     cancelBtn = modal.find('a[data-action=\"cancel\"]');
  414.                 modal.on('hidden.bs.modal', function() {
  415.                     returnLink.val('');
  416.                 });
  417.                 saveBtn.on('click', function() {
  418.                     returnLink.val(\$(this).data('return-link'));
  419.                     \$(this).addClass('disabled');
  420.                     form.submit();
  421.                 });
  422.                 target.on('click', function() {
  423.                     modal.find('.modal-body .screen-name').text(\$(this).attr('title'));
  424.                     modal.modal('show');
  425.                     saveBtn.data('return-link', \$(this).attr('href'));
  426.                     cancelBtn.attr('href', \$(this).attr('href'));
  427.                     return false;
  428.                 });
  429.             };
  430.             confirmFormChange(\$('#form1'), \$('a[data-action=\"confirm\"]'), \$('#confirmFormChangeModal'))
  431.         });
  432.         // searchWordの実行
  433.         \$('#search-category').on('input', function () {
  434.             searchWord(\$(this).val(), \$('.category-li'));
  435.         });
  436.     </script>
  437. ";
  438.         
  439.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  440.         
  441.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  442.     }
  443.     // line 230
  444.     public function block_main($context, array $blocks = [])
  445.     {
  446.         $macros $this->macros;
  447.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  448.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  449.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  450.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  451.         // line 231
  452.         echo "    <!-- 移動確認モーダル-->
  453.     <div class=\"modal fade\" id=\"confirmFormChangeModal\" tabindex=\"-1\" role=\"dialog\"
  454.          aria-labelledby=\"confirmFormChangeModal\" aria-hidden=\"true\">
  455.         <div class=\"modal-dialog\" role=\"document\">
  456.             <div class=\"modal-content\">
  457.                 <div class=\"modal-header\">
  458.                     <h5 class=\"modal-title\">";
  459.         // line 237
  460.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_title"), "html"nulltrue);
  461.         echo "</h5>
  462.                     <button class=\"btn-close\" type=\"button\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
  463.                     </button>
  464.                 </div>
  465.                 <div class=\"modal-body\">
  466.                     <p class=\"screen-name\"></p>
  467.                 </div>
  468.                 <div class=\"modal-footer\">
  469.                     <a class=\"btn btn-ec-conversion\" data-action=\"save\" href=\"javascript:void(0)\">
  470.                         ";
  471.         // line 247
  472.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_save_and_move"), "html"nulltrue);
  473.         echo "
  474.                     </a>
  475.                     <a class=\"btn btn-ec-sub\" data-action=\"cancel\" href=\"javascript:void(0)\">
  476.                         ";
  477.         // line 250
  478.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_move_only"), "html"nulltrue);
  479.         echo "
  480.                     </a>
  481.                 </div>
  482.             </div>
  483.         </div>
  484.     </div>
  485.     <form role=\"form\" name=\"form1\" id=\"form1\" method=\"post\" action=\"\" novalidate enctype=\"multipart/form-data\">
  486.         ";
  487.         // line 257
  488.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'257$this->source); })()), "_token", [], "any"falsefalsefalse257), 'widget');
  489.         echo "
  490.         ";
  491.         // line 258
  492.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'258$this->source); })()), "return_link", [], "any"falsefalsefalse258), 'widget');
  493.         echo "
  494.     <div class=\"row\">
  495.         <div class=\"c-contentsArea__cols\" style=\"padding-bottom:0px\">
  496.             <div class=\"c-contentsArea__primaryCol\">
  497.                 <div class=\"c-primaryCol\">
  498.                     <div class=\"card rounded border-0 mb-4\">
  499.                         <div class=\"card-header\">
  500.                             <div class=\"row\">
  501.                                 <div class=\"col-8\">
  502.                                     <div class=\"d-inline-block\">
  503.                                     <span class=\"card-title\">
  504.                                         ";
  505.         // line 269
  506.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product__card_title"), "html"nulltrue);
  507.         echo "
  508.                                     </span>
  509.                                     </div>
  510.                                 </div>
  511.                                 <div class=\"col-4 text-end\">
  512.                                     <a data-bs-toggle=\"collapse\" href=\"#basicConfig\" aria-expanded=\"false\"
  513.                                        aria-controls=\"basicConfig\">
  514.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  515.                                     </a>
  516.                                 </div>
  517.                             </div>
  518.                         </div>
  519.                         <div class=\"collapse show ec-cardCollapse\" id=\"basicConfig\">
  520.                             <div class=\"card-body\">
  521.                                 ";
  522.         // line 283
  523.         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.'283$this->source); })()), "id", [], "any"falsefalsefalse283)) {
  524.             // line 284
  525.             echo "                                    <div class=\"row\">
  526.                                         <div class=\"col-3\">
  527.                                             <div>
  528.                                                 <span>";
  529.             // line 287
  530.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_id"), "html"nulltrue);
  531.             echo "</span>
  532.                                             </div>
  533.                                         </div>
  534.                                         <div class=\"col\">
  535.                                             <p>";
  536.             // line 291
  537.             echo twig_escape_filter($this->envtwig_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.'291$this->source); })()), "id", [], "any"falsefalsefalse291), "html"nulltrue);
  538.             echo "</p>
  539.                                         </div>
  540.                                     </div>
  541.                                 ";
  542.         }
  543.         // line 295
  544.         echo "                                <div class=\"row\">
  545.                                     <div class=\"col-3\">
  546.                                         <div class=\"d-inline-block\">
  547.                                             <span>";
  548.         // line 298
  549.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.name"), "html"nulltrue);
  550.         echo "</span>
  551.                                             <span class=\"badge bg-primary ms-1\">
  552.                                                 ";
  553.         // line 300
  554.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html"nulltrue);
  555.         echo "
  556.                                             </span>
  557.                                         </div>
  558.                                     </div>
  559.                                     <div class=\"col mb-2\">
  560.                                         ";
  561.         // line 305
  562.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'305$this->source); })()), "name", [], "any"falsefalsefalse305), 'widget');
  563.         echo "
  564.                                         ";
  565.         // line 306
  566.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'306$this->source); })()), "name", [], "any"falsefalsefalse306), 'errors');
  567.         echo "
  568.                                     </div>
  569.                                 </div>
  570.                                 ";
  571.         // line 309
  572.         if (((isset($context["has_class"]) || array_key_exists("has_class"$context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.'309$this->source); })()) == false)) {
  573.             // line 310
  574.             echo "                                    <div class=\"row\">
  575.                                         <div class=\"col-3\">
  576.                                             <div class=\"d-inline-block\">
  577.                                                 <span>";
  578.             // line 313
  579.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_code"), "html"nulltrue);
  580.             echo "</span>
  581.                                             </div>
  582.                                         </div>
  583.                                         <div class=\"col mb-2\">
  584.                                             <div>
  585.                                                 ";
  586.             // line 318
  587.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'318$this->source); })()), "class", [], "any"falsefalsefalse318), "code", [], "any"falsefalsefalse318), 'widget');
  588.             echo "
  589.                                                 ";
  590.             // line 319
  591.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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"falsefalsefalse319), "code", [], "any"falsefalsefalse319), 'errors');
  592.             echo "
  593.                                             </div>
  594.                                         </div>
  595.                                     </div>
  596.                                     <div class=\"row\">
  597.                                         <div class=\"col-3\">
  598.                                             <div>
  599.                                                 <span>";
  600.             // line 326
  601.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.sale_type"), "html"nulltrue);
  602.             echo "</span>
  603.                                                 <span class=\"badge bg-primary ms-1\">
  604.                                                     ";
  605.             // line 328
  606.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html"nulltrue);
  607.             echo "
  608.                                                 </span>
  609.                                             </div>
  610.                                         </div>
  611.                                         <div class=\"col mb-2\">
  612.                                             ";
  613.             // line 333
  614.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'333$this->source); })()), "class", [], "any"falsefalsefalse333), "sale_type", [], "any"falsefalsefalse333), 'widget');
  615.             echo "
  616.                                             ";
  617.             // line 334
  618.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'334$this->source); })()), "class", [], "any"falsefalsefalse334), "sale_type", [], "any"falsefalsefalse334), 'errors');
  619.             echo "
  620.                                         </div>
  621.                                     </div>
  622.                                     <div class=\"row\">
  623.                                         <div class=\"col-3\">
  624.                                             <div class=\"d-inline-block\">
  625.                                                 <span>販売価格(見積商品は最低価格)</span>
  626.                                                 <span class=\"badge bg-primary ms-1\">
  627.                                                     ";
  628.             // line 342
  629.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html"nulltrue);
  630.             echo "
  631.                                                 </span>
  632.                                             </div>
  633.                                         </div>
  634.                                         <div class=\"col mb-2\">
  635.                                             <div>
  636.                                                 ";
  637.             // line 348
  638.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'348$this->source); })()), "class", [], "any"falsefalsefalse348), "price02", [], "any"falsefalsefalse348), 'widget');
  639.             echo "
  640.                                                 ";
  641.             // line 349
  642.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'349$this->source); })()), "class", [], "any"falsefalsefalse349), "price02", [], "any"falsefalsefalse349), 'errors');
  643.             echo "
  644.                                             </div>
  645.                                         </div>
  646.                                     </div>
  647.                                     <div class=\"row\">
  648.                                         <div class=\"col-3\">
  649.                                             <div class=\"d-inline-block\">
  650.                                                 <span>";
  651.             // line 356
  652.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.stock"), "html"nulltrue);
  653.             echo "</span>
  654.                                                 <span class=\"badge bg-primary ms-1\">
  655.                                                     ";
  656.             // line 358
  657.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html"nulltrue);
  658.             echo "
  659.                                                 </span>
  660.                                             </div>
  661.                                         </div>
  662.                                         <div class=\"col\">
  663.                                             <div>
  664.                                                 ";
  665.             // line 364
  666.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'364$this->source); })()), "class", [], "any"falsefalsefalse364), "stock", [], "any"falsefalsefalse364), 'widget');
  667.             echo "
  668.                                                 ";
  669.             // line 365
  670.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'365$this->source); })()), "class", [], "any"falsefalsefalse365), "stock", [], "any"falsefalsefalse365), 'errors');
  671.             echo "
  672.                                                 ";
  673.             // line 367
  674.             echo "                                                ";
  675.             // line 368
  676.             echo "                                                ";
  677.             // line 369
  678.             echo "                                                ";
  679.             // line 370
  680.             echo "                                                ";
  681.             // line 371
  682.             echo "                                                ";
  683.             // line 372
  684.             echo "                                                ";
  685.             // line 373
  686.             echo "                                                ";
  687.             // line 374
  688.             echo "                                                ";
  689.             // line 375
  690.             echo "                                                ";
  691.             // line 376
  692.             echo "                                                ";
  693.             // line 377
  694.             echo "                                                ";
  695.             // line 378
  696.             echo "                                                ";
  697.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'378$this->source); })()), "class", [], "any"falsefalsefalse378), "stock_unlimited", [], "any"falsefalsefalse378), 'widget');
  698.             echo "
  699.                                                 ";
  700.             // line 379
  701.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'379$this->source); })()), "class", [], "any"falsefalsefalse379), "stock_unlimited", [], "any"falsefalsefalse379), 'errors');
  702.             echo "
  703.                                             </div>
  704.                                         </div>
  705.                                     </div>
  706.                                 ";
  707.         }
  708.         // line 384
  709.         echo "
  710.                                 <div class=\"row\">
  711.                                     <div class=\"col-3\">
  712.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"";
  713.         // line 387
  714.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.image"), "html"nulltrue);
  715.         echo "\">
  716.                                             <span>";
  717.         // line 388
  718.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.image"), "html"nulltrue);
  719.         echo "</span>
  720.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  721.                                             <br>";
  722.         // line 390
  723.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.image_size"), "html"nulltrue);
  724.         echo "
  725.                                         </div>
  726.                                     </div>
  727.                                     <div class=\"col mb-2\">
  728.                                         <p id=\"message\"></p>
  729.                                         <div id=\"upload-zone\" class=\"rounded\">
  730.                                             ";
  731.         // line 396
  732.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'396$this->source); })()), "product_image", [], "any"falsefalsefalse396), 'widget', ["attr" => ["style" => "display:none;"]]);
  733.         echo "
  734.                                             ";
  735.         // line 397
  736.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'397$this->source); })()), "product_image", [], "any"falsefalsefalse397), 'errors');
  737.         echo "
  738.                                         </div><!-- /#upload-zone -->
  739.                                         <span class=\"invalid-feedback\" id=\"product_image_error\" style=\"display: none\">
  740.                                             <span class=\"d-block\">
  741.                                                 <span class=\"form-error-icon badge bg-danger text-uppercase\">";
  742.         // line 401
  743.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Error", [], "validators"), "html"nulltrue);
  744.         echo "</span>
  745.                                                 <span class=\"form-error-message\"></span>
  746.                                             </span>
  747.                                         </span>
  748.                                     </div>
  749.                                 </div>
  750.                                 <div class=\"row\">
  751.                                     <div class=\"col-3\">
  752.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\">
  753.                                             <span>カラー</span>
  754.                                         </div>
  755.                                     </div>
  756.                                     <div class=\"col mb-2\">
  757. \t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered\">
  758. \t\t\t\t\t\t\t\t\t\t\t<tr>
  759. \t\t\t\t\t\t            \t\t\t<th>カラー名</th>
  760. \t\t\t\t\t\t            \t\t\t<th>カラーコード</th>
  761. \t\t\t\t\t\t            \t\t\t<th>サンプル画像</th>
  762. \t\t\t\t\t\t            \t\t\t<th>設定</th>
  763. \t\t\t\t\t\t\t\t\t\t\t</tr>
  764. \t\t\t\t\t\t\t            ";
  765.         // line 421
  766.         $context["disable_color"] = false;
  767.         // line 422
  768.         echo "\t\t                                ";
  769.         $context['_parent'] = $context;
  770.         $context['_seq'] = twig_ensure_traversable(range(010));
  771.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  772.             // line 423
  773.             echo "\t\t                                \t";
  774.             if (((isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'423$this->source); })()) && (twig_length_filter($this->env, (isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'423$this->source); })())) >= ($context["i"] + 1)))) {
  775.                 // line 424
  776.                 echo "\t\t\t\t\t\t\t\t\t\t\t<tr id=\"color_list_";
  777.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  778.                 echo "\">
  779. \t\t\t\t\t\t            \t\t\t<td>
  780. \t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_name_";
  781.                 // line 426
  782.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  783.                 echo "\" placeholder=\"カラー名\" name=\"color[";
  784.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  785.                 echo "][name]\" value=\"";
  786.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'426$this->source); })()), $context["i"], [], "array"falsefalsefalse426), "name", [], "array"falsefalsefalse426), "html"nulltrue);
  787.                 echo "\">
  788. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  789. \t\t\t\t\t\t            \t\t\t<td>
  790. \t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_code_";
  791.                 // line 429
  792.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  793.                 echo "\" placeholder=\"カラーコード\" name=\"color[";
  794.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  795.                 echo "][code]\" value=\"";
  796.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'429$this->source); })()), $context["i"], [], "array"falsefalsefalse429), "code", [], "array"falsefalsefalse429), "html"nulltrue);
  797.                 echo "\">
  798. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  799. \t\t\t\t\t\t            \t\t\t<td>
  800. \t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_img_";
  801.                 // line 432
  802.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  803.                 echo "\" placeholder=\"サンプル画像\" name=\"color[";
  804.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  805.                 echo "][img]\" value=\"";
  806.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["color"]) || array_key_exists("color"$context) ? $context["color"] : (function () { throw new RuntimeError('Variable "color" does not exist.'432$this->source); })()), $context["i"], [], "array"falsefalsefalse432), "img", [], "array"falsefalsefalse432), "html"nulltrue);
  807.                 echo "\">
  808. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  809. \t\t\t\t\t\t            \t\t\t<td>
  810. \t\t\t\t\t\t\t\t\t\t            <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#color_list_";
  811.                 // line 435
  812.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  813.                 echo "').remove(); }\">削除</button>
  814. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  815. \t\t\t\t\t\t\t\t\t\t\t</tr>
  816. \t\t                        \t\t\t";
  817.             } else {
  818.                 // line 439
  819.                 echo "\t\t\t\t\t\t\t\t\t\t\t<tr id=\"color_list_";
  820.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  821.                 echo "\" ";
  822.                 if ((isset($context["disable_color"]) || array_key_exists("disable_color"$context) ? $context["disable_color"] : (function () { throw new RuntimeError('Variable "disable_color" does not exist.'439$this->source); })())) {
  823.                     echo "style=\"display:none;\"";
  824.                 }
  825.                 echo ">
  826. \t\t\t\t\t\t            \t\t\t<td>
  827. \t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_name_";
  828.                 // line 441
  829.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  830.                 echo "\" placeholder=\"カラー名\" name=\"color[";
  831.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  832.                 echo "][name]\" value=\"\">
  833. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  834. \t\t\t\t\t\t            \t\t\t<td>
  835. \t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_code_";
  836.                 // line 444
  837.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  838.                 echo "\" placeholder=\"カラーコード\" name=\"color[";
  839.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  840.                 echo "][code]\" value=\"\">
  841. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  842. \t\t\t\t\t\t            \t\t\t<td>
  843. \t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_img_";
  844.                 // line 447
  845.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  846.                 echo "\" placeholder=\"サンプル画像\" name=\"color[";
  847.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  848.                 echo "][img]\" value=\"\">
  849. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  850. \t\t\t\t\t\t            \t\t\t<td>
  851. \t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"color_btn_";
  852.                 // line 450
  853.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  854.                 echo "\" class=\"btn btn-danger\" style=\"display:none;\" onclick=\"if(confirm('削除してよろしいですか?')){\$('#color_list_";
  855.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  856.                 echo "').remove();}\">削除</button>
  857. \t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-warning\" onclick=\"\$('#color_list_";
  858.                 // line 451
  859.                 echo twig_escape_filter($this->env, ($context["i"] + 1), "html"nulltrue);
  860.                 echo "').show();\$('#color_btn_";
  861.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  862.                 echo "').show();\$(this).hide();\">追加</button>
  863. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  864. \t\t\t\t\t\t\t\t\t\t\t</tr>
  865. \t\t\t\t\t                        ";
  866.                 // line 454
  867.                 $context["disable_color"] = true;
  868.                 // line 455
  869.                 echo "\t\t                        \t\t\t";
  870.             }
  871.             // line 456
  872.             echo "\t\t                      \t\t\t";
  873.         }
  874.         $_parent $context['_parent'];
  875.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  876.         $context array_intersect_key($context$_parent) + $_parent;
  877.         // line 457
  878.         echo "\t\t\t\t\t\t\t\t\t\t</table>
  879.                                             ";
  880.         // line 459
  881.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'459$this->source); })()), "search_word", [], "any"falsefalsefalse459), 'errors');
  882.         echo "
  883.                                     </div>
  884.                                 </div>
  885.                                 <div class=\"row\">
  886.                                     <div class=\"col-3\">
  887.                                         <div class=\"d-inline-block\">
  888.                                             <span>一覧スペック</span>
  889.                                         </div>
  890.                                     </div>
  891.                                     <div class=\"col mb-2\">
  892.                                         <div>
  893.                                             ";
  894.         // line 470
  895.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'470$this->source); })()), "list_spec", [], "any"falsefalsefalse470), 'widget', ["attr" => ["rows" => "4"]]);
  896.         echo "
  897.                                             ";
  898.         // line 471
  899.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'471$this->source); })()), "list_spec", [], "any"falsefalsefalse471), 'errors');
  900.         echo "
  901.                                         </div>
  902.                                     </div>
  903.                                 </div>
  904.                                 <div class=\"row\">
  905.                                     <div class=\"col-3\">
  906.                                         <div class=\"d-inline-block\">
  907.                                             <span>一覧説明</span>
  908.                                         </div>
  909.                                     </div>
  910.                                     <div class=\"col mb-2\">
  911.                                         <div>
  912.                                             ";
  913.         // line 483
  914.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'483$this->source); })()), "description_list", [], "any"falsefalsefalse483), 'widget', ["attr" => ["rows" => "4"]]);
  915.         echo "
  916.                                             ";
  917.         // line 484
  918.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'484$this->source); })()), "description_list", [], "any"falsefalsefalse484), 'errors');
  919.         echo "
  920.                                         </div>
  921.                                     </div>
  922.                                 </div>
  923.                                 <div class=\"row\">
  924.                                     <div class=\"col-3\">
  925.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  926.                                              title=\"";
  927.         // line 491
  928.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.description_detail"), "html"nulltrue);
  929.         echo "\">
  930.                                             <span>";
  931.         // line 492
  932.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.description_detail"), "html"nulltrue);
  933.         echo "</span>
  934.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  935.                                         </div>
  936.                                     </div>
  937.                                     <div class=\"col mb-2\">
  938.                                         ";
  939.         // line 497
  940.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'497$this->source); })()), "description_detail", [], "any"falsefalsefalse497), 'widget', ["attr" => ["rows" => "4"]]);
  941.         echo "
  942.                                         ";
  943.         // line 498
  944.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'498$this->source); })()), "description_detail", [], "any"falsefalsefalse498), 'errors');
  945.         echo "
  946.                                     </div>
  947.                                 </div>
  948.                                 <div class=\"row\">
  949.                                     <div class=\"col-3\">
  950.                                         <div class=\"d-inline-block\">
  951.                                             <span>おすすめポイント</span>
  952.                                         </div>
  953.                                     </div>
  954.                                     <div class=\"col mb-2\">
  955.                                         ";
  956.         // line 510
  957.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'510$this->source); })()), "recommend_point", [], "any"falsefalsefalse510), 'widget', ["attr" => ["rows" => "3"]]);
  958.         echo "
  959.                                         ";
  960.         // line 511
  961.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'511$this->source); })()), "recommend_point", [], "any"falsefalsefalse511), 'errors');
  962.         echo "
  963.                                     </div>
  964.                                 </div>
  965.                                 <div class=\"row\">
  966.                                     <div class=\"col-3\">
  967.                                         <div class=\"d-inline-block\">
  968.                                             <span>販売情報</span>
  969.                                         </div>
  970.                                     </div>
  971.                                     <div class=\"col mb-2\">
  972.                                         ";
  973.         // line 522
  974.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'522$this->source); })()), "sales_infomation", [], "any"falsefalsefalse522), 'widget', ["attr" => ["rows" => "3"]]);
  975.         echo "
  976.                                         ";
  977.         // line 523
  978.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'523$this->source); })()), "sales_infomation", [], "any"falsefalsefalse523), 'errors');
  979.         echo "
  980.                                     </div>
  981.                                 </div>
  982.                                 ";
  983.         // line 527
  984.         if (((isset($context["has_class"]) || array_key_exists("has_class"$context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.'527$this->source); })()) == false)) {
  985.             // line 528
  986.             echo "                                    <div class=\"row\">
  987.                                         <div class=\"col-3\">
  988.                                             <div class=\"d-inline-block\">
  989.                                                 <span>";
  990.             // line 531
  991.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.sale_limit"), "html"nulltrue);
  992.             echo "</span>
  993.                                             </div>
  994.                                         </div>
  995.                                         <div class=\"col mb-2\">
  996.                                             <div>
  997.                                                 ";
  998.             // line 536
  999.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'536$this->source); })()), "class", [], "any"falsefalsefalse536), "sale_limit", [], "any"falsefalsefalse536), 'widget');
  1000.             echo "
  1001.                                                 ";
  1002.             // line 537
  1003.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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"falsefalsefalse537), "sale_limit", [], "any"falsefalsefalse537), 'errors');
  1004.             echo "
  1005.                                             </div>
  1006.                                         </div>
  1007.                                     </div>
  1008.                                     <div class=\"row\">
  1009.                                         <div class=\"col-3\">
  1010.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  1011.                                                  title=\"";
  1012.             // line 544
  1013.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.delivery_duration"), "html"nulltrue);
  1014.             echo "\">
  1015.                                                 <span>";
  1016.             // line 545
  1017.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.delivery_duration"), "html"nulltrue);
  1018.             echo "</span>
  1019.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  1020.                                             </div>
  1021.                                         </div>
  1022.                                         <div class=\"col mb-2\">
  1023.                                             <div>
  1024.                                                 ";
  1025.             // line 551
  1026.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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"falsefalsefalse551), "delivery_duration", [], "any"falsefalsefalse551), 'widget');
  1027.             echo "
  1028.                                                 ";
  1029.             // line 552
  1030.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'552$this->source); })()), "class", [], "any"falsefalsefalse552), "delivery_duration", [], "any"falsefalsefalse552), 'errors');
  1031.             echo "
  1032.                                             </div>
  1033.                                         </div>
  1034.                                     </div>
  1035.                                     ";
  1036.             // line 557
  1037.             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.'557$this->source); })()), "option_product_delivery_fee", [], "any"falsefalsefalse557)) {
  1038.                 // line 558
  1039.                 echo "                                        <div class=\"row\">
  1040.                                             <div class=\"col-3\">
  1041.                                                 <div class=\"d-inline-block\">
  1042.                                                     <span>";
  1043.                 // line 561
  1044.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.delivery_fee"), "html"nulltrue);
  1045.                 echo "</span>
  1046.                                                 </div>
  1047.                                             </div>
  1048.                                             <div class=\"col mb-2\">
  1049.                                                 <div>
  1050.                                                     ";
  1051.                 // line 566
  1052.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'566$this->source); })()), "class", [], "any"falsefalsefalse566), "delivery_fee", [], "any"falsefalsefalse566), 'widget');
  1053.                 echo "
  1054.                                                     ";
  1055.                 // line 567
  1056.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'567$this->source); })()), "class", [], "any"falsefalsefalse567), "delivery_fee", [], "any"falsefalsefalse567), 'errors');
  1057.                 echo "
  1058.                                                 </div>
  1059.                                             </div>
  1060.                                         </div>
  1061.                                     ";
  1062.             }
  1063.             // line 572
  1064.             echo "                                    ";
  1065.             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.'572$this->source); })()), "option_product_tax_rule", [], "any"falsefalsefalse572)) {
  1066.                 // line 573
  1067.                 echo "                                        <div class=\"row\">
  1068.                                             <div class=\"col-3\">
  1069.                                                 <div class=\"d-inline-block\">
  1070.                                                     <span>";
  1071.                 // line 576
  1072.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.tax_rate"), "html"nulltrue);
  1073.                 echo "</span>
  1074.                                                 </div>
  1075.                                             </div>
  1076.                                             <div class=\"col mb-2\">
  1077.                                                 <div>
  1078.                                                     ";
  1079.                 // line 581
  1080.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'581$this->source); })()), "class", [], "any"falsefalsefalse581), "tax_rate", [], "any"falsefalsefalse581), 'widget');
  1081.                 echo "
  1082.                                                     ";
  1083.                 // line 582
  1084.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'582$this->source); })()), "class", [], "any"falsefalsefalse582), "tax_rate", [], "any"falsefalsefalse582), 'errors');
  1085.                 echo "
  1086.                                                 </div>
  1087.                                             </div>
  1088.                                         </div>
  1089.                                     ";
  1090.             }
  1091.             // line 587
  1092.             echo "                                ";
  1093.         }
  1094.         // line 588
  1095.         echo "
  1096.                                 ";
  1097.         // line 589
  1098.         if (((isset($context["has_class"]) || array_key_exists("has_class"$context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.'589$this->source); })()) == false)) {
  1099.             // line 590
  1100.             echo "                                    ";
  1101.             $context['_parent'] = $context;
  1102.             $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.'590$this->source); })()), "class", [], "any"falsefalsefalse590), 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"falsefalsefalse590), "eccube_form_options", [], "any"falsefalsefalse590), "auto_render", [], "any"falsefalsefalse590); }));
  1103.             foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
  1104.                 // line 591
  1105.                 echo "                                        ";
  1106.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsefalse591), "eccube_form_options", [], "any"falsefalsefalse591), "form_theme", [], "any"falsefalsefalse591)) {
  1107.                     // line 592
  1108.                     echo "                                            ";
  1109.                     $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"falsefalsefalse592), "eccube_form_options", [], "any"falsefalsefalse592), "form_theme", [], "any"falsefalsefalse592)], true);
  1110.                     // line 593
  1111.                     echo "                                            ";
  1112.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'row');
  1113.                     echo "
  1114.                                         ";
  1115.                 } else {
  1116.                     // line 595
  1117.                     echo "                                            <div class=\"row\">
  1118.                                                 <div class=\"col-3\">
  1119.                                                     <span>";
  1120.                     // line 597
  1121.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["f"], "vars", [], "any"falsefalsefalse597), "label", [], "any"falsefalsefalse597)), "html"nulltrue);
  1122.                     echo "</span>
  1123.                                                 </div>
  1124.                                                 <div class=\"col mb-2\">
  1125.                                                     <div>
  1126.                                                         ";
  1127.                     // line 601
  1128.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'widget');
  1129.                     echo "
  1130.                                                         ";
  1131.                     // line 602
  1132.                     echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'errors');
  1133.                     echo "
  1134.                                                     </div>
  1135.                                                 </div>
  1136.                                             </div>
  1137.                                         ";
  1138.                 }
  1139.                 // line 607
  1140.                 echo "                                    ";
  1141.             }
  1142.             $_parent $context['_parent'];
  1143.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
  1144.             $context array_intersect_key($context$_parent) + $_parent;
  1145.             // line 608
  1146.             echo "                                ";
  1147.         }
  1148.         // line 609
  1149.         echo "
  1150.                                 ";
  1151.         // line 610
  1152.         if (((isset($context["has_class"]) || array_key_exists("has_class"$context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.'610$this->source); })()) == false)) {
  1153.             // line 611
  1154.             echo "                                    <div class=\"row\">
  1155.                                         <div class=\"col-3\">
  1156.                                             <div class=\"d-inline-block\">
  1157.                                                 <span>メーカー</span>
  1158.                                             </div>
  1159.                                         </div>
  1160.                                         <div class=\"col mb-2\">
  1161.                                             <div>
  1162.                                                 ";
  1163.             // line 619
  1164.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'619$this->source); })()), "Maker", [], "any"falsefalsefalse619), 'widget');
  1165.             echo "
  1166.                                                 ";
  1167.             // line 620
  1168.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'620$this->source); })()), "Maker", [], "any"falsefalsefalse620), 'errors');
  1169.             echo "
  1170.                                             </div>
  1171.                                         </div>
  1172.                                     </div>
  1173.                                     <div class=\"row\">
  1174.                                         <div class=\"col-3\">
  1175.                                             <div class=\"d-inline-block\">
  1176.                                                 <span>メーカーURL</span>
  1177.                                             </div>
  1178.                                         </div>
  1179.                                         <div class=\"col mb-2\">
  1180.                                             <div>
  1181.                                                 ";
  1182.             // line 632
  1183.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'632$this->source); })()), "makerurl", [], "any"falsefalsefalse632), 'widget');
  1184.             echo "
  1185.                                                 ";
  1186.             // line 633
  1187.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'633$this->source); })()), "makerurl", [], "any"falsefalsefalse633), 'errors');
  1188.             echo "
  1189.                                             </div>
  1190.                                         </div>
  1191.                                     </div>
  1192.                                     <div class=\"row\">
  1193.                                         <div class=\"col-3\">
  1194.                                             <div class=\"d-inline-block\">
  1195.                                                 <span>メーカー価格(見積商品は最低価格)</span>
  1196.                                             </div>
  1197.                                         </div>
  1198.                                         <div class=\"col mb-2\">
  1199.                                             <div>
  1200.                                                 ";
  1201.             // line 645
  1202.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'645$this->source); })()), "class", [], "any"falsefalsefalse645), "price01", [], "any"falsefalsefalse645), 'widget');
  1203.             echo "
  1204.                                                 ";
  1205.             // line 646
  1206.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'646$this->source); })()), "class", [], "any"falsefalsefalse646), "price01", [], "any"falsefalsefalse646), 'errors');
  1207.             echo "
  1208.                                             </div>
  1209.                                         </div>
  1210.                                     </div>
  1211.                                 ";
  1212.         }
  1213.         // line 651
  1214.         echo "
  1215.                             </div>
  1216.                         </div>
  1217.                     </div>
  1218.                 </div>
  1219.             </div>
  1220.             <div class=\"c-contentsArea__secondaryCol\">
  1221.                 <div class=\"c-secondaryCol\">
  1222.                     ";
  1223.         // line 664
  1224.         if ( !(null === (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'664$this->source); })()))) {
  1225.             // line 665
  1226.             echo "                        <div class=\"card rounded border-0 mb-4\">
  1227.                             <div class=\"collapse show ec-cardCollapse\" id=\"preview\">
  1228.                                 <div class=\"card-body\">
  1229.                                     <div class=\"d-block text-center\">
  1230.                                         <a class=\"btn w-100 btn-ec-regular\"
  1231.                                            target=\"_blank\"
  1232.                                            href=\"";
  1233.             // line 671
  1234.             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.'671$this->source); })())]), "html"nulltrue);
  1235.             echo "\"
  1236.                                            title=\"";
  1237.             // line 672
  1238.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.preview"), "html"nulltrue);
  1239.             echo "\">";
  1240.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.preview"), "html"nulltrue);
  1241.             echo "</a>
  1242.                                     </div>
  1243.                                 </div>
  1244.                             </div>
  1245.                         </div>
  1246.                     ";
  1247.         }
  1248.         // line 678
  1249.         echo "                    <div class=\"card rounded border-0 mb-4\">
  1250.                         <div class=\"card-header\">
  1251.                             <div class=\"row\">
  1252.                                 <div class=\"col-8\">
  1253.                                     <div class=\"d-inline-block\">
  1254.                                         <span class=\"card-title\">";
  1255.         // line 683
  1256.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.category__product_card_title"), "html"nulltrue);
  1257.         echo "</span>
  1258.                                     </div>
  1259.                                 </div>
  1260.                                 <div class=\"col-4 text-end\">
  1261.                                     <a data-bs-toggle=\"collapse\" href=\"#category\" aria-expanded=\"false\"
  1262.                                        aria-controls=\"category\">
  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=\"category\">
  1269.                             <div class=\"card-body\">
  1270.                                 <div class=\"mb-3\">
  1271.                                     <div class=\"row\">
  1272.                                         <div class=\"col\">
  1273.                                             <div class=\"input-group\">
  1274.                                                 <div class=\"input-group-text\">
  1275.                                                     <span id=\"basic-addon1\">
  1276.                                                             <i class=\"fa fa-search\"></i>
  1277.                                                     </span>
  1278.                                                 </div>
  1279.                                                 <input id=\"search-category\" class=\"form-control\" type=\"search\"
  1280.                                                        placeholder=\"";
  1281.         // line 706
  1282.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.search_category"), "html"nulltrue);
  1283.         echo "\"
  1284.                                                        aria-label=\"Search\">
  1285.                                             </div>
  1286.                                         </div>
  1287.                                     </div>
  1288.                                 </div>
  1289.                                 ";
  1290.         // line 725
  1291.         echo "
  1292.                                 <div class=\"c-directoryTree--register rounded border mb-3 p-3\">
  1293.                                     ";
  1294.         // line 727
  1295.         $macros["renderMacro"] = $this;
  1296.         // line 728
  1297.         echo "                                    ";
  1298.         $context['_parent'] = $context;
  1299.         $context['_seq'] = twig_ensure_traversable((isset($context["TopCategories"]) || array_key_exists("TopCategories"$context) ? $context["TopCategories"] : (function () { throw new RuntimeError('Variable "TopCategories" does not exist.'728$this->source); })()));
  1300.         foreach ($context['_seq'] as $context["_key"] => $context["TopCategory"]) {
  1301.             // line 729
  1302.             echo "                                        <ul class=\"list-unstyled\">
  1303.                                             ";
  1304.             // line 730
  1305.             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.'730$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.'730$this->source); })()), "Category", [], "any"falsefalsefalse730)], 730$context$this->getSourceContext());
  1306.             echo "
  1307.                                         </ul>
  1308.                                     ";
  1309.         }
  1310.         $_parent $context['_parent'];
  1311.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['TopCategory'], $context['_parent'], $context['loop']);
  1312.         $context array_intersect_key($context$_parent) + $_parent;
  1313.         // line 733
  1314.         echo "                                    ";
  1315.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'733$this->source); })()), "Category", [], "any"falsefalsefalse733), 'errors');
  1316.         echo "
  1317.                                 </div>
  1318.                                 <div class=\"d-block text-center\">
  1319.                                     <a class=\"btn w-100 btn-ec-regular\"
  1320.                                        data-action=\"confirm\"
  1321.                                        href=\"";
  1322.         // line 738
  1323.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_category");
  1324.         echo "\"
  1325.                                        title=\"";
  1326.         // line 739
  1327.         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);
  1328.         // line 740
  1329.         echo "\">";
  1330.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.move_to_category"), "html"nulltrue);
  1331.         echo "</a>
  1332.                                 </div>
  1333.                             </div>
  1334.                         </div>
  1335.                     </div>
  1336.                     <div class=\"card rounded border-0 mb-4\">
  1337.                         <div class=\"card-header\">
  1338.                             <div class=\"row\">
  1339.                                 <div class=\"col-8\">
  1340.                                     <div class=\"d-inline-block\">
  1341.                                         <span class=\"card-title\">
  1342.                                             ";
  1343.         // line 751
  1344.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.tag__product_card_title"), "html"nulltrue);
  1345.         echo "
  1346.                                         </span>
  1347.                                     </div>
  1348.                                 </div>
  1349.                                 <div class=\"col-4 text-end\">
  1350.                                     <a data-bs-toggle=\"collapse\" href=\"#tag\" aria-expanded=\"false\" aria-controls=\"tag\">
  1351.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  1352.                                     </a>
  1353.                                 </div>
  1354.                             </div>
  1355.                         </div>
  1356.                         <div class=\"collapse show ec-cardCollapse\" id=\"tag\">
  1357.                             <div class=\"card-body\">
  1358.                                 ";
  1359.         // line 765
  1360.         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.'765$this->source); })())) > 0)) {
  1361.             // line 766
  1362.             echo "                                    ";
  1363.             $context['_parent'] = $context;
  1364.             $context['_seq'] = twig_ensure_traversable((isset($context["Tags"]) || array_key_exists("Tags"$context) ? $context["Tags"] : (function () { throw new RuntimeError('Variable "Tags" does not exist.'766$this->source); })()));
  1365.             foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  1366.                 // line 767
  1367.                 echo "                                        <div class=\"d-inline-block mb-2 me-2\">
  1368.                                             <button class=\"btn btn-outline-primary\" type=\"button\">";
  1369.                 // line 768
  1370.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "name", [], "any"falsefalsefalse768), "html"nulltrue);
  1371.                 echo "</button>
  1372.                                         </div>
  1373.                                     ";
  1374.             }
  1375.             $_parent $context['_parent'];
  1376.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  1377.             $context array_intersect_key($context$_parent) + $_parent;
  1378.             // line 771
  1379.             echo "                                ";
  1380.         }
  1381.         // line 772
  1382.         echo "                                <div class=\"d-block mb-3\" data-bs-toggle=\"collapse\" href=\"#allTags\" role=\"button\"
  1383.                                      aria-expanded=\"false\" aria-controls=\"allTags\">
  1384.                                     <a>
  1385.                                         <i class=\"fa fa-plus-square-o fw-bold me-1\"></i>
  1386.                                         <span class=\"fw-bold\">";
  1387.         // line 776
  1388.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.save_tag"), "html"nulltrue);
  1389.         echo "</span>
  1390.                                     </a>
  1391.                                 </div>
  1392.                                 <div class=\"collapse p-3 bg-ec-lightGray mb-3 ec-collapse show\" id=\"allTags\">
  1393.                                     <div class=\"d-none\">
  1394.                                         ";
  1395.         // line 781
  1396.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'781$this->source); })()), "Tag", [], "any"falsefalsefalse781), 'widget');
  1397.         echo "
  1398.                                     </div>
  1399.                                     ";
  1400.         // line 783
  1401.         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.'783$this->source); })())) > 0)) {
  1402.             // line 784
  1403.             echo "                                        ";
  1404.             $context['_parent'] = $context;
  1405.             $context['_seq'] = twig_ensure_traversable((isset($context["TagsList"]) || array_key_exists("TagsList"$context) ? $context["TagsList"] : (function () { throw new RuntimeError('Variable "TagsList" does not exist.'784$this->source); })()));
  1406.             foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
  1407.                 // line 785
  1408.                 echo "                                            <div class=\"d-inline-block mb-2 me-2\">
  1409.                                                 <button class=\"btn btn-outline-secondary\" type=\"button\"
  1410.                                                         data-tag-id=\"";
  1411.                 // line 787
  1412.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "id", [], "any"falsefalsefalse787), "html"nulltrue);
  1413.                 echo "\">";
  1414.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Tag"], "name", [], "any"falsefalsefalse787), "html"nulltrue);
  1415.                 echo "</button>
  1416.                                             </div>
  1417.                                         ";
  1418.             }
  1419.             $_parent $context['_parent'];
  1420.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
  1421.             $context array_intersect_key($context$_parent) + $_parent;
  1422.             // line 790
  1423.             echo "                                    ";
  1424.         }
  1425.         // line 791
  1426.         echo "
  1427.                                     <div class=\"d-block mb-3\" data-bs-toggle=\"collapse\" href=\"#allTags\" role=\"button\"
  1428.                                          aria-expanded=\"false\" aria-controls=\"allTags\"></div>
  1429.                                 </div>
  1430.                                 <div class=\"d-block text-center\">
  1431.                                     <a href=\"";
  1432.         // line 797
  1433.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_tag");
  1434.         echo "\"
  1435.                                        class=\"btn w-100 btn-ec-regular\"
  1436.                                        data-action=\"confirm\"
  1437.                                        title=\"";
  1438.         // line 800
  1439.         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);
  1440.         // line 801
  1441.         echo "\">";
  1442.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.move_to_tag"), "html"nulltrue);
  1443.         echo "</a>
  1444.                                 </div>
  1445.                             </div>
  1446.                         </div>
  1447.                     </div>
  1448.                     <div class=\"card rounded border-0 mb-4\">
  1449.                         <div class=\"card-header\">
  1450.                             <div class=\"row\">
  1451.                                 <div class=\"col-8\">
  1452.                                     <span class=\"card-title\">";
  1453.         // line 810
  1454.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.create_date__card_title"), "html"nulltrue);
  1455.         echo "</span>
  1456.                                 </div>
  1457.                                 <div class=\"col-4 text-end\">
  1458.                                     <a data-bs-toggle=\"collapse\" href=\"#update\" aria-expanded=\"false\"
  1459.                                        aria-controls=\"update\">
  1460.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  1461.                                     </a>
  1462.                                 </div>
  1463.                             </div>
  1464.                         </div>
  1465.                         <div class=\"collapse show ec-cardCollapse\" id=\"update\">
  1466.                             <div class=\"card-body\">
  1467.                                 <div class=\"row mb-2\">
  1468.                                     <div class=\"col\">
  1469.                                         <i class=\"fa fa-flag me-1\"></i>
  1470.                                         <span>";
  1471.         // line 825
  1472.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.create_date"), "html"nulltrue);
  1473.         echo "</span>
  1474.                                     </div>
  1475.                                     <div class=\"col\">
  1476.                                         <span>:";
  1477.         // line 828
  1478.         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IntlExtension']->date_min($this->envtwig_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.'828$this->source); })()), "create_date", [], "any"falsefalsefalse828)), "html"nulltrue);
  1479.         echo "</span>
  1480.                                     </div>
  1481.                                 </div>
  1482.                                 <div class=\"row mb-2\">
  1483.                                     <div class=\"col\">
  1484.                                         <i class=\"fa fa-refresh me-1\"></i>
  1485.                                         <span>";
  1486.         // line 834
  1487.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.update_date"), "html"nulltrue);
  1488.         echo "</span>
  1489.                                     </div>
  1490.                                     <div class=\"col\">
  1491.                                         <span>:";
  1492.         // line 837
  1493.         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IntlExtension']->date_min($this->envtwig_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.'837$this->source); })()), "update_date", [], "any"falsefalsefalse837)), "html"nulltrue);
  1494.         echo "</span>
  1495.                                     </div>
  1496.                                 </div>
  1497.                                 <div class=\"row mb-2\">
  1498.                                     <div class=\"col\">
  1499.                                         <i class=\"fa fa-user me-1\"></i>
  1500.                                         <span>";
  1501.         // line 843
  1502.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.last_updater"), "html"nulltrue);
  1503.         echo "</span>
  1504.                                     </div>
  1505.                                     <div class=\"col\">
  1506.                                         <span>:";
  1507.         // line 846
  1508.         ((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.'846$this->source); })()), "Creator", [], "any"falsefalsefalse846)) ? (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.'846$this->source); })()), "Creator", [], "any"falsefalsefalse846), "name", [], "any"falsefalsefalse846), "html"nulltrue))) : (print ("")));
  1509.         echo "</span>
  1510.                                     </div>
  1511.                                 </div>
  1512.                             </div>
  1513.                         </div>
  1514.                     </div>
  1515.                     <div class=\"card rounded border-0 mb-4\">
  1516.                         <div class=\"card-header\">
  1517.                             <div class=\"row\">
  1518.                                 <div class=\"col-8\">
  1519.                                     <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  1520.                                          title=\"";
  1521.         // line 857
  1522.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.shop_memo"), "html"nulltrue);
  1523.         echo "\">
  1524.                                         <span class=\"card-title\">
  1525.                                             ";
  1526.         // line 859
  1527.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.shop_memo"), "html"nulltrue);
  1528.         echo "
  1529.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  1530.                                         </span>
  1531.                                     </div>
  1532.                                 </div>
  1533.                                 <div class=\"col-4 text-end\">
  1534.                                     <a data-bs-toggle=\"collapse\" href=\"#shopMemo\" aria-expanded=\"false\"
  1535.                                        aria-controls=\"shopMemo\">
  1536.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  1537.                                     </a>
  1538.                                 </div>
  1539.                             </div>
  1540.                         </div>
  1541.                         <div class=\"collapse show ec-cardCollapse\" id=\"shopMemo\">
  1542.                             <div class=\"card-body\">
  1543.                                 ";
  1544.         // line 874
  1545.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'874$this->source); })()), "note", [], "any"falsefalsefalse874), 'widget', ["attr" => ["rows" => "8"]]);
  1546.         echo "
  1547.                                 ";
  1548.         // line 875
  1549.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'875$this->source); })()), "note", [], "any"falsefalsefalse875), 'errors');
  1550.         echo "
  1551.                             </div>
  1552.                         </div>
  1553.                     </div>
  1554.                 </div>
  1555.             </div>
  1556.         </div>
  1557.         </div>
  1558.             <div id=\"item_option\" class=\"row\" style=\"padding: 0 15px\">
  1559.                     <div class=\"card rounded border-0 mb-4\">
  1560.                         <div class=\"card-header\">
  1561.                             <div class=\"row\">
  1562.                                 <div class=\"col-8\">
  1563.                                     <div class=\"d-inline-block\">
  1564.                                         <span class=\"card-title\">商品価格設定</span>
  1565.                                     </div>
  1566.                                 </div>
  1567.                                 <div class=\"col-4 text-end\">
  1568.                                     <a data-bs-toggle=\"collapse\" href=\"#freeArea\" aria-expanded=\"false\"
  1569.                                        aria-controls=\"freeArea\">
  1570.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  1571.                                     </a>
  1572.                                 </div>
  1573.                             </div>
  1574.                         </div>
  1575.                         <div class=\"collapse show ec-cardCollapse\" id=\"freeArea\">
  1576.                             <div class=\"card-body\" style=\"overflow-y: scroll;max-height: 700px;\">
  1577. \t\t\t\t\t\t\t\t<table class=\"table table-bordered\" id=\"product_option1\">
  1578. \t\t\t\t\t\t\t\t  <thead>
  1579. \t\t\t\t\t\t\t\t\t<tr>
  1580. \t\t\t\t            \t\t\t<th>幅</th>
  1581. \t\t\t\t            \t\t\t<th>奥行き</th>
  1582. \t\t\t\t            \t\t\t<th>高さ</th>
  1583. \t\t\t\t            \t\t\t<th>カラー</th>
  1584. \t\t\t\t            \t\t\t<th>素材</th>
  1585. \t\t\t\t            \t\t\t<th>メーカー価格</th>
  1586. \t\t\t\t            \t\t\t<th>割引率</th>
  1587. \t\t\t\t            \t\t\t<th>価格</th>
  1588. \t\t\t\t            \t\t\t<th>基本工事費</th>
  1589. \t\t\t\t            \t\t\t<th>設定</th>
  1590. \t\t\t\t\t\t\t\t\t</tr>
  1591. \t\t\t\t\t\t\t\t  </thead>
  1592. \t\t\t\t\t\t\t\t  <tbody>
  1593. \t\t\t\t\t            ";
  1594.         // line 920
  1595.         $context["disable_pp"] = false;
  1596.         // line 921
  1597.         echo "                                ";
  1598.         $context['_parent'] = $context;
  1599.         $context['_seq'] = twig_ensure_traversable(range(01600));
  1600.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  1601.             // line 922
  1602.             echo "                                \t";
  1603.             if (((isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'922$this->source); })()) && (twig_length_filter($this->env, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'922$this->source); })())) > $context["i"]))) {
  1604.                 // line 923
  1605.                 echo "\t\t\t\t\t\t\t\t\t<tr id=\"pp_list_";
  1606.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1607.                 echo "\">
  1608. \t\t\t\t            \t\t\t<td>
  1609. \t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">";
  1610.                 // line 925
  1611.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'925$this->source); })()), $context["i"], [], "array"falsefalsefalse925), "w", [], "array"falsefalsefalse925), "html"nulltrue);
  1612.                 echo "</div>
  1613. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_w_";
  1614.                 // line 926
  1615.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1616.                 echo "\" placeholder=\"幅\" name=\"pp[";
  1617.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1618.                 echo "][w]\" value=\"";
  1619.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'926$this->source); })()), $context["i"], [], "array"falsefalsefalse926), "w", [], "array"falsefalsefalse926), "html"nulltrue);
  1620.                 echo "\">
  1621. \t\t\t\t\t\t\t\t\t\t</td>
  1622. \t\t\t\t            \t\t\t<td>
  1623. \t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">";
  1624.                 // line 929
  1625.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'929$this->source); })()), $context["i"], [], "array"falsefalsefalse929), "d", [], "array"falsefalsefalse929), "html"nulltrue);
  1626.                 echo "</div>
  1627. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_d_";
  1628.                 // line 930
  1629.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1630.                 echo "\" placeholder=\"奥行き\" name=\"pp[";
  1631.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1632.                 echo "][d]\" value=\"";
  1633.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'930$this->source); })()), $context["i"], [], "array"falsefalsefalse930), "d", [], "array"falsefalsefalse930), "html"nulltrue);
  1634.                 echo "\">
  1635. \t\t\t\t\t\t\t\t\t\t</td>
  1636. \t\t\t\t            \t\t\t<td>
  1637. \t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">";
  1638.                 // line 933
  1639.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'933$this->source); })()), $context["i"], [], "array"falsefalsefalse933), "h", [], "array"falsefalsefalse933), "html"nulltrue);
  1640.                 echo "</div>
  1641. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_h_";
  1642.                 // line 934
  1643.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1644.                 echo "\" placeholder=\"高さ\" name=\"pp[";
  1645.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1646.                 echo "][h]\" value=\"";
  1647.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'934$this->source); })()), $context["i"], [], "array"falsefalsefalse934), "h", [], "array"falsefalsefalse934), "html"nulltrue);
  1648.                 echo "\">
  1649. \t\t\t\t\t\t\t\t\t\t</td>
  1650. \t\t\t\t            \t\t\t<td>
  1651. \t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">";
  1652.                 // line 937
  1653.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'937$this->source); })()), $context["i"], [], "array"falsefalsefalse937), "c", [], "array"falsefalsefalse937), "html"nulltrue);
  1654.                 echo "</div>
  1655. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_c_";
  1656.                 // line 938
  1657.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1658.                 echo "\" placeholder=\"カラー\" name=\"pp[";
  1659.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1660.                 echo "][c]\" value=\"";
  1661.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'938$this->source); })()), $context["i"], [], "array"falsefalsefalse938), "c", [], "array"falsefalsefalse938), "html"nulltrue);
  1662.                 echo "\">
  1663. \t\t\t\t\t\t\t\t\t\t</td>
  1664. \t\t\t\t            \t\t\t<td>
  1665. \t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">";
  1666.                 // line 941
  1667.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'941$this->source); })()), $context["i"], [], "array"falsefalsefalse941), "m", [], "array"falsefalsefalse941), "html"nulltrue);
  1668.                 echo "</div>
  1669. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_m_";
  1670.                 // line 942
  1671.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1672.                 echo "\" placeholder=\"素材\" name=\"pp[";
  1673.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1674.                 echo "][m]\" value=\"";
  1675.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'942$this->source); })()), $context["i"], [], "array"falsefalsefalse942), "m", [], "array"falsefalsefalse942), "html"nulltrue);
  1676.                 echo "\">
  1677. \t\t\t\t\t\t\t\t\t\t</td>
  1678. \t\t\t\t            \t\t\t<td>
  1679. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_mp_";
  1680.                 // line 945
  1681.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1682.                 echo "\" placeholder=\"メーカー価格\" name=\"pp[";
  1683.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1684.                 echo "][maker_price]\" value=\"";
  1685.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'945$this->source); })()), $context["i"], [], "array"falsefalsefalse945), "maker_price", [], "array"falsefalsefalse945), "html"nulltrue);
  1686.                 echo "\">
  1687. \t\t\t\t\t\t\t\t\t\t</td>
  1688. \t\t\t\t            \t\t\t<td>
  1689. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_s_";
  1690.                 // line 948
  1691.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1692.                 echo "\" placeholder=\"割引率\" name=\"pp[";
  1693.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1694.                 echo "][sale]\" value=\"";
  1695.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'948$this->source); })()), $context["i"], [], "array"falsefalsefalse948), "sale", [], "array"falsefalsefalse948), "html"nulltrue);
  1696.                 echo "\">
  1697. \t\t\t\t\t\t\t\t\t\t</td>
  1698. \t\t\t\t            \t\t\t<td>
  1699. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_p_";
  1700.                 // line 951
  1701.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1702.                 echo "\" placeholder=\"価格\" name=\"pp[";
  1703.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1704.                 echo "][price]\" value=\"";
  1705.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'951$this->source); })()), $context["i"], [], "array"falsefalsefalse951), "price", [], "array"falsefalsefalse951), "html"nulltrue);
  1706.                 echo "\">
  1707. \t\t\t\t\t\t\t\t\t\t</td>
  1708. \t\t\t\t            \t\t\t<td>
  1709. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_ct_";
  1710.                 // line 954
  1711.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1712.                 echo "\" placeholder=\"基本工事費\" name=\"pp[";
  1713.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1714.                 echo "][ct]\" value=\"";
  1715.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pp"]) || array_key_exists("pp"$context) ? $context["pp"] : (function () { throw new RuntimeError('Variable "pp" does not exist.'954$this->source); })()), $context["i"], [], "array"falsefalsefalse954), "ct", [], "array"falsefalsefalse954), "html"nulltrue);
  1716.                 echo "\">
  1717. \t\t\t\t\t\t\t\t\t\t</td>
  1718. \t\t\t\t            \t\t\t<td>
  1719. \t\t\t\t\t\t\t\t            <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#pp_list_";
  1720.                 // line 957
  1721.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1722.                 echo "').remove(); }\">削除</button>
  1723. \t\t\t\t\t\t\t\t\t\t</td>
  1724. \t\t\t\t\t\t\t\t\t</tr>
  1725.                         \t\t\t";
  1726.             } else {
  1727.                 // line 961
  1728.                 echo "\t\t\t\t\t\t\t\t\t<tr id=\"pp_list_";
  1729.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1730.                 echo "\" ";
  1731.                 if ((isset($context["disable_pp"]) || array_key_exists("disable_pp"$context) ? $context["disable_pp"] : (function () { throw new RuntimeError('Variable "disable_pp" does not exist.'961$this->source); })())) {
  1732.                     echo "style=\"display:none;\"";
  1733.                 }
  1734.                 echo ">
  1735. \t\t\t\t            \t\t\t<td>
  1736. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_w_";
  1737.                 // line 963
  1738.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1739.                 echo "\" placeholder=\"幅\" name=\"pp[";
  1740.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1741.                 echo "][w]\" value=\"\">
  1742. \t\t\t\t\t\t\t\t\t\t</td>
  1743. \t\t\t\t            \t\t\t<td>
  1744. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_d_";
  1745.                 // line 966
  1746.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1747.                 echo "\" placeholder=\"奥行き\" name=\"pp[";
  1748.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1749.                 echo "][d]\" value=\"\">
  1750. \t\t\t\t\t\t\t\t\t\t</td>
  1751. \t\t\t\t            \t\t\t<td>
  1752. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_h_";
  1753.                 // line 969
  1754.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1755.                 echo "\" placeholder=\"高さ\" name=\"pp[";
  1756.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1757.                 echo "][h]\" value=\"\">
  1758. \t\t\t\t\t\t\t\t\t\t</td>
  1759. \t\t\t\t            \t\t\t<td>
  1760. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_c_";
  1761.                 // line 972
  1762.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1763.                 echo "\" placeholder=\"カラー\" name=\"pp[";
  1764.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1765.                 echo "][c]\" value=\"\">
  1766. \t\t\t\t\t\t\t\t\t\t</td>
  1767. \t\t\t\t            \t\t\t<td>
  1768. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_m_";
  1769.                 // line 975
  1770.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1771.                 echo "\" placeholder=\"素材\" name=\"pp[";
  1772.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1773.                 echo "][m]\" value=\"\">
  1774. \t\t\t\t\t\t\t\t\t\t</td>
  1775. \t\t\t\t            \t\t\t<td>
  1776. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_mp_";
  1777.                 // line 978
  1778.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1779.                 echo "\" placeholder=\"メーカー価格\" name=\"pp[";
  1780.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1781.                 echo "][maker_price]\" value=\"\">
  1782. \t\t\t\t\t\t\t\t\t\t</td>
  1783. \t\t\t\t            \t\t\t<td>
  1784. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_s_";
  1785.                 // line 981
  1786.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1787.                 echo "\" placeholder=\"割引率\" name=\"pp[";
  1788.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1789.                 echo "][sale]\" value=\"\">
  1790. \t\t\t\t\t\t\t\t\t\t</td>
  1791. \t\t\t\t            \t\t\t<td>
  1792. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_p_";
  1793.                 // line 984
  1794.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1795.                 echo "\" placeholder=\"価格\" name=\"pp[";
  1796.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1797.                 echo "][price]\" value=\"\">
  1798. \t\t\t\t\t\t\t\t\t\t</td>
  1799. \t\t\t\t            \t\t\t<td>
  1800. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_ct_";
  1801.                 // line 987
  1802.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1803.                 echo "\" placeholder=\"基本工事費\" name=\"pp[";
  1804.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1805.                 echo "][ct]\" value=\"\">
  1806. \t\t\t\t\t\t\t\t\t\t</td>
  1807. \t\t\t\t            \t\t\t<td>
  1808. \t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"pp_btn_";
  1809.                 // line 990
  1810.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1811.                 echo "\" class=\"btn btn-danger\" style=\"display:none;\" onclick=\"if(confirm('削除してよろしいですか?')){\$('#pp_list_";
  1812.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1813.                 echo "').remove();}\">削除</button>
  1814. \t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-warning\" onclick=\"\$('#pp_list_";
  1815.                 // line 991
  1816.                 echo twig_escape_filter($this->env, ($context["i"] + 1), "html"nulltrue);
  1817.                 echo "').show();\$('#pp_btn_";
  1818.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1819.                 echo "').show();\$(this).hide();\">追加</button>
  1820. \t\t\t\t\t\t\t\t\t\t</td>
  1821. \t\t\t\t\t\t\t\t\t</tr>
  1822. \t\t\t                        ";
  1823.                 // line 994
  1824.                 $context["disable_pp"] = true;
  1825.                 // line 995
  1826.                 echo "                        \t\t\t";
  1827.             }
  1828.             // line 996
  1829.             echo "                      \t\t\t";
  1830.         }
  1831.         $_parent $context['_parent'];
  1832.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  1833.         $context array_intersect_key($context$_parent) + $_parent;
  1834.         // line 997
  1835.         echo "\t\t\t\t\t\t\t\t  </tbody>
  1836. \t\t\t\t\t\t\t\t</table>
  1837.                             </div>
  1838.                         </div>
  1839.                     </div>
  1840.                     <div class=\"card rounded border-0 mb-4\">
  1841.                         <div class=\"card-header\">
  1842.                             <div class=\"row\">
  1843.                                 <div class=\"col-8\">
  1844.                                     <div class=\"d-inline-block\">
  1845.                                         <span class=\"card-title\">施工オプション設定</span>
  1846.                                     </div>
  1847.                                 </div>
  1848.                                 <div class=\"col-4 text-end\">
  1849.                                     <a data-bs-toggle=\"collapse\" href=\"#optionArea\" aria-expanded=\"false\"
  1850.                                        aria-controls=\"optionArea\">
  1851.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  1852.                                     </a>
  1853.                                 </div>
  1854.                             </div>
  1855.                         </div>
  1856.                         <div class=\"collapse show ec-cardCollapse\" id=\"optionArea\">
  1857.                             <div class=\"card-body\" style=\"overflow-y: scroll;max-height: 700px;\">
  1858. \t\t\t\t\t\t\t\t<table class=\"table table-bordered\">
  1859. \t\t\t\t\t\t\t\t\t<tr>
  1860. \t\t\t\t            \t\t\t<th>オプション名</th>
  1861. \t\t\t\t            \t\t\t<th>依頼するテキスト</th>
  1862. \t\t\t\t            \t\t\t<th>依頼しないテキスト</th>
  1863. \t\t\t\t            \t\t\t<th>オプション価格</th>
  1864. \t\t\t\t            \t\t\t<th rowspan=\"2\">設定</th>
  1865. \t\t\t\t\t\t\t\t\t</tr>
  1866. \t\t\t\t\t\t\t\t\t<tr>
  1867. \t\t\t\t            \t\t\t<th colspan=\"4\">オプション説明</th>
  1868. \t\t\t\t\t\t\t\t\t</tr>
  1869. \t\t\t\t\t            ";
  1870.         // line 1031
  1871.         $context["disable_op"] = false;
  1872.         // line 1032
  1873.         echo "                                ";
  1874.         $context['_parent'] = $context;
  1875.         $context['_seq'] = twig_ensure_traversable(range(010));
  1876.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  1877.             // line 1033
  1878.             echo "                                \t";
  1879.             if (((isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'1033$this->source); })()) && (twig_length_filter($this->env, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'1033$this->source); })())) >= ($context["i"] + 1)))) {
  1880.                 // line 1034
  1881.                 echo "\t\t\t\t\t\t\t\t\t<tr id=\"op_list1_";
  1882.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1883.                 echo "\">
  1884. \t\t\t\t            \t\t\t<td>
  1885. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_name_";
  1886.                 // line 1036
  1887.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1888.                 echo "\" placeholder=\"オプション名\" name=\"op[";
  1889.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1890.                 echo "][name]\" value=\"";
  1891.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'1036$this->source); })()), $context["i"], [], "array"falsefalsefalse1036), "name", [], "array"falsefalsefalse1036), "html"nulltrue);
  1892.                 echo "\">
  1893. \t\t\t\t\t\t\t\t\t\t</td>
  1894. \t\t\t\t            \t\t\t<td>
  1895. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_on_text";
  1896.                 // line 1039
  1897.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1898.                 echo "\" placeholder=\"依頼するテキスト\" name=\"op[";
  1899.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1900.                 echo "][on]\" value=\"";
  1901.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'1039$this->source); })()), $context["i"], [], "array"falsefalsefalse1039), "on", [], "array"falsefalsefalse1039), "html"nulltrue);
  1902.                 echo "\">
  1903. \t\t\t\t\t\t\t\t\t\t</td>
  1904. \t\t\t\t            \t\t\t<td>
  1905. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_off_text_";
  1906.                 // line 1042
  1907.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1908.                 echo "\" placeholder=\"依頼しないテキスト\" name=\"op[";
  1909.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1910.                 echo "][off]\" value=\"";
  1911.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'1042$this->source); })()), $context["i"], [], "array"falsefalsefalse1042), "off", [], "array"falsefalsefalse1042), "html"nulltrue);
  1912.                 echo "\">
  1913. \t\t\t\t\t\t\t\t\t\t</td>
  1914. \t\t\t\t            \t\t\t<td>
  1915. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_price_";
  1916.                 // line 1045
  1917.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1918.                 echo "\" placeholder=\"オプション価格\" name=\"op[";
  1919.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1920.                 echo "][price]\" value=\"";
  1921.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'1045$this->source); })()), $context["i"], [], "array"falsefalsefalse1045), "price", [], "array"falsefalsefalse1045), "html"nulltrue);
  1922.                 echo "\">
  1923. \t\t\t\t\t\t\t\t\t\t</td>
  1924. \t\t\t\t            \t\t\t<td rowspan=\"2\">
  1925. \t\t\t\t\t\t\t\t            <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#op_list1_";
  1926.                 // line 1048
  1927.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1928.                 echo "').remove(); \$('#op_list2_";
  1929.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1930.                 echo "').remove(); }\">削除</button>
  1931. \t\t\t\t\t\t\t\t\t\t</td>
  1932. \t\t\t\t\t\t\t\t\t</tr>
  1933. \t\t\t\t\t\t\t\t\t<tr id=\"op_list2_";
  1934.                 // line 1051
  1935.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1936.                 echo "\">
  1937. \t\t\t\t            \t\t\t<td colspan=\"4\">
  1938. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_comment_";
  1939.                 // line 1053
  1940.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1941.                 echo "\" placeholder=\"オプション説明\" name=\"op[";
  1942.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1943.                 echo "][comment]\" value=\"";
  1944.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["op"]) || array_key_exists("op"$context) ? $context["op"] : (function () { throw new RuntimeError('Variable "op" does not exist.'1053$this->source); })()), $context["i"], [], "array"falsefalsefalse1053), "comment", [], "array"falsefalsefalse1053), "html"nulltrue);
  1945.                 echo "\">
  1946. \t\t\t\t\t\t\t\t\t\t</td>
  1947. \t\t\t\t\t\t\t\t\t</tr>
  1948.                         \t\t\t";
  1949.             } else {
  1950.                 // line 1057
  1951.                 echo "\t\t\t\t\t\t\t\t\t<tr id=\"op_list1_";
  1952.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1953.                 echo "\" ";
  1954.                 if ((isset($context["disable_op"]) || array_key_exists("disable_op"$context) ? $context["disable_op"] : (function () { throw new RuntimeError('Variable "disable_op" does not exist.'1057$this->source); })())) {
  1955.                     echo "style=\"display:none;\"";
  1956.                 }
  1957.                 echo ">
  1958. \t\t\t\t            \t\t\t<td>
  1959. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_name_";
  1960.                 // line 1059
  1961.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1962.                 echo "\" placeholder=\"オプション名\" name=\"op[";
  1963.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1964.                 echo "][name]\" value=\"\">
  1965. \t\t\t\t\t\t\t\t\t\t</td>
  1966. \t\t\t\t            \t\t\t<td>
  1967. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_on_text";
  1968.                 // line 1062
  1969.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1970.                 echo "\" placeholder=\"依頼するテキスト\" name=\"op[";
  1971.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1972.                 echo "][on]\" value=\"\">
  1973. \t\t\t\t\t\t\t\t\t\t</td>
  1974. \t\t\t\t            \t\t\t<td>
  1975. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_off_text_";
  1976.                 // line 1065
  1977.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1978.                 echo "\" placeholder=\"依頼しないテキスト\" name=\"op[";
  1979.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1980.                 echo "][off]\" value=\"\">
  1981. \t\t\t\t\t\t\t\t\t\t</td>
  1982. \t\t\t\t            \t\t\t<td>
  1983. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_price_";
  1984.                 // line 1068
  1985.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1986.                 echo "\" placeholder=\"オプション価格\" name=\"op[";
  1987.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1988.                 echo "][price]\" value=\"\">
  1989. \t\t\t\t\t\t\t\t\t\t</td>
  1990. \t\t\t\t            \t\t\t<td rowspan=\"2\">
  1991. \t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"op_btn_";
  1992.                 // line 1071
  1993.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1994.                 echo "\" class=\"btn btn-danger\" style=\"display:none;\" onclick=\"if(confirm('削除してよろしいですか?')){\$('#op_list1_";
  1995.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1996.                 echo "').remove();\$('#op_list2_";
  1997.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  1998.                 echo "').remove();}\">削除</button>
  1999. \t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-warning\" onclick=\"\$('#op_list1_";
  2000.                 // line 1072
  2001.                 echo twig_escape_filter($this->env, ($context["i"] + 1), "html"nulltrue);
  2002.                 echo "').show();\$('#op_list2_";
  2003.                 echo twig_escape_filter($this->env, ($context["i"] + 1), "html"nulltrue);
  2004.                 echo "').show();\$('#op_btn_";
  2005.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2006.                 echo "').show();\$(this).hide();\">追加</button>
  2007. \t\t\t\t\t\t\t\t\t\t</td>
  2008. \t\t\t\t\t\t\t\t\t</tr>
  2009. \t\t\t\t\t\t\t\t\t<tr id=\"op_list2_";
  2010.                 // line 1075
  2011.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2012.                 echo "\" ";
  2013.                 if ((isset($context["disable_op"]) || array_key_exists("disable_op"$context) ? $context["disable_op"] : (function () { throw new RuntimeError('Variable "disable_op" does not exist.'1075$this->source); })())) {
  2014.                     echo "style=\"display:none;\"";
  2015.                 }
  2016.                 echo ">
  2017. \t\t\t\t            \t\t\t<td colspan=\"4\">
  2018. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_comment_";
  2019.                 // line 1077
  2020.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2021.                 echo "\" placeholder=\"オプション説明\" name=\"op[";
  2022.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2023.                 echo "][comment]\" value=\"\">
  2024. \t\t\t\t\t\t\t\t\t\t</td>
  2025. \t\t\t\t\t\t\t\t\t</tr>
  2026. \t\t\t                        ";
  2027.                 // line 1080
  2028.                 $context["disable_op"] = true;
  2029.                 // line 1081
  2030.                 echo "                        \t\t\t";
  2031.             }
  2032.             // line 1082
  2033.             echo "                      \t\t\t";
  2034.         }
  2035.         $_parent $context['_parent'];
  2036.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  2037.         $context array_intersect_key($context$_parent) + $_parent;
  2038.         // line 1083
  2039.         echo "\t\t\t\t\t\t\t\t</table>
  2040.                             </div>
  2041.                         </div>
  2042.                     </div>
  2043.                     <div class=\"card rounded border-0 mb-4\">
  2044.                         <div class=\"card-header\">
  2045.                             <div class=\"row\">
  2046.                                 <div class=\"col-8\">
  2047.                                     <div class=\"d-inline-block\">
  2048.                                         <span class=\"card-title\">オプション商品設定</span>
  2049.                                     </div>
  2050.                                 </div>
  2051.                                 <div class=\"col-4 text-end\">
  2052.                                     <a data-bs-toggle=\"collapse\" href=\"#optionItemArea\" aria-expanded=\"false\"
  2053.                                        aria-controls=\"optionItemArea\">
  2054.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  2055.                                     </a>
  2056.                                 </div>
  2057.                             </div>
  2058.                         </div>
  2059.                         <div class=\"collapse show ec-cardCollapse\" id=\"optionItemArea\">
  2060.                             <div class=\"card-body\" style=\"overflow-y: scroll;max-height: 700px;\">
  2061. \t\t\t\t\t\t\t\t<table class=\"table table-bordered\">
  2062. \t\t\t\t\t\t\t\t\t<tr>
  2063. \t\t\t\t            \t\t\t<th rowspan=\"2\">商品画像</th>
  2064. \t\t\t\t            \t\t\t<th>商品名</th>
  2065. \t\t\t\t            \t\t\t<th>素材</th>
  2066. \t\t\t\t            \t\t\t<th>カラー</th>
  2067. \t\t\t\t            \t\t\t<th>価格</th>
  2068. \t\t\t\t            \t\t\t<th>工事費</th>
  2069. \t\t\t\t            \t\t\t<th rowspan=\"2\">設定</th>
  2070. \t\t\t\t\t\t\t\t\t</tr>
  2071. \t\t\t\t\t\t\t\t\t<tr>
  2072. \t\t\t\t            \t\t\t<th colspan=\"5\">説明</th>
  2073. \t\t\t\t\t\t\t\t\t</tr>
  2074. \t\t\t\t\t            ";
  2075.         // line 1120
  2076.         $context["disable_oi"] = false;
  2077.         // line 1121
  2078.         echo "                                ";
  2079.         $context['_parent'] = $context;
  2080.         $context['_seq'] = twig_ensure_traversable(range(01000));
  2081.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  2082.             // line 1122
  2083.             echo "                                \t";
  2084.             if (((isset($context["oi"]) || array_key_exists("oi"$context) ? $context["oi"] : (function () { throw new RuntimeError('Variable "oi" does not exist.'1122$this->source); })()) && (twig_length_filter($this->env, (isset($context["oi"]) || array_key_exists("oi"$context) ? $context["oi"] : (function () { throw new RuntimeError('Variable "oi" does not exist.'1122$this->source); })())) > $context["i"]))) {
  2085.                 // line 1123
  2086.                 echo "\t\t\t\t\t\t\t\t\t<tr id=\"oi_list1_";
  2087.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2088.                 echo "\">
  2089. \t\t\t\t            \t\t\t<td rowspan=\"2\">
  2090. \t\t\t\t\t\t\t\t\t\t\t<input type=\"file\" class=\"form-control\" id=\"oi_image_";
  2091.                 // line 1125
  2092.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2093.                 echo "\" placeholder=\"商品画像\" name=\"oi[";
  2094.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2095.                 echo "][image]\">
  2096. \t\t\t\t\t\t\t\t\t\t</td>
  2097. \t\t\t\t            \t\t\t<td>
  2098. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_name_";
  2099.                 // line 1128
  2100.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2101.                 echo "\" placeholder=\"商品名\" name=\"oi[";
  2102.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2103.                 echo "][name]\" value=\"";
  2104.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["oi"]) || array_key_exists("oi"$context) ? $context["oi"] : (function () { throw new RuntimeError('Variable "oi" does not exist.'1128$this->source); })()), $context["i"], [], "array"falsefalsefalse1128), "name", [], "array"falsefalsefalse1128), "html"nulltrue);
  2105.                 echo "\">
  2106. \t\t\t\t\t\t\t\t\t\t</td>
  2107. \t\t\t\t            \t\t\t<td>
  2108. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_m_";
  2109.                 // line 1131
  2110.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2111.                 echo "\" placeholder=\"素材\" name=\"oi[";
  2112.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2113.                 echo "][m]\" value=\"";
  2114.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["oi"]) || array_key_exists("oi"$context) ? $context["oi"] : (function () { throw new RuntimeError('Variable "oi" does not exist.'1131$this->source); })()), $context["i"], [], "array"falsefalsefalse1131), "m", [], "array"falsefalsefalse1131), "html"nulltrue);
  2115.                 echo "\">
  2116. \t\t\t\t\t\t\t\t\t\t</td>
  2117. \t\t\t\t            \t\t\t<td>
  2118. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_c_";
  2119.                 // line 1134
  2120.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2121.                 echo "\" placeholder=\"カラー\" name=\"oi[";
  2122.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2123.                 echo "][c]\" value=\"";
  2124.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["oi"]) || array_key_exists("oi"$context) ? $context["oi"] : (function () { throw new RuntimeError('Variable "oi" does not exist.'1134$this->source); })()), $context["i"], [], "array"falsefalsefalse1134), "c", [], "array"falsefalsefalse1134), "html"nulltrue);
  2125.                 echo "\">
  2126. \t\t\t\t\t\t\t\t\t\t</td>
  2127. \t\t\t\t            \t\t\t<td>
  2128. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_price1_";
  2129.                 // line 1137
  2130.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2131.                 echo "\" placeholder=\"価格\" name=\"oi[";
  2132.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2133.                 echo "][price1]\" value=\"";
  2134.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["oi"]) || array_key_exists("oi"$context) ? $context["oi"] : (function () { throw new RuntimeError('Variable "oi" does not exist.'1137$this->source); })()), $context["i"], [], "array"falsefalsefalse1137), "price1", [], "array"falsefalsefalse1137), "html"nulltrue);
  2135.                 echo "\">
  2136. \t\t\t\t\t\t\t\t\t\t</td>
  2137. \t\t\t\t            \t\t\t<td>
  2138. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_price2_";
  2139.                 // line 1140
  2140.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2141.                 echo "\" placeholder=\"工事費\" name=\"oi[";
  2142.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2143.                 echo "][price2]\" value=\"";
  2144.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["oi"]) || array_key_exists("oi"$context) ? $context["oi"] : (function () { throw new RuntimeError('Variable "oi" does not exist.'1140$this->source); })()), $context["i"], [], "array"falsefalsefalse1140), "price2", [], "array"falsefalsefalse1140), "html"nulltrue);
  2145.                 echo "\">
  2146. \t\t\t\t\t\t\t\t\t\t</td>
  2147. \t\t\t\t            \t\t\t<td rowspan=\"2\">
  2148. \t\t\t\t\t\t\t\t            <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#oi_list1_";
  2149.                 // line 1143
  2150.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2151.                 echo "').remove(); \$('#oi_list2_";
  2152.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2153.                 echo "').remove(); }\">削除</button>
  2154. \t\t\t\t\t\t\t\t\t\t</td>
  2155. \t\t\t\t\t\t\t\t\t</tr>
  2156. \t\t\t\t\t\t\t\t\t<tr id=\"oi_list2_";
  2157.                 // line 1146
  2158.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2159.                 echo "\">
  2160. \t\t\t\t            \t\t\t<td colspan=\"5\">
  2161. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_comment_";
  2162.                 // line 1148
  2163.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2164.                 echo "\" placeholder=\"説明\" name=\"oi[";
  2165.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2166.                 echo "][comment]\" value=\"";
  2167.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["oi"]) || array_key_exists("oi"$context) ? $context["oi"] : (function () { throw new RuntimeError('Variable "oi" does not exist.'1148$this->source); })()), $context["i"], [], "array"falsefalsefalse1148), "comment", [], "array"falsefalsefalse1148), "html"nulltrue);
  2168.                 echo "\">
  2169. \t\t\t\t\t\t\t\t\t\t</td>
  2170. \t\t\t\t\t\t\t\t\t</tr>
  2171.                         \t\t\t";
  2172.             } else {
  2173.                 // line 1152
  2174.                 echo "\t\t\t\t\t\t\t\t\t<tr id=\"oi_list1_";
  2175.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2176.                 echo "\" ";
  2177.                 if ((isset($context["disable_oi"]) || array_key_exists("disable_oi"$context) ? $context["disable_oi"] : (function () { throw new RuntimeError('Variable "disable_oi" does not exist.'1152$this->source); })())) {
  2178.                     echo "style=\"display:none;\"";
  2179.                 }
  2180.                 echo ">
  2181. \t\t\t\t            \t\t\t<td rowspan=\"2\">
  2182. \t\t\t\t\t\t\t\t\t\t\t<input type=\"file\" class=\"form-control\" id=\"oi_image_";
  2183.                 // line 1154
  2184.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2185.                 echo "\" placeholder=\"商品画像\" name=\"oi[";
  2186.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2187.                 echo "][image]\">
  2188. \t\t\t\t\t\t\t\t\t\t</td>
  2189. \t\t\t\t            \t\t\t<td>
  2190. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_name_";
  2191.                 // line 1157
  2192.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2193.                 echo "\" placeholder=\"商品名\" name=\"oi[";
  2194.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2195.                 echo "][name]\" value=\"\">
  2196. \t\t\t\t\t\t\t\t\t\t</td>
  2197. \t\t\t\t            \t\t\t<td>
  2198. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_m_";
  2199.                 // line 1160
  2200.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2201.                 echo "\" placeholder=\"素材\" name=\"oi[";
  2202.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2203.                 echo "][m]\" value=\"\">
  2204. \t\t\t\t\t\t\t\t\t\t</td>
  2205. \t\t\t\t            \t\t\t<td>
  2206. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_c_";
  2207.                 // line 1163
  2208.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2209.                 echo "\" placeholder=\"カラー\" name=\"oi[";
  2210.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2211.                 echo "][c]\" value=\"\">
  2212. \t\t\t\t\t\t\t\t\t\t</td>
  2213. \t\t\t\t            \t\t\t<td>
  2214. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_price1_";
  2215.                 // line 1166
  2216.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2217.                 echo "\" placeholder=\"価格\" name=\"oi[";
  2218.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2219.                 echo "][price1]\" value=\"\">
  2220. \t\t\t\t\t\t\t\t\t\t</td>
  2221. \t\t\t\t            \t\t\t<td>
  2222. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_price2_";
  2223.                 // line 1169
  2224.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2225.                 echo "\" placeholder=\"工事費\" name=\"oi[";
  2226.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2227.                 echo "][price2]\" value=\"\">
  2228. \t\t\t\t\t\t\t\t\t\t</td>
  2229. \t\t\t\t            \t\t\t<td rowspan=\"2\">
  2230. \t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"oi_btn_";
  2231.                 // line 1172
  2232.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2233.                 echo "\" class=\"btn btn-danger\" style=\"display:none;\" onclick=\"if(confirm('削除してよろしいですか?')){\$('#oi_list1_";
  2234.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2235.                 echo "').remove();\$('#oi_list2_";
  2236.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2237.                 echo "').remove();}\">削除</button>
  2238. \t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-warning\" onclick=\"\$('#oi_list1_";
  2239.                 // line 1173
  2240.                 echo twig_escape_filter($this->env, ($context["i"] + 1), "html"nulltrue);
  2241.                 echo "').show();\$('#oi_list2_";
  2242.                 echo twig_escape_filter($this->env, ($context["i"] + 1), "html"nulltrue);
  2243.                 echo "').show();\$('#oi_btn_";
  2244.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2245.                 echo "').show();\$(this).hide();\">追加</button>
  2246. \t\t\t\t\t\t\t\t\t\t</td>
  2247. \t\t\t\t\t\t\t\t\t</tr>
  2248. \t\t\t\t\t\t\t\t\t<tr id=\"oi_list2_";
  2249.                 // line 1176
  2250.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2251.                 echo "\" ";
  2252.                 if ((isset($context["disable_oi"]) || array_key_exists("disable_oi"$context) ? $context["disable_oi"] : (function () { throw new RuntimeError('Variable "disable_oi" does not exist.'1176$this->source); })())) {
  2253.                     echo "style=\"display:none;\"";
  2254.                 }
  2255.                 echo ">
  2256. \t\t\t\t            \t\t\t<td colspan=\"5\">
  2257. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_comment_";
  2258.                 // line 1178
  2259.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2260.                 echo "\" placeholder=\"説明\" name=\"oi[";
  2261.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  2262.                 echo "][comment]\" value=\"\">
  2263. \t\t\t\t\t\t\t\t\t\t</td>
  2264. \t\t\t\t\t\t\t\t\t</tr>
  2265. \t\t\t                        ";
  2266.                 // line 1181
  2267.                 $context["disable_oi"] = true;
  2268.                 // line 1182
  2269.                 echo "                        \t\t\t";
  2270.             }
  2271.             // line 1183
  2272.             echo "                      \t\t\t";
  2273.         }
  2274.         $_parent $context['_parent'];
  2275.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  2276.         $context array_intersect_key($context$_parent) + $_parent;
  2277.         // line 1184
  2278.         echo "\t\t\t\t\t\t\t\t</table>
  2279.                             </div>
  2280.                         </div>
  2281.                     </div>
  2282.         </div>
  2283.         <div class=\"c-conversionArea\">
  2284.             <div class=\"c-conversionArea__container\">
  2285.                 <div class=\"row justify-content-between align-items-center\">
  2286.                     <div class=\"col-6\">
  2287.                         <div class=\"c-conversionArea__leftBlockItem\">
  2288.                             <a class=\"c-baseLink\" href=\"";
  2289.         // line 1195
  2290.         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"falsetruefalse1195), "get", [=> "eccube.admin.product.search.page_no"], "method"truetruefalse1195)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "session", [], "any"falsetruefalse1195), "get", [=> "eccube.admin.product.search.page_no"], "method"falsefalsefalse1195), "1")) : ("1"))]), "html"nulltrue);
  2291.         echo "\"
  2292.                                data-action=\"confirm\" title=\"";
  2293.         // line 1196
  2294.         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);
  2295.         echo "\">
  2296.                                 <i class=\"fa fa-backward\" aria-hidden=\"true\"></i><span>";
  2297.         // line 1197
  2298.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_list"), "html"nulltrue);
  2299.         echo "</span>
  2300.                             </a>
  2301.                         </div>
  2302.                     </div>
  2303.                     <div class=\"col-6\">
  2304.                         <div id=\"ex-conversion-action\" class=\"row align-items-center justify-content-end\">
  2305.                             <div class=\"col-auto\">
  2306.                                 ";
  2307.         // line 1204
  2308.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'1204$this->source); })()), "Status", [], "any"falsefalsefalse1204), 'widget');
  2309.         echo "
  2310.                                 ";
  2311.         // line 1205
  2312.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'1205$this->source); })()), "Status", [], "any"falsefalsefalse1205), 'errors');
  2313.         echo "
  2314.                             </div>
  2315.                             <div class=\"col-auto\">
  2316.                                 <button class=\"btn btn-ec-conversion px-5\" type=\"submit\">";
  2317.         // line 1208
  2318.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.registration"), "html"nulltrue);
  2319.         echo "</button>
  2320.                             </div>
  2321.                         </div>
  2322.                     </div>
  2323.                 </div>
  2324.             </div>
  2325.         </div>
  2326.     </form>
  2327. ";
  2328.         
  2329.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  2330.         
  2331.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  2332.     }
  2333.     // line 713
  2334.     public function macro_tree($__ChoicedIds__ null$__Category__ null$__form__ null, ...$__varargs__)
  2335.     {
  2336.         $macros $this->macros;
  2337.         $context $this->env->mergeGlobals([
  2338.             "ChoicedIds" => $__ChoicedIds__,
  2339.             "Category" => $__Category__,
  2340.             "form" => $__form__,
  2341.             "varargs" => $__varargs__,
  2342.         ]);
  2343.         $blocks = [];
  2344.         ob_start();
  2345.         try {
  2346.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  2347.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  2348.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2349.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""tree"));
  2350.             // line 714
  2351.             echo "                                    ";
  2352.             $macros["selfMacro"] = $this;
  2353.             // line 715
  2354.             echo "                                    <li class=\"c-directoryTree--registerItem category-li\">
  2355.                                         <input type=\"checkbox\" id=\"admin_product_category_";
  2356.             // line 716
  2357.             echo twig_escape_filter($this->envtwig_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.'716$this->source); })()), "id", [], "any"falsefalsefalse716), "html"nulltrue);
  2358.             echo "\" name=\"admin_product[Category][]\" value=\"";
  2359.             echo twig_escape_filter($this->envtwig_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.'716$this->source); })()), "id", [], "any"falsefalsefalse716), "html"nulltrue);
  2360.             echo "\" ";
  2361.             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.'716$this->source); })()), "id", [], "any"falsefalsefalse716), (isset($context["ChoicedIds"]) || array_key_exists("ChoicedIds"$context) ? $context["ChoicedIds"] : (function () { throw new RuntimeError('Variable "ChoicedIds" does not exist.'716$this->source); })()))) {
  2362.                 echo "checked";
  2363.             }
  2364.             echo ">
  2365.                                         <label for=\"admin_product_category_";
  2366.             // line 717
  2367.             echo twig_escape_filter($this->envtwig_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.'717$this->source); })()), "id", [], "any"falsefalsefalse717), "html"nulltrue);
  2368.             echo "\">";
  2369.             echo twig_escape_filter($this->envtwig_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.'717$this->source); })()), "name", [], "any"falsefalsefalse717), "html"nulltrue);
  2370.             echo "</label>
  2371.                                         <ul class=\"list-unstyled\">
  2372.                                             ";
  2373.             // line 719
  2374.             $context['_parent'] = $context;
  2375.             $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.'719$this->source); })()), "children", [], "any"falsefalsefalse719));
  2376.             foreach ($context['_seq'] as $context["child"] => $context["ChildCategory"]) {
  2377.                 // line 720
  2378.                 echo "                                                ";
  2379.                 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.'720$this->source); })()), $context["ChildCategory"], (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'720$this->source); })())], 720$context$this->getSourceContext());
  2380.                 echo "
  2381.                                             ";
  2382.             }
  2383.             $_parent $context['_parent'];
  2384.             unset($context['_seq'], $context['_iterated'], $context['child'], $context['ChildCategory'], $context['_parent'], $context['loop']);
  2385.             $context array_intersect_key($context$_parent) + $_parent;
  2386.             // line 722
  2387.             echo "                                        </ul>
  2388.                                     </li>
  2389.                                 ";
  2390.             
  2391.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  2392.             
  2393.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  2394.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  2395.         } finally {
  2396.             ob_end_clean();
  2397.         }
  2398.     }
  2399.     public function getTemplateName()
  2400.     {
  2401.         return "@admin/Product/product.twig";
  2402.     }
  2403.     public function isTraitable()
  2404.     {
  2405.         return false;
  2406.     }
  2407.     public function getDebugInfo()
  2408.     {
  2409.         return array (  2448 => 722,  2439 => 720,  2435 => 719,  2428 => 717,  2418 => 716,  2415 => 715,  2412 => 714,  2391 => 713,  2372 => 1208,  2366 => 1205,  2362 => 1204,  2352 => 1197,  2348 => 1196,  2344 => 1195,  2331 => 1184,  2325 => 1183,  2322 => 1182,  2320 => 1181,  2312 => 1178,  2303 => 1176,  2293 => 1173,  2285 => 1172,  2277 => 1169,  2269 => 1166,  2261 => 1163,  2253 => 1160,  2245 => 1157,  2237 => 1154,  2227 => 1152,  2216 => 1148,  2211 => 1146,  2203 => 1143,  2193 => 1140,  2183 => 1137,  2173 => 1134,  2163 => 1131,  2153 => 1128,  2145 => 1125,  2139 => 1123,  2136 => 1122,  2131 => 1121,  2129 => 1120,  2090 => 1083,  2084 => 1082,  2081 => 1081,  2079 => 1080,  2071 => 1077,  2062 => 1075,  2052 => 1072,  2044 => 1071,  2036 => 1068,  2028 => 1065,  2020 => 1062,  2012 => 1059,  2002 => 1057,  1991 => 1053,  1986 => 1051,  1978 => 1048,  1968 => 1045,  1958 => 1042,  1948 => 1039,  1938 => 1036,  1932 => 1034,  1929 => 1033,  1924 => 1032,  1922 => 1031,  1886 => 997,  1880 => 996,  1877 => 995,  1875 => 994,  1867 => 991,  1861 => 990,  1853 => 987,  1845 => 984,  1837 => 981,  1829 => 978,  1821 => 975,  1813 => 972,  1805 => 969,  1797 => 966,  1789 => 963,  1779 => 961,  1772 => 957,  1762 => 954,  1752 => 951,  1742 => 948,  1732 => 945,  1722 => 942,  1718 => 941,  1708 => 938,  1704 => 937,  1694 => 934,  1690 => 933,  1680 => 930,  1676 => 929,  1666 => 926,  1662 => 925,  1656 => 923,  1653 => 922,  1648 => 921,  1646 => 920,  1598 => 875,  1594 => 874,  1576 => 859,  1571 => 857,  1557 => 846,  1551 => 843,  1542 => 837,  1536 => 834,  1527 => 828,  1521 => 825,  1503 => 810,  1490 => 801,  1488 => 800,  1482 => 797,  1474 => 791,  1471 => 790,  1460 => 787,  1456 => 785,  1451 => 784,  1449 => 783,  1444 => 781,  1436 => 776,  1430 => 772,  1427 => 771,  1418 => 768,  1415 => 767,  1410 => 766,  1408 => 765,  1391 => 751,  1376 => 740,  1374 => 739,  1370 => 738,  1361 => 733,  1352 => 730,  1349 => 729,  1344 => 728,  1342 => 727,  1338 => 725,  1328 => 706,  1302 => 683,  1295 => 678,  1284 => 672,  1280 => 671,  1272 => 665,  1270 => 664,  1255 => 651,  1247 => 646,  1243 => 645,  1228 => 633,  1224 => 632,  1209 => 620,  1205 => 619,  1195 => 611,  1193 => 610,  1190 => 609,  1187 => 608,  1181 => 607,  1173 => 602,  1169 => 601,  1162 => 597,  1158 => 595,  1152 => 593,  1149 => 592,  1146 => 591,  1141 => 590,  1139 => 589,  1136 => 588,  1133 => 587,  1125 => 582,  1121 => 581,  1113 => 576,  1108 => 573,  1105 => 572,  1097 => 567,  1093 => 566,  1085 => 561,  1080 => 558,  1078 => 557,  1070 => 552,  1066 => 551,  1057 => 545,  1053 => 544,  1043 => 537,  1039 => 536,  1031 => 531,  1026 => 528,  1024 => 527,  1017 => 523,  1013 => 522,  999 => 511,  995 => 510,  980 => 498,  976 => 497,  968 => 492,  964 => 491,  954 => 484,  950 => 483,  935 => 471,  931 => 470,  917 => 459,  913 => 457,  907 => 456,  904 => 455,  902 => 454,  894 => 451,  888 => 450,  880 => 447,  872 => 444,  864 => 441,  854 => 439,  847 => 435,  837 => 432,  827 => 429,  817 => 426,  811 => 424,  808 => 423,  803 => 422,  801 => 421,  778 => 401,  771 => 397,  767 => 396,  758 => 390,  753 => 388,  749 => 387,  744 => 384,  736 => 379,  731 => 378,  729 => 377,  727 => 376,  725 => 375,  723 => 374,  721 => 373,  719 => 372,  717 => 371,  715 => 370,  713 => 369,  711 => 368,  709 => 367,  705 => 365,  701 => 364,  692 => 358,  687 => 356,  677 => 349,  673 => 348,  664 => 342,  653 => 334,  649 => 333,  641 => 328,  636 => 326,  626 => 319,  622 => 318,  614 => 313,  609 => 310,  607 => 309,  601 => 306,  597 => 305,  589 => 300,  584 => 298,  579 => 295,  572 => 291,  565 => 287,  560 => 284,  558 => 283,  541 => 269,  527 => 258,  523 => 257,  513 => 250,  507 => 247,  494 => 237,  486 => 231,  476 => 230,  417 => 179,  408 => 176,  405 => 175,  400 => 174,  390 => 170,  386 => 169,  383 => 168,  378 => 167,  360 => 163,  356 => 162,  353 => 161,  336 => 160,  332 => 159,  314 => 144,  289 => 122,  273 => 109,  268 => 106,  256 => 100,  253 => 99,  249 => 98,  246 => 97,  234 => 91,  231 => 90,  227 => 89,  218 => 85,  194 => 64,  185 => 58,  175 => 51,  170 => 48,  164 => 46,  162 => 45,  156 => 41,  149 => 37,  144 => 35,  139 => 33,  134 => 31,  129 => 29,  124 => 28,  122 => 27,  114 => 21,  104 => 20,  85 => 16,  66 => 15,  55 => 11,  53 => 18,  51 => 13,  38 => 11,);
  2410.     }
  2411.     public function getSourceContext()
  2412.     {
  2413.         return new Source("{#
  2414. This file is part of EC-CUBE
  2415. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  2416. http://www.ec-cube.co.jp/
  2417. For the full copyright and license information, please view the LICENSE
  2418. file that was distributed with this source code.
  2419. #}
  2420. {% extends '@admin/default_frame.twig' %}
  2421. {% set menus = ['product', 'product_edit'] %}
  2422. {% block title %}{{ 'admin.product.product_registration'|trans }}{% endblock %}
  2423. {% block sub_title %}{{ 'admin.product.product_management'|trans }}{% endblock %}
  2424. {% form_theme form '@admin/Form/bootstrap_4_horizontal_layout.html.twig' %}
  2425. {% block javascript %}
  2426.     <script>
  2427.         \$(document).on('drop dragover', function(e) {
  2428.             e.preventDefault();
  2429.         });
  2430.         \$(function() {
  2431.             {% if has_class == false %}
  2432.             if (\$(\"#{{ form.class.stock_unlimited.vars.id }}\").prop(\"checked\")) {
  2433.                 \$(\"#{{ form.class.stock.vars.id }}\").attr(\"disabled\", \"disabled\").val('');
  2434.             } else {
  2435.                 \$(\"#{{ form.class.stock.vars.id }}\").removeAttr(\"disabled\");
  2436.             }
  2437.             \$(\"#{{ form.class.stock_unlimited.vars.id }}\").on(\"click change\", function() {
  2438.                 if (\$(this).prop(\"checked\")) {
  2439.                     \$(\"#{{ form.class.stock.vars.id }}\").attr(\"disabled\", \"disabled\").val('');
  2440.                 } else {
  2441.                     \$(\"#{{ form.class.stock.vars.id }}\").removeAttr(\"disabled\");
  2442.                 }
  2443.             });
  2444.             {% endif %}
  2445.             // ファイルアップロード
  2446.             // see https://pqina.nl/filepond/
  2447.             var inputFileElement = document.querySelector('input[type=file]');
  2448.             {% if eccube_config.locale == 'ja' or eccube_config.locale == 'en' %}
  2449.             FilePond.setOptions(FilePondLocale_{{ eccube_config.locale }});
  2450.             {% endif %}
  2451.             FilePond.setOptions({
  2452.                 server: {
  2453.                     process: {
  2454.                         url: '{{ path('admin_product_image_process') }}',
  2455.                         headers: {
  2456.                             'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content'),
  2457.                             'X-Requested-With': 'XMLHttpRequest'
  2458.                         }
  2459.                     },
  2460.                     load: {
  2461.                         url: '{{ path('admin_product_image_load') }}?source=',
  2462.                         headers: {
  2463.                             'X-Requested-With': 'XMLHttpRequest'
  2464.                         }
  2465.                     },
  2466.                     revert: {
  2467.                         url: '{{ path('admin_product_image_revert') }}',
  2468.                         headers: {
  2469.                             'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content'),
  2470.                             'X-Requested-With': 'XMLHttpRequest'
  2471.                         }
  2472.                     }
  2473.                 }
  2474.             });
  2475.             var pond = FilePond.create(inputFileElement, {
  2476.                 allowFileTypeValidation: true,
  2477.                 acceptedFileTypes: [
  2478.                     'image/gif',
  2479.                     'image/png',
  2480.                     'image/jpeg'
  2481.                 ],
  2482.                 allowFileSizeValidation: true,
  2483.                 maxFileSize: 10000000,
  2484.                 maxFiles: 10,
  2485.                 allowBrowse: true,
  2486.                 allowDrop: true,
  2487.                 allowReorder: true,
  2488.                 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>',
  2489.                 styleItemPanelAspectRatio: 0.5625,
  2490.                 // 保存されている画像のロード
  2491.                 files: [
  2492.                     {% for image in form.images %}
  2493.                     {
  2494.                         source: '{{ image.vars.value }}',
  2495.                         options: {
  2496.                             type: 'local'
  2497.                         }
  2498.                     },
  2499.                     {% endfor %}
  2500.                     // 追加してすぐの画像のロード. バリデーションエラーの場合など.
  2501.                     {% for add_image in form.add_images %}
  2502.                     {
  2503.                         source: '{{ add_image.vars.value }}',
  2504.                         options: {
  2505.                             type: 'local'
  2506.                         }
  2507.                     },
  2508.                     {% endfor %}
  2509.                 ]
  2510.             });
  2511.             // 画像が追加されたら add_images にファイル名を追加する
  2512.             var proto_add = '{{ form_widget(form.add_images.vars.prototype) }}';
  2513.             pond.on('processfile', function(error, file) {
  2514.                 if (error) {
  2515.                     console.log(error);
  2516.                 } else {
  2517.                     \$('#upload-zone').append(
  2518.                         \$(proto_add.replace(/__name__/g, file.id))
  2519.                             .val(file.serverId)
  2520.                             .addClass('add_images')
  2521.                     );
  2522.                 }
  2523.             });
  2524.             // 画像が削除されたら delete_images にファイル名を追加する
  2525.             var proto_del = '{{ form_widget(form.delete_images.vars.prototype) }}';
  2526.             pond.on('removefile', function(error, file) {
  2527.                 if (error) {
  2528.                     console.log(error);
  2529.                 } else {
  2530.                     // file.serverId にはアップロードしたファイル名が格納される.
  2531.                     if (file.serverId) {
  2532.                         \$('#upload-zone').append(
  2533.                             \$(proto_del.replace(/__name__/g, file.id))
  2534.                                 .val(file.serverId)
  2535.                                 .addClass('del_images')
  2536.                         );
  2537.                     }
  2538.                     // 追加してすぐ削除した画像があれば削除する
  2539.                     \$('#upload-zone').find('#admin_product_add_images_' + file.id).remove(); // 追加してすぐ削除した画像
  2540.                     \$('#upload-zone').find('.add_images[value=\"' + file.filename + '\"]').remove(); // 追加後, バリデーションエラーが発生した後に削除した画像
  2541.                 }
  2542.             });
  2543.             pond.on('initfile', function() {
  2544.                 \$('#product_image_error').hide();
  2545.             });
  2546.             pond.on('error', function(error, file) {
  2547.                 var message = '{{ 'admin.common.upload_error'|trans }}';
  2548.                 if (error.main !== undefined) {
  2549.                     message = `\${error.main}: \${error.sub}`;
  2550.                 }
  2551.                 \$('#product_image_error')
  2552.                     .show()
  2553.                     .find('.form-error-message').text(message);
  2554.                 // エラーメッセージが表示されてからプレビューエリアのエラーメッセージを非表示にする
  2555.                 setTimeout(function() {
  2556.                     \$('.filepond--file-status').hide();
  2557.                 }, 300);
  2558.             });
  2559.             // バリデーションエラーが出た場合に画像を保持するための hidden を追加しておく
  2560.             var proto_image = '{{ form_widget(form.images.vars.prototype) }}';
  2561.             {% for image in form.images %}
  2562.                 \$('#upload-zone').append(
  2563.                     \$(proto_image.replace(/__name__/g, '{{ loop.index0 }}'))
  2564.                         .val('{{ image.vars.value }}')
  2565.                         .addClass('images')
  2566.                 );
  2567.             {% endfor %}
  2568.             {% for add_image in form.add_images %}
  2569.                 \$('#upload-zone').append(
  2570.                     \$('{{ form_widget(add_image) }}')
  2571.                         .val('{{ add_image.vars.value }}')
  2572.                         .addClass('add_images')
  2573.                 );
  2574.             {% endfor %}
  2575.             {% for delete_image in form.delete_images %}
  2576.                 \$('#upload-zone').append(
  2577.                     \$('{{ form_widget(delete_image) }}').addClass('del_images')
  2578.                 );
  2579.             {% endfor %}
  2580.             // タグ管理
  2581.             var mainTags = \$('#allTags');
  2582.             var adminProductTag = \$('#admin_product_Tag');
  2583.             \$('input', adminProductTag).each(function() {
  2584.                 if (\$(this).is(':checked')) {
  2585.                     \$('button[data-tag-id=\"' + \$(this).val() + '\"]').removeClass('btn-outline-secondary').addClass('btn-outline-primary');
  2586.                 }
  2587.             });
  2588.             mainTags.on('click', 'button.btn', function() {
  2589.                 var btnTag = \$(this);
  2590.                 var tagId = btnTag.data('tag-id');
  2591.                 if (btnTag.hasClass('btn-outline-primary')) {
  2592.                     btnTag.removeClass('btn-outline-primary').addClass('btn-outline-secondary');
  2593.                     \$('input[value=\"' + tagId + '\"]', mainTags).prop('checked', false);
  2594.                 } else {
  2595.                     btnTag.removeClass('btn-outline-secondary').addClass('btn-outline-primary');
  2596.                     \$('input[value=\"' + tagId + '\"]', mainTags).prop('checked', true);
  2597.                 }
  2598.             });
  2599.             var confirmFormChange = function(form, target, modal) {
  2600.                 var returnLink = form.find('input[type=\"hidden\"][name*=\"return_link\"]'),
  2601.                     saveBtn = modal.find('a[data-action=\"save\"]'),
  2602.                     cancelBtn = modal.find('a[data-action=\"cancel\"]');
  2603.                 modal.on('hidden.bs.modal', function() {
  2604.                     returnLink.val('');
  2605.                 });
  2606.                 saveBtn.on('click', function() {
  2607.                     returnLink.val(\$(this).data('return-link'));
  2608.                     \$(this).addClass('disabled');
  2609.                     form.submit();
  2610.                 });
  2611.                 target.on('click', function() {
  2612.                     modal.find('.modal-body .screen-name').text(\$(this).attr('title'));
  2613.                     modal.modal('show');
  2614.                     saveBtn.data('return-link', \$(this).attr('href'));
  2615.                     cancelBtn.attr('href', \$(this).attr('href'));
  2616.                     return false;
  2617.                 });
  2618.             };
  2619.             confirmFormChange(\$('#form1'), \$('a[data-action=\"confirm\"]'), \$('#confirmFormChangeModal'))
  2620.         });
  2621.         // searchWordの実行
  2622.         \$('#search-category').on('input', function () {
  2623.             searchWord(\$(this).val(), \$('.category-li'));
  2624.         });
  2625.     </script>
  2626. {% endblock javascript %}
  2627. {% block main %}
  2628.     <!-- 移動確認モーダル-->
  2629.     <div class=\"modal fade\" id=\"confirmFormChangeModal\" tabindex=\"-1\" role=\"dialog\"
  2630.          aria-labelledby=\"confirmFormChangeModal\" aria-hidden=\"true\">
  2631.         <div class=\"modal-dialog\" role=\"document\">
  2632.             <div class=\"modal-content\">
  2633.                 <div class=\"modal-header\">
  2634.                     <h5 class=\"modal-title\">{{ 'admin.common.move_to_confirm_title'|trans }}</h5>
  2635.                     <button class=\"btn-close\" type=\"button\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
  2636.                     </button>
  2637.                 </div>
  2638.                 <div class=\"modal-body\">
  2639.                     <p class=\"screen-name\"></p>
  2640.                 </div>
  2641.                 <div class=\"modal-footer\">
  2642.                     <a class=\"btn btn-ec-conversion\" data-action=\"save\" href=\"javascript:void(0)\">
  2643.                         {{ 'admin.common.move_to_confirm_save_and_move'|trans }}
  2644.                     </a>
  2645.                     <a class=\"btn btn-ec-sub\" data-action=\"cancel\" href=\"javascript:void(0)\">
  2646.                         {{ 'admin.common.move_to_confirm_move_only'|trans }}
  2647.                     </a>
  2648.                 </div>
  2649.             </div>
  2650.         </div>
  2651.     </div>
  2652.     <form role=\"form\" name=\"form1\" id=\"form1\" method=\"post\" action=\"\" novalidate enctype=\"multipart/form-data\">
  2653.         {{ form_widget(form._token) }}
  2654.         {{ form_widget(form.return_link) }}
  2655.     <div class=\"row\">
  2656.         <div class=\"c-contentsArea__cols\" style=\"padding-bottom:0px\">
  2657.             <div class=\"c-contentsArea__primaryCol\">
  2658.                 <div class=\"c-primaryCol\">
  2659.                     <div class=\"card rounded border-0 mb-4\">
  2660.                         <div class=\"card-header\">
  2661.                             <div class=\"row\">
  2662.                                 <div class=\"col-8\">
  2663.                                     <div class=\"d-inline-block\">
  2664.                                     <span class=\"card-title\">
  2665.                                         {{ 'admin.product.product__card_title'|trans }}
  2666.                                     </span>
  2667.                                     </div>
  2668.                                 </div>
  2669.                                 <div class=\"col-4 text-end\">
  2670.                                     <a data-bs-toggle=\"collapse\" href=\"#basicConfig\" aria-expanded=\"false\"
  2671.                                        aria-controls=\"basicConfig\">
  2672.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  2673.                                     </a>
  2674.                                 </div>
  2675.                             </div>
  2676.                         </div>
  2677.                         <div class=\"collapse show ec-cardCollapse\" id=\"basicConfig\">
  2678.                             <div class=\"card-body\">
  2679.                                 {% if Product.id %}
  2680.                                     <div class=\"row\">
  2681.                                         <div class=\"col-3\">
  2682.                                             <div>
  2683.                                                 <span>{{ 'admin.product.product_id'|trans }}</span>
  2684.                                             </div>
  2685.                                         </div>
  2686.                                         <div class=\"col\">
  2687.                                             <p>{{ Product.id }}</p>
  2688.                                         </div>
  2689.                                     </div>
  2690.                                 {% endif %}
  2691.                                 <div class=\"row\">
  2692.                                     <div class=\"col-3\">
  2693.                                         <div class=\"d-inline-block\">
  2694.                                             <span>{{ 'admin.product.name'|trans }}</span>
  2695.                                             <span class=\"badge bg-primary ms-1\">
  2696.                                                 {{ 'admin.common.required'|trans }}
  2697.                                             </span>
  2698.                                         </div>
  2699.                                     </div>
  2700.                                     <div class=\"col mb-2\">
  2701.                                         {{ form_widget(form.name) }}
  2702.                                         {{ form_errors(form.name) }}
  2703.                                     </div>
  2704.                                 </div>
  2705.                                 {% if has_class == false %}
  2706.                                     <div class=\"row\">
  2707.                                         <div class=\"col-3\">
  2708.                                             <div class=\"d-inline-block\">
  2709.                                                 <span>{{ 'admin.product.product_code'|trans }}</span>
  2710.                                             </div>
  2711.                                         </div>
  2712.                                         <div class=\"col mb-2\">
  2713.                                             <div>
  2714.                                                 {{ form_widget(form.class.code) }}
  2715.                                                 {{ form_errors(form.class.code) }}
  2716.                                             </div>
  2717.                                         </div>
  2718.                                     </div>
  2719.                                     <div class=\"row\">
  2720.                                         <div class=\"col-3\">
  2721.                                             <div>
  2722.                                                 <span>{{ 'admin.product.sale_type'|trans }}</span>
  2723.                                                 <span class=\"badge bg-primary ms-1\">
  2724.                                                     {{ 'admin.common.required'|trans }}
  2725.                                                 </span>
  2726.                                             </div>
  2727.                                         </div>
  2728.                                         <div class=\"col mb-2\">
  2729.                                             {{ form_widget(form.class.sale_type) }}
  2730.                                             {{ form_errors(form.class.sale_type) }}
  2731.                                         </div>
  2732.                                     </div>
  2733.                                     <div class=\"row\">
  2734.                                         <div class=\"col-3\">
  2735.                                             <div class=\"d-inline-block\">
  2736.                                                 <span>販売価格(見積商品は最低価格)</span>
  2737.                                                 <span class=\"badge bg-primary ms-1\">
  2738.                                                     {{ 'admin.common.required'|trans }}
  2739.                                                 </span>
  2740.                                             </div>
  2741.                                         </div>
  2742.                                         <div class=\"col mb-2\">
  2743.                                             <div>
  2744.                                                 {{ form_widget(form.class.price02) }}
  2745.                                                 {{ form_errors(form.class.price02) }}
  2746.                                             </div>
  2747.                                         </div>
  2748.                                     </div>
  2749.                                     <div class=\"row\">
  2750.                                         <div class=\"col-3\">
  2751.                                             <div class=\"d-inline-block\">
  2752.                                                 <span>{{ 'admin.product.stock'|trans }}</span>
  2753.                                                 <span class=\"badge bg-primary ms-1\">
  2754.                                                     {{ 'admin.common.required'|trans }}
  2755.                                                 </span>
  2756.                                             </div>
  2757.                                         </div>
  2758.                                         <div class=\"col\">
  2759.                                             <div>
  2760.                                                 {{ form_widget(form.class.stock) }}
  2761.                                                 {{ form_errors(form.class.stock) }}
  2762.                                                 {# TODO: form_layoutの調整 #}
  2763.                                                 {#<div class=\"form-check mb-2\">#}
  2764.                                                 {#<input class=\"form-check-input\"#}
  2765.                                                 {#id=\"{{ form.class.stock_unlimited.vars.id }}\"#}
  2766.                                                 {#name=\"{{ form.class.stock_unlimited.vars.full_name }}\"#}
  2767.                                                 {#type=\"checkbox\"#}
  2768.                                                 {#value=\"{{ form.class.stock_unlimited.vars.value }}\">#}
  2769.                                                 {#<label class=\"form-check-label\"#}
  2770.                                                 {#for=\"{{ form.class.stock_unlimited.vars.id }}\">#}
  2771.                                                 {#{{ 'admin.product.product.stock_unlimited'|trans }}#}
  2772.                                                 {#</label>#}
  2773.                                                 {#</div>#}
  2774.                                                 {{ form_widget(form.class.stock_unlimited) }}
  2775.                                                 {{ form_errors(form.class.stock_unlimited) }}
  2776.                                             </div>
  2777.                                         </div>
  2778.                                     </div>
  2779.                                 {% endif %}
  2780.                                 <div class=\"row\">
  2781.                                     <div class=\"col-3\">
  2782.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"{{ 'tooltip.product.image'|trans }}\">
  2783.                                             <span>{{ 'admin.product.image'|trans }}</span>
  2784.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2785.                                             <br>{{ 'admin.product.image_size'|trans }}
  2786.                                         </div>
  2787.                                     </div>
  2788.                                     <div class=\"col mb-2\">
  2789.                                         <p id=\"message\"></p>
  2790.                                         <div id=\"upload-zone\" class=\"rounded\">
  2791.                                             {{ form_widget(form.product_image, { attr : { style : 'display:none;' } }) }}
  2792.                                             {{ form_errors(form.product_image) }}
  2793.                                         </div><!-- /#upload-zone -->
  2794.                                         <span class=\"invalid-feedback\" id=\"product_image_error\" style=\"display: none\">
  2795.                                             <span class=\"d-block\">
  2796.                                                 <span class=\"form-error-icon badge bg-danger text-uppercase\">{{ 'Error'|trans({}, 'validators') }}</span>
  2797.                                                 <span class=\"form-error-message\"></span>
  2798.                                             </span>
  2799.                                         </span>
  2800.                                     </div>
  2801.                                 </div>
  2802.                                 <div class=\"row\">
  2803.                                     <div class=\"col-3\">
  2804.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\">
  2805.                                             <span>カラー</span>
  2806.                                         </div>
  2807.                                     </div>
  2808.                                     <div class=\"col mb-2\">
  2809. \t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered\">
  2810. \t\t\t\t\t\t\t\t\t\t\t<tr>
  2811. \t\t\t\t\t\t            \t\t\t<th>カラー名</th>
  2812. \t\t\t\t\t\t            \t\t\t<th>カラーコード</th>
  2813. \t\t\t\t\t\t            \t\t\t<th>サンプル画像</th>
  2814. \t\t\t\t\t\t            \t\t\t<th>設定</th>
  2815. \t\t\t\t\t\t\t\t\t\t\t</tr>
  2816. \t\t\t\t\t\t\t            {% set disable_color = false %}
  2817. \t\t                                {% for i in 0..10 %}
  2818. \t\t                                \t{% if color and color|length >= i+1 %}
  2819. \t\t\t\t\t\t\t\t\t\t\t<tr id=\"color_list_{{ i }}\">
  2820. \t\t\t\t\t\t            \t\t\t<td>
  2821. \t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_name_{{ i }}\" placeholder=\"カラー名\" name=\"color[{{ i }}][name]\" value=\"{{ color[i]['name'] }}\">
  2822. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  2823. \t\t\t\t\t\t            \t\t\t<td>
  2824. \t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_code_{{ i }}\" placeholder=\"カラーコード\" name=\"color[{{ i }}][code]\" value=\"{{ color[i]['code'] }}\">
  2825. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  2826. \t\t\t\t\t\t            \t\t\t<td>
  2827. \t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_img_{{ i }}\" placeholder=\"サンプル画像\" name=\"color[{{ i }}][img]\" value=\"{{ color[i]['img'] }}\">
  2828. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  2829. \t\t\t\t\t\t            \t\t\t<td>
  2830. \t\t\t\t\t\t\t\t\t\t            <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#color_list_{{ i }}').remove(); }\">削除</button>
  2831. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  2832. \t\t\t\t\t\t\t\t\t\t\t</tr>
  2833. \t\t                        \t\t\t{% else %}
  2834. \t\t\t\t\t\t\t\t\t\t\t<tr id=\"color_list_{{ i }}\" {% if disable_color %}style=\"display:none;\"{% endif %}>
  2835. \t\t\t\t\t\t            \t\t\t<td>
  2836. \t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_name_{{ i }}\" placeholder=\"カラー名\" name=\"color[{{ i }}][name]\" value=\"\">
  2837. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  2838. \t\t\t\t\t\t            \t\t\t<td>
  2839. \t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_code_{{ i }}\" placeholder=\"カラーコード\" name=\"color[{{ i }}][code]\" value=\"\">
  2840. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  2841. \t\t\t\t\t\t            \t\t\t<td>
  2842. \t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_img_{{ i }}\" placeholder=\"サンプル画像\" name=\"color[{{ i }}][img]\" value=\"\">
  2843. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  2844. \t\t\t\t\t\t            \t\t\t<td>
  2845. \t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"color_btn_{{ i }}\" class=\"btn btn-danger\" style=\"display:none;\" onclick=\"if(confirm('削除してよろしいですか?')){\$('#color_list_{{ i }}').remove();}\">削除</button>
  2846. \t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-warning\" onclick=\"\$('#color_list_{{ i + 1 }}').show();\$('#color_btn_{{ i }}').show();\$(this).hide();\">追加</button>
  2847. \t\t\t\t\t\t\t\t\t\t\t\t</td>
  2848. \t\t\t\t\t\t\t\t\t\t\t</tr>
  2849. \t\t\t\t\t                        {% set disable_color = true %}
  2850. \t\t                        \t\t\t{% endif %}
  2851. \t\t                      \t\t\t{% endfor %}
  2852. \t\t\t\t\t\t\t\t\t\t</table>
  2853.                                             {{ form_errors(form.search_word) }}
  2854.                                     </div>
  2855.                                 </div>
  2856.                                 <div class=\"row\">
  2857.                                     <div class=\"col-3\">
  2858.                                         <div class=\"d-inline-block\">
  2859.                                             <span>一覧スペック</span>
  2860.                                         </div>
  2861.                                     </div>
  2862.                                     <div class=\"col mb-2\">
  2863.                                         <div>
  2864.                                             {{ form_widget(form.list_spec, { attr : { rows : \"4\"} }) }}
  2865.                                             {{ form_errors(form.list_spec) }}
  2866.                                         </div>
  2867.                                     </div>
  2868.                                 </div>
  2869.                                 <div class=\"row\">
  2870.                                     <div class=\"col-3\">
  2871.                                         <div class=\"d-inline-block\">
  2872.                                             <span>一覧説明</span>
  2873.                                         </div>
  2874.                                     </div>
  2875.                                     <div class=\"col mb-2\">
  2876.                                         <div>
  2877.                                             {{ form_widget(form.description_list, { attr : { rows : \"4\"} }) }}
  2878.                                             {{ form_errors(form.description_list) }}
  2879.                                         </div>
  2880.                                     </div>
  2881.                                 </div>
  2882.                                 <div class=\"row\">
  2883.                                     <div class=\"col-3\">
  2884.                                         <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2885.                                              title=\"{{ 'tooltip.product.description_detail'|trans }}\">
  2886.                                             <span>{{ 'admin.product.description_detail'|trans }}</span>
  2887.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2888.                                         </div>
  2889.                                     </div>
  2890.                                     <div class=\"col mb-2\">
  2891.                                         {{ form_widget(form.description_detail, { attr : { rows : \"4\"} }) }}
  2892.                                         {{ form_errors(form.description_detail) }}
  2893.                                     </div>
  2894.                                 </div>
  2895.                                 <div class=\"row\">
  2896.                                     <div class=\"col-3\">
  2897.                                         <div class=\"d-inline-block\">
  2898.                                             <span>おすすめポイント</span>
  2899.                                         </div>
  2900.                                     </div>
  2901.                                     <div class=\"col mb-2\">
  2902.                                         {{ form_widget(form.recommend_point, { attr : { rows : \"3\"} }) }}
  2903.                                         {{ form_errors(form.recommend_point) }}
  2904.                                     </div>
  2905.                                 </div>
  2906.                                 <div class=\"row\">
  2907.                                     <div class=\"col-3\">
  2908.                                         <div class=\"d-inline-block\">
  2909.                                             <span>販売情報</span>
  2910.                                         </div>
  2911.                                     </div>
  2912.                                     <div class=\"col mb-2\">
  2913.                                         {{ form_widget(form.sales_infomation, { attr : { rows : \"3\"} }) }}
  2914.                                         {{ form_errors(form.sales_infomation) }}
  2915.                                     </div>
  2916.                                 </div>
  2917.                                 {% if has_class == false %}
  2918.                                     <div class=\"row\">
  2919.                                         <div class=\"col-3\">
  2920.                                             <div class=\"d-inline-block\">
  2921.                                                 <span>{{ 'admin.product.sale_limit'|trans }}</span>
  2922.                                             </div>
  2923.                                         </div>
  2924.                                         <div class=\"col mb-2\">
  2925.                                             <div>
  2926.                                                 {{ form_widget(form.class.sale_limit) }}
  2927.                                                 {{ form_errors(form.class.sale_limit) }}
  2928.                                             </div>
  2929.                                         </div>
  2930.                                     </div>
  2931.                                     <div class=\"row\">
  2932.                                         <div class=\"col-3\">
  2933.                                             <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  2934.                                                  title=\"{{ 'tooltip.product.delivery_duration'|trans }}\">
  2935.                                                 <span>{{ 'admin.product.delivery_duration'|trans }}</span>
  2936.                                                 <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  2937.                                             </div>
  2938.                                         </div>
  2939.                                         <div class=\"col mb-2\">
  2940.                                             <div>
  2941.                                                 {{ form_widget(form.class.delivery_duration) }}
  2942.                                                 {{ form_errors(form.class.delivery_duration) }}
  2943.                                             </div>
  2944.                                         </div>
  2945.                                     </div>
  2946.                                     {% if BaseInfo.option_product_delivery_fee %}
  2947.                                         <div class=\"row\">
  2948.                                             <div class=\"col-3\">
  2949.                                                 <div class=\"d-inline-block\">
  2950.                                                     <span>{{ 'admin.product.delivery_fee'|trans }}</span>
  2951.                                                 </div>
  2952.                                             </div>
  2953.                                             <div class=\"col mb-2\">
  2954.                                                 <div>
  2955.                                                     {{ form_widget(form.class.delivery_fee) }}
  2956.                                                     {{ form_errors(form.class.delivery_fee) }}
  2957.                                                 </div>
  2958.                                             </div>
  2959.                                         </div>
  2960.                                     {% endif %}
  2961.                                     {% if BaseInfo.option_product_tax_rule %}
  2962.                                         <div class=\"row\">
  2963.                                             <div class=\"col-3\">
  2964.                                                 <div class=\"d-inline-block\">
  2965.                                                     <span>{{ 'admin.product.tax_rate'|trans }}</span>
  2966.                                                 </div>
  2967.                                             </div>
  2968.                                             <div class=\"col mb-2\">
  2969.                                                 <div>
  2970.                                                     {{ form_widget(form.class.tax_rate) }}
  2971.                                                     {{ form_errors(form.class.tax_rate) }}
  2972.                                                 </div>
  2973.                                             </div>
  2974.                                         </div>
  2975.                                     {% endif %}
  2976.                                 {% endif %}
  2977.                                 {% if has_class == false %}
  2978.                                     {% for f in form.class|filter(f => f.vars.eccube_form_options.auto_render) %}
  2979.                                         {% if f.vars.eccube_form_options.form_theme %}
  2980.                                             {% form_theme f f.vars.eccube_form_options.form_theme %}
  2981.                                             {{ form_row(f) }}
  2982.                                         {% else %}
  2983.                                             <div class=\"row\">
  2984.                                                 <div class=\"col-3\">
  2985.                                                     <span>{{ f.vars.label|trans }}</span>
  2986.                                                 </div>
  2987.                                                 <div class=\"col mb-2\">
  2988.                                                     <div>
  2989.                                                         {{ form_widget(f) }}
  2990.                                                         {{ form_errors(f) }}
  2991.                                                     </div>
  2992.                                                 </div>
  2993.                                             </div>
  2994.                                         {% endif %}
  2995.                                     {% endfor %}
  2996.                                 {% endif %}
  2997.                                 {% if has_class == false %}
  2998.                                     <div class=\"row\">
  2999.                                         <div class=\"col-3\">
  3000.                                             <div class=\"d-inline-block\">
  3001.                                                 <span>メーカー</span>
  3002.                                             </div>
  3003.                                         </div>
  3004.                                         <div class=\"col mb-2\">
  3005.                                             <div>
  3006.                                                 {{ form_widget(form.Maker) }}
  3007.                                                 {{ form_errors(form.Maker) }}
  3008.                                             </div>
  3009.                                         </div>
  3010.                                     </div>
  3011.                                     <div class=\"row\">
  3012.                                         <div class=\"col-3\">
  3013.                                             <div class=\"d-inline-block\">
  3014.                                                 <span>メーカーURL</span>
  3015.                                             </div>
  3016.                                         </div>
  3017.                                         <div class=\"col mb-2\">
  3018.                                             <div>
  3019.                                                 {{ form_widget(form.makerurl) }}
  3020.                                                 {{ form_errors(form.makerurl) }}
  3021.                                             </div>
  3022.                                         </div>
  3023.                                     </div>
  3024.                                     <div class=\"row\">
  3025.                                         <div class=\"col-3\">
  3026.                                             <div class=\"d-inline-block\">
  3027.                                                 <span>メーカー価格(見積商品は最低価格)</span>
  3028.                                             </div>
  3029.                                         </div>
  3030.                                         <div class=\"col mb-2\">
  3031.                                             <div>
  3032.                                                 {{ form_widget(form.class.price01) }}
  3033.                                                 {{ form_errors(form.class.price01) }}
  3034.                                             </div>
  3035.                                         </div>
  3036.                                     </div>
  3037.                                 {% endif %}
  3038.                             </div>
  3039.                         </div>
  3040.                     </div>
  3041.                 </div>
  3042.             </div>
  3043.             <div class=\"c-contentsArea__secondaryCol\">
  3044.                 <div class=\"c-secondaryCol\">
  3045.                     {% if id is not null %}
  3046.                         <div class=\"card rounded border-0 mb-4\">
  3047.                             <div class=\"collapse show ec-cardCollapse\" id=\"preview\">
  3048.                                 <div class=\"card-body\">
  3049.                                     <div class=\"d-block text-center\">
  3050.                                         <a class=\"btn w-100 btn-ec-regular\"
  3051.                                            target=\"_blank\"
  3052.                                            href=\"{{ url('product_detail', {id:id}) }}\"
  3053.                                            title=\"{{ 'admin.product.preview'|trans }}\">{{ 'admin.product.preview'|trans }}</a>
  3054.                                     </div>
  3055.                                 </div>
  3056.                             </div>
  3057.                         </div>
  3058.                     {% endif %}
  3059.                     <div class=\"card rounded border-0 mb-4\">
  3060.                         <div class=\"card-header\">
  3061.                             <div class=\"row\">
  3062.                                 <div class=\"col-8\">
  3063.                                     <div class=\"d-inline-block\">
  3064.                                         <span class=\"card-title\">{{ 'admin.product.category__product_card_title'|trans }}</span>
  3065.                                     </div>
  3066.                                 </div>
  3067.                                 <div class=\"col-4 text-end\">
  3068.                                     <a data-bs-toggle=\"collapse\" href=\"#category\" aria-expanded=\"false\"
  3069.                                        aria-controls=\"category\">
  3070.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  3071.                                     </a>
  3072.                                 </div>
  3073.                             </div>
  3074.                         </div>
  3075.                         <div class=\"collapse show ec-cardCollapse\" id=\"category\">
  3076.                             <div class=\"card-body\">
  3077.                                 <div class=\"mb-3\">
  3078.                                     <div class=\"row\">
  3079.                                         <div class=\"col\">
  3080.                                             <div class=\"input-group\">
  3081.                                                 <div class=\"input-group-text\">
  3082.                                                     <span id=\"basic-addon1\">
  3083.                                                             <i class=\"fa fa-search\"></i>
  3084.                                                     </span>
  3085.                                                 </div>
  3086.                                                 <input id=\"search-category\" class=\"form-control\" type=\"search\"
  3087.                                                        placeholder=\"{{ 'admin.product.search_category'|trans }}\"
  3088.                                                        aria-label=\"Search\">
  3089.                                             </div>
  3090.                                         </div>
  3091.                                     </div>
  3092.                                 </div>
  3093.                                 {% macro tree(ChoicedIds, Category, form) %}
  3094.                                     {% import _self as selfMacro %}
  3095.                                     <li class=\"c-directoryTree--registerItem category-li\">
  3096.                                         <input type=\"checkbox\" id=\"admin_product_category_{{ Category.id }}\" name=\"admin_product[Category][]\" value=\"{{ Category.id }}\" {% if Category.id in ChoicedIds %}checked{% endif %}>
  3097.                                         <label for=\"admin_product_category_{{ Category.id }}\">{{ Category.name }}</label>
  3098.                                         <ul class=\"list-unstyled\">
  3099.                                             {% for child,ChildCategory in Category.children %}
  3100.                                                 {{ selfMacro.tree(ChoicedIds, ChildCategory, form) }}
  3101.                                             {% endfor %}
  3102.                                         </ul>
  3103.                                     </li>
  3104.                                 {% endmacro %}
  3105.                                 <div class=\"c-directoryTree--register rounded border mb-3 p-3\">
  3106.                                     {% import _self as renderMacro %}
  3107.                                     {% for TopCategory in TopCategories %}
  3108.                                         <ul class=\"list-unstyled\">
  3109.                                             {{ renderMacro.tree(ChoicedCategoryIds, TopCategory, form.Category) }}
  3110.                                         </ul>
  3111.                                     {% endfor %}
  3112.                                     {{ form_errors(form.Category) }}
  3113.                                 </div>
  3114.                                 <div class=\"d-block text-center\">
  3115.                                     <a class=\"btn w-100 btn-ec-regular\"
  3116.                                        data-action=\"confirm\"
  3117.                                        href=\"{{ path('admin_product_category') }}\"
  3118.                                        title=\"{{ 'admin.common.move_to_confirm_message'|trans({
  3119.                                            '%name%' : 'admin.product.category_management'|trans}) }}\">{{ 'admin.product.move_to_category'|trans }}</a>
  3120.                                 </div>
  3121.                             </div>
  3122.                         </div>
  3123.                     </div>
  3124.                     <div class=\"card rounded border-0 mb-4\">
  3125.                         <div class=\"card-header\">
  3126.                             <div class=\"row\">
  3127.                                 <div class=\"col-8\">
  3128.                                     <div class=\"d-inline-block\">
  3129.                                         <span class=\"card-title\">
  3130.                                             {{ 'admin.product.tag__product_card_title'|trans }}
  3131.                                         </span>
  3132.                                     </div>
  3133.                                 </div>
  3134.                                 <div class=\"col-4 text-end\">
  3135.                                     <a data-bs-toggle=\"collapse\" href=\"#tag\" aria-expanded=\"false\" aria-controls=\"tag\">
  3136.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  3137.                                     </a>
  3138.                                 </div>
  3139.                             </div>
  3140.                         </div>
  3141.                         <div class=\"collapse show ec-cardCollapse\" id=\"tag\">
  3142.                             <div class=\"card-body\">
  3143.                                 {% if(Tags|length > 0) %}
  3144.                                     {% for Tag in Tags %}
  3145.                                         <div class=\"d-inline-block mb-2 me-2\">
  3146.                                             <button class=\"btn btn-outline-primary\" type=\"button\">{{ Tag.name }}</button>
  3147.                                         </div>
  3148.                                     {% endfor %}
  3149.                                 {% endif %}
  3150.                                 <div class=\"d-block mb-3\" data-bs-toggle=\"collapse\" href=\"#allTags\" role=\"button\"
  3151.                                      aria-expanded=\"false\" aria-controls=\"allTags\">
  3152.                                     <a>
  3153.                                         <i class=\"fa fa-plus-square-o fw-bold me-1\"></i>
  3154.                                         <span class=\"fw-bold\">{{ 'admin.product.save_tag'|trans }}</span>
  3155.                                     </a>
  3156.                                 </div>
  3157.                                 <div class=\"collapse p-3 bg-ec-lightGray mb-3 ec-collapse show\" id=\"allTags\">
  3158.                                     <div class=\"d-none\">
  3159.                                         {{ form_widget(form.Tag) }}
  3160.                                     </div>
  3161.                                     {% if(TagsList|length > 0) %}
  3162.                                         {% for Tag in TagsList %}
  3163.                                             <div class=\"d-inline-block mb-2 me-2\">
  3164.                                                 <button class=\"btn btn-outline-secondary\" type=\"button\"
  3165.                                                         data-tag-id=\"{{ Tag.id }}\">{{ Tag.name }}</button>
  3166.                                             </div>
  3167.                                         {% endfor %}
  3168.                                     {% endif %}
  3169.                                     <div class=\"d-block mb-3\" data-bs-toggle=\"collapse\" href=\"#allTags\" role=\"button\"
  3170.                                          aria-expanded=\"false\" aria-controls=\"allTags\"></div>
  3171.                                 </div>
  3172.                                 <div class=\"d-block text-center\">
  3173.                                     <a href=\"{{ path('admin_product_tag') }}\"
  3174.                                        class=\"btn w-100 btn-ec-regular\"
  3175.                                        data-action=\"confirm\"
  3176.                                        title=\"{{ 'admin.common.move_to_confirm_message'|trans({
  3177.                                            '%name%' : 'admin.product.tag_management'|trans }) }}\">{{ 'admin.product.move_to_tag'|trans }}</a>
  3178.                                 </div>
  3179.                             </div>
  3180.                         </div>
  3181.                     </div>
  3182.                     <div class=\"card rounded border-0 mb-4\">
  3183.                         <div class=\"card-header\">
  3184.                             <div class=\"row\">
  3185.                                 <div class=\"col-8\">
  3186.                                     <span class=\"card-title\">{{ 'admin.product.create_date__card_title'|trans }}</span>
  3187.                                 </div>
  3188.                                 <div class=\"col-4 text-end\">
  3189.                                     <a data-bs-toggle=\"collapse\" href=\"#update\" aria-expanded=\"false\"
  3190.                                        aria-controls=\"update\">
  3191.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  3192.                                     </a>
  3193.                                 </div>
  3194.                             </div>
  3195.                         </div>
  3196.                         <div class=\"collapse show ec-cardCollapse\" id=\"update\">
  3197.                             <div class=\"card-body\">
  3198.                                 <div class=\"row mb-2\">
  3199.                                     <div class=\"col\">
  3200.                                         <i class=\"fa fa-flag me-1\"></i>
  3201.                                         <span>{{ 'admin.common.create_date'|trans }}</span>
  3202.                                     </div>
  3203.                                     <div class=\"col\">
  3204.                                         <span>:{{ Product.create_date|date_min }}</span>
  3205.                                     </div>
  3206.                                 </div>
  3207.                                 <div class=\"row mb-2\">
  3208.                                     <div class=\"col\">
  3209.                                         <i class=\"fa fa-refresh me-1\"></i>
  3210.                                         <span>{{ 'admin.common.update_date'|trans }}</span>
  3211.                                     </div>
  3212.                                     <div class=\"col\">
  3213.                                         <span>:{{ Product.update_date|date_min }}</span>
  3214.                                     </div>
  3215.                                 </div>
  3216.                                 <div class=\"row mb-2\">
  3217.                                     <div class=\"col\">
  3218.                                         <i class=\"fa fa-user me-1\"></i>
  3219.                                         <span>{{ 'admin.common.last_updater'|trans }}</span>
  3220.                                     </div>
  3221.                                     <div class=\"col\">
  3222.                                         <span>:{{ Product.Creator ? Product.Creator.name }}</span>
  3223.                                     </div>
  3224.                                 </div>
  3225.                             </div>
  3226.                         </div>
  3227.                     </div>
  3228.                     <div class=\"card rounded border-0 mb-4\">
  3229.                         <div class=\"card-header\">
  3230.                             <div class=\"row\">
  3231.                                 <div class=\"col-8\">
  3232.                                     <div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
  3233.                                          title=\"{{ 'tooltip.product.shop_memo'|trans }}\">
  3234.                                         <span class=\"card-title\">
  3235.                                             {{ 'admin.common.shop_memo'|trans }}
  3236.                                             <i class=\"fa fa-question-circle fa-lg ms-1\"></i>
  3237.                                         </span>
  3238.                                     </div>
  3239.                                 </div>
  3240.                                 <div class=\"col-4 text-end\">
  3241.                                     <a data-bs-toggle=\"collapse\" href=\"#shopMemo\" aria-expanded=\"false\"
  3242.                                        aria-controls=\"shopMemo\">
  3243.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  3244.                                     </a>
  3245.                                 </div>
  3246.                             </div>
  3247.                         </div>
  3248.                         <div class=\"collapse show ec-cardCollapse\" id=\"shopMemo\">
  3249.                             <div class=\"card-body\">
  3250.                                 {{ form_widget(form.note, { attr : { rows : \"8\"} }) }}
  3251.                                 {{ form_errors(form.note) }}
  3252.                             </div>
  3253.                         </div>
  3254.                     </div>
  3255.                 </div>
  3256.             </div>
  3257.         </div>
  3258.         </div>
  3259.             <div id=\"item_option\" class=\"row\" style=\"padding: 0 15px\">
  3260.                     <div class=\"card rounded border-0 mb-4\">
  3261.                         <div class=\"card-header\">
  3262.                             <div class=\"row\">
  3263.                                 <div class=\"col-8\">
  3264.                                     <div class=\"d-inline-block\">
  3265.                                         <span class=\"card-title\">商品価格設定</span>
  3266.                                     </div>
  3267.                                 </div>
  3268.                                 <div class=\"col-4 text-end\">
  3269.                                     <a data-bs-toggle=\"collapse\" href=\"#freeArea\" aria-expanded=\"false\"
  3270.                                        aria-controls=\"freeArea\">
  3271.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  3272.                                     </a>
  3273.                                 </div>
  3274.                             </div>
  3275.                         </div>
  3276.                         <div class=\"collapse show ec-cardCollapse\" id=\"freeArea\">
  3277.                             <div class=\"card-body\" style=\"overflow-y: scroll;max-height: 700px;\">
  3278. \t\t\t\t\t\t\t\t<table class=\"table table-bordered\" id=\"product_option1\">
  3279. \t\t\t\t\t\t\t\t  <thead>
  3280. \t\t\t\t\t\t\t\t\t<tr>
  3281. \t\t\t\t            \t\t\t<th>幅</th>
  3282. \t\t\t\t            \t\t\t<th>奥行き</th>
  3283. \t\t\t\t            \t\t\t<th>高さ</th>
  3284. \t\t\t\t            \t\t\t<th>カラー</th>
  3285. \t\t\t\t            \t\t\t<th>素材</th>
  3286. \t\t\t\t            \t\t\t<th>メーカー価格</th>
  3287. \t\t\t\t            \t\t\t<th>割引率</th>
  3288. \t\t\t\t            \t\t\t<th>価格</th>
  3289. \t\t\t\t            \t\t\t<th>基本工事費</th>
  3290. \t\t\t\t            \t\t\t<th>設定</th>
  3291. \t\t\t\t\t\t\t\t\t</tr>
  3292. \t\t\t\t\t\t\t\t  </thead>
  3293. \t\t\t\t\t\t\t\t  <tbody>
  3294. \t\t\t\t\t            {% set disable_pp = false %}
  3295.                                 {% for i in 0..1600 %}
  3296.                                 \t{% if pp and pp|length > i %}
  3297. \t\t\t\t\t\t\t\t\t<tr id=\"pp_list_{{ i }}\">
  3298. \t\t\t\t            \t\t\t<td>
  3299. \t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">{{ pp[i]['w'] }}</div>
  3300. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_w_{{ i }}\" placeholder=\"幅\" name=\"pp[{{ i }}][w]\" value=\"{{ pp[i]['w'] }}\">
  3301. \t\t\t\t\t\t\t\t\t\t</td>
  3302. \t\t\t\t            \t\t\t<td>
  3303. \t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">{{ pp[i]['d'] }}</div>
  3304. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_d_{{ i }}\" placeholder=\"奥行き\" name=\"pp[{{ i }}][d]\" value=\"{{ pp[i]['d'] }}\">
  3305. \t\t\t\t\t\t\t\t\t\t</td>
  3306. \t\t\t\t            \t\t\t<td>
  3307. \t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">{{ pp[i]['h'] }}</div>
  3308. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_h_{{ i }}\" placeholder=\"高さ\" name=\"pp[{{ i }}][h]\" value=\"{{ pp[i]['h'] }}\">
  3309. \t\t\t\t\t\t\t\t\t\t</td>
  3310. \t\t\t\t            \t\t\t<td>
  3311. \t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">{{ pp[i]['c'] }}</div>
  3312. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_c_{{ i }}\" placeholder=\"カラー\" name=\"pp[{{ i }}][c]\" value=\"{{ pp[i]['c'] }}\">
  3313. \t\t\t\t\t\t\t\t\t\t</td>
  3314. \t\t\t\t            \t\t\t<td>
  3315. \t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">{{ pp[i]['m'] }}</div>
  3316. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_m_{{ i }}\" placeholder=\"素材\" name=\"pp[{{ i }}][m]\" value=\"{{ pp[i]['m'] }}\">
  3317. \t\t\t\t\t\t\t\t\t\t</td>
  3318. \t\t\t\t            \t\t\t<td>
  3319. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_mp_{{ i }}\" placeholder=\"メーカー価格\" name=\"pp[{{ i }}][maker_price]\" value=\"{{ pp[i]['maker_price'] }}\">
  3320. \t\t\t\t\t\t\t\t\t\t</td>
  3321. \t\t\t\t            \t\t\t<td>
  3322. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_s_{{ i }}\" placeholder=\"割引率\" name=\"pp[{{ i }}][sale]\" value=\"{{ pp[i]['sale'] }}\">
  3323. \t\t\t\t\t\t\t\t\t\t</td>
  3324. \t\t\t\t            \t\t\t<td>
  3325. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_p_{{ i }}\" placeholder=\"価格\" name=\"pp[{{ i }}][price]\" value=\"{{ pp[i]['price'] }}\">
  3326. \t\t\t\t\t\t\t\t\t\t</td>
  3327. \t\t\t\t            \t\t\t<td>
  3328. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_ct_{{ i }}\" placeholder=\"基本工事費\" name=\"pp[{{ i }}][ct]\" value=\"{{ pp[i]['ct'] }}\">
  3329. \t\t\t\t\t\t\t\t\t\t</td>
  3330. \t\t\t\t            \t\t\t<td>
  3331. \t\t\t\t\t\t\t\t            <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#pp_list_{{ i }}').remove(); }\">削除</button>
  3332. \t\t\t\t\t\t\t\t\t\t</td>
  3333. \t\t\t\t\t\t\t\t\t</tr>
  3334.                         \t\t\t{% else %}
  3335. \t\t\t\t\t\t\t\t\t<tr id=\"pp_list_{{ i }}\" {% if disable_pp %}style=\"display:none;\"{% endif %}>
  3336. \t\t\t\t            \t\t\t<td>
  3337. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_w_{{ i }}\" placeholder=\"幅\" name=\"pp[{{ i }}][w]\" value=\"\">
  3338. \t\t\t\t\t\t\t\t\t\t</td>
  3339. \t\t\t\t            \t\t\t<td>
  3340. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_d_{{ i }}\" placeholder=\"奥行き\" name=\"pp[{{ i }}][d]\" value=\"\">
  3341. \t\t\t\t\t\t\t\t\t\t</td>
  3342. \t\t\t\t            \t\t\t<td>
  3343. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_h_{{ i }}\" placeholder=\"高さ\" name=\"pp[{{ i }}][h]\" value=\"\">
  3344. \t\t\t\t\t\t\t\t\t\t</td>
  3345. \t\t\t\t            \t\t\t<td>
  3346. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_c_{{ i }}\" placeholder=\"カラー\" name=\"pp[{{ i }}][c]\" value=\"\">
  3347. \t\t\t\t\t\t\t\t\t\t</td>
  3348. \t\t\t\t            \t\t\t<td>
  3349. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_m_{{ i }}\" placeholder=\"素材\" name=\"pp[{{ i }}][m]\" value=\"\">
  3350. \t\t\t\t\t\t\t\t\t\t</td>
  3351. \t\t\t\t            \t\t\t<td>
  3352. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_mp_{{ i }}\" placeholder=\"メーカー価格\" name=\"pp[{{ i }}][maker_price]\" value=\"\">
  3353. \t\t\t\t\t\t\t\t\t\t</td>
  3354. \t\t\t\t            \t\t\t<td>
  3355. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_s_{{ i }}\" placeholder=\"割引率\" name=\"pp[{{ i }}][sale]\" value=\"\">
  3356. \t\t\t\t\t\t\t\t\t\t</td>
  3357. \t\t\t\t            \t\t\t<td>
  3358. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_p_{{ i }}\" placeholder=\"価格\" name=\"pp[{{ i }}][price]\" value=\"\">
  3359. \t\t\t\t\t\t\t\t\t\t</td>
  3360. \t\t\t\t            \t\t\t<td>
  3361. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_ct_{{ i }}\" placeholder=\"基本工事費\" name=\"pp[{{ i }}][ct]\" value=\"\">
  3362. \t\t\t\t\t\t\t\t\t\t</td>
  3363. \t\t\t\t            \t\t\t<td>
  3364. \t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"pp_btn_{{ i }}\" class=\"btn btn-danger\" style=\"display:none;\" onclick=\"if(confirm('削除してよろしいですか?')){\$('#pp_list_{{ i }}').remove();}\">削除</button>
  3365. \t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-warning\" onclick=\"\$('#pp_list_{{ i + 1 }}').show();\$('#pp_btn_{{ i }}').show();\$(this).hide();\">追加</button>
  3366. \t\t\t\t\t\t\t\t\t\t</td>
  3367. \t\t\t\t\t\t\t\t\t</tr>
  3368. \t\t\t                        {% set disable_pp = true %}
  3369.                         \t\t\t{% endif %}
  3370.                       \t\t\t{% endfor %}
  3371. \t\t\t\t\t\t\t\t  </tbody>
  3372. \t\t\t\t\t\t\t\t</table>
  3373.                             </div>
  3374.                         </div>
  3375.                     </div>
  3376.                     <div class=\"card rounded border-0 mb-4\">
  3377.                         <div class=\"card-header\">
  3378.                             <div class=\"row\">
  3379.                                 <div class=\"col-8\">
  3380.                                     <div class=\"d-inline-block\">
  3381.                                         <span class=\"card-title\">施工オプション設定</span>
  3382.                                     </div>
  3383.                                 </div>
  3384.                                 <div class=\"col-4 text-end\">
  3385.                                     <a data-bs-toggle=\"collapse\" href=\"#optionArea\" aria-expanded=\"false\"
  3386.                                        aria-controls=\"optionArea\">
  3387.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  3388.                                     </a>
  3389.                                 </div>
  3390.                             </div>
  3391.                         </div>
  3392.                         <div class=\"collapse show ec-cardCollapse\" id=\"optionArea\">
  3393.                             <div class=\"card-body\" style=\"overflow-y: scroll;max-height: 700px;\">
  3394. \t\t\t\t\t\t\t\t<table class=\"table table-bordered\">
  3395. \t\t\t\t\t\t\t\t\t<tr>
  3396. \t\t\t\t            \t\t\t<th>オプション名</th>
  3397. \t\t\t\t            \t\t\t<th>依頼するテキスト</th>
  3398. \t\t\t\t            \t\t\t<th>依頼しないテキスト</th>
  3399. \t\t\t\t            \t\t\t<th>オプション価格</th>
  3400. \t\t\t\t            \t\t\t<th rowspan=\"2\">設定</th>
  3401. \t\t\t\t\t\t\t\t\t</tr>
  3402. \t\t\t\t\t\t\t\t\t<tr>
  3403. \t\t\t\t            \t\t\t<th colspan=\"4\">オプション説明</th>
  3404. \t\t\t\t\t\t\t\t\t</tr>
  3405. \t\t\t\t\t            {% set disable_op = false %}
  3406.                                 {% for i in 0..10 %}
  3407.                                 \t{% if op and op|length >= i+1 %}
  3408. \t\t\t\t\t\t\t\t\t<tr id=\"op_list1_{{ i }}\">
  3409. \t\t\t\t            \t\t\t<td>
  3410. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_name_{{ i }}\" placeholder=\"オプション名\" name=\"op[{{ i }}][name]\" value=\"{{ op[i]['name'] }}\">
  3411. \t\t\t\t\t\t\t\t\t\t</td>
  3412. \t\t\t\t            \t\t\t<td>
  3413. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_on_text{{ i }}\" placeholder=\"依頼するテキスト\" name=\"op[{{ i }}][on]\" value=\"{{ op[i]['on'] }}\">
  3414. \t\t\t\t\t\t\t\t\t\t</td>
  3415. \t\t\t\t            \t\t\t<td>
  3416. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_off_text_{{ i }}\" placeholder=\"依頼しないテキスト\" name=\"op[{{ i }}][off]\" value=\"{{ op[i]['off'] }}\">
  3417. \t\t\t\t\t\t\t\t\t\t</td>
  3418. \t\t\t\t            \t\t\t<td>
  3419. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_price_{{ i }}\" placeholder=\"オプション価格\" name=\"op[{{ i }}][price]\" value=\"{{ op[i]['price'] }}\">
  3420. \t\t\t\t\t\t\t\t\t\t</td>
  3421. \t\t\t\t            \t\t\t<td rowspan=\"2\">
  3422. \t\t\t\t\t\t\t\t            <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#op_list1_{{ i }}').remove(); \$('#op_list2_{{ i }}').remove(); }\">削除</button>
  3423. \t\t\t\t\t\t\t\t\t\t</td>
  3424. \t\t\t\t\t\t\t\t\t</tr>
  3425. \t\t\t\t\t\t\t\t\t<tr id=\"op_list2_{{ i }}\">
  3426. \t\t\t\t            \t\t\t<td colspan=\"4\">
  3427. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_comment_{{ i }}\" placeholder=\"オプション説明\" name=\"op[{{ i }}][comment]\" value=\"{{ op[i]['comment'] }}\">
  3428. \t\t\t\t\t\t\t\t\t\t</td>
  3429. \t\t\t\t\t\t\t\t\t</tr>
  3430.                         \t\t\t{% else %}
  3431. \t\t\t\t\t\t\t\t\t<tr id=\"op_list1_{{ i }}\" {% if disable_op %}style=\"display:none;\"{% endif %}>
  3432. \t\t\t\t            \t\t\t<td>
  3433. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_name_{{ i }}\" placeholder=\"オプション名\" name=\"op[{{ i }}][name]\" value=\"\">
  3434. \t\t\t\t\t\t\t\t\t\t</td>
  3435. \t\t\t\t            \t\t\t<td>
  3436. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_on_text{{ i }}\" placeholder=\"依頼するテキスト\" name=\"op[{{ i }}][on]\" value=\"\">
  3437. \t\t\t\t\t\t\t\t\t\t</td>
  3438. \t\t\t\t            \t\t\t<td>
  3439. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_off_text_{{ i }}\" placeholder=\"依頼しないテキスト\" name=\"op[{{ i }}][off]\" value=\"\">
  3440. \t\t\t\t\t\t\t\t\t\t</td>
  3441. \t\t\t\t            \t\t\t<td>
  3442. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_price_{{ i }}\" placeholder=\"オプション価格\" name=\"op[{{ i }}][price]\" value=\"\">
  3443. \t\t\t\t\t\t\t\t\t\t</td>
  3444. \t\t\t\t            \t\t\t<td rowspan=\"2\">
  3445. \t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"op_btn_{{ i }}\" class=\"btn btn-danger\" style=\"display:none;\" onclick=\"if(confirm('削除してよろしいですか?')){\$('#op_list1_{{ i }}').remove();\$('#op_list2_{{ i }}').remove();}\">削除</button>
  3446. \t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-warning\" onclick=\"\$('#op_list1_{{ i + 1 }}').show();\$('#op_list2_{{ i + 1 }}').show();\$('#op_btn_{{ i }}').show();\$(this).hide();\">追加</button>
  3447. \t\t\t\t\t\t\t\t\t\t</td>
  3448. \t\t\t\t\t\t\t\t\t</tr>
  3449. \t\t\t\t\t\t\t\t\t<tr id=\"op_list2_{{ i }}\" {% if disable_op %}style=\"display:none;\"{% endif %}>
  3450. \t\t\t\t            \t\t\t<td colspan=\"4\">
  3451. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_comment_{{ i }}\" placeholder=\"オプション説明\" name=\"op[{{ i }}][comment]\" value=\"\">
  3452. \t\t\t\t\t\t\t\t\t\t</td>
  3453. \t\t\t\t\t\t\t\t\t</tr>
  3454. \t\t\t                        {% set disable_op = true %}
  3455.                         \t\t\t{% endif %}
  3456.                       \t\t\t{% endfor %}
  3457. \t\t\t\t\t\t\t\t</table>
  3458.                             </div>
  3459.                         </div>
  3460.                     </div>
  3461.                     <div class=\"card rounded border-0 mb-4\">
  3462.                         <div class=\"card-header\">
  3463.                             <div class=\"row\">
  3464.                                 <div class=\"col-8\">
  3465.                                     <div class=\"d-inline-block\">
  3466.                                         <span class=\"card-title\">オプション商品設定</span>
  3467.                                     </div>
  3468.                                 </div>
  3469.                                 <div class=\"col-4 text-end\">
  3470.                                     <a data-bs-toggle=\"collapse\" href=\"#optionItemArea\" aria-expanded=\"false\"
  3471.                                        aria-controls=\"optionItemArea\">
  3472.                                         <i class=\"fa fa-angle-up fa-lg\"></i>
  3473.                                     </a>
  3474.                                 </div>
  3475.                             </div>
  3476.                         </div>
  3477.                         <div class=\"collapse show ec-cardCollapse\" id=\"optionItemArea\">
  3478.                             <div class=\"card-body\" style=\"overflow-y: scroll;max-height: 700px;\">
  3479. \t\t\t\t\t\t\t\t<table class=\"table table-bordered\">
  3480. \t\t\t\t\t\t\t\t\t<tr>
  3481. \t\t\t\t            \t\t\t<th rowspan=\"2\">商品画像</th>
  3482. \t\t\t\t            \t\t\t<th>商品名</th>
  3483. \t\t\t\t            \t\t\t<th>素材</th>
  3484. \t\t\t\t            \t\t\t<th>カラー</th>
  3485. \t\t\t\t            \t\t\t<th>価格</th>
  3486. \t\t\t\t            \t\t\t<th>工事費</th>
  3487. \t\t\t\t            \t\t\t<th rowspan=\"2\">設定</th>
  3488. \t\t\t\t\t\t\t\t\t</tr>
  3489. \t\t\t\t\t\t\t\t\t<tr>
  3490. \t\t\t\t            \t\t\t<th colspan=\"5\">説明</th>
  3491. \t\t\t\t\t\t\t\t\t</tr>
  3492. \t\t\t\t\t            {% set disable_oi = false %}
  3493.                                 {% for i in 0 .. 1000 %}
  3494.                                 \t{% if oi and oi|length > i  %}
  3495. \t\t\t\t\t\t\t\t\t<tr id=\"oi_list1_{{ i }}\">
  3496. \t\t\t\t            \t\t\t<td rowspan=\"2\">
  3497. \t\t\t\t\t\t\t\t\t\t\t<input type=\"file\" class=\"form-control\" id=\"oi_image_{{ i }}\" placeholder=\"商品画像\" name=\"oi[{{ i }}][image]\">
  3498. \t\t\t\t\t\t\t\t\t\t</td>
  3499. \t\t\t\t            \t\t\t<td>
  3500. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_name_{{ i }}\" placeholder=\"商品名\" name=\"oi[{{ i }}][name]\" value=\"{{ oi[i]['name'] }}\">
  3501. \t\t\t\t\t\t\t\t\t\t</td>
  3502. \t\t\t\t            \t\t\t<td>
  3503. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_m_{{ i }}\" placeholder=\"素材\" name=\"oi[{{ i }}][m]\" value=\"{{ oi[i]['m'] }}\">
  3504. \t\t\t\t\t\t\t\t\t\t</td>
  3505. \t\t\t\t            \t\t\t<td>
  3506. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_c_{{ i }}\" placeholder=\"カラー\" name=\"oi[{{ i }}][c]\" value=\"{{ oi[i]['c'] }}\">
  3507. \t\t\t\t\t\t\t\t\t\t</td>
  3508. \t\t\t\t            \t\t\t<td>
  3509. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_price1_{{ i }}\" placeholder=\"価格\" name=\"oi[{{ i }}][price1]\" value=\"{{ oi[i]['price1'] }}\">
  3510. \t\t\t\t\t\t\t\t\t\t</td>
  3511. \t\t\t\t            \t\t\t<td>
  3512. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_price2_{{ i }}\" placeholder=\"工事費\" name=\"oi[{{ i }}][price2]\" value=\"{{ oi[i]['price2'] }}\">
  3513. \t\t\t\t\t\t\t\t\t\t</td>
  3514. \t\t\t\t            \t\t\t<td rowspan=\"2\">
  3515. \t\t\t\t\t\t\t\t            <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#oi_list1_{{ i }}').remove(); \$('#oi_list2_{{ i }}').remove(); }\">削除</button>
  3516. \t\t\t\t\t\t\t\t\t\t</td>
  3517. \t\t\t\t\t\t\t\t\t</tr>
  3518. \t\t\t\t\t\t\t\t\t<tr id=\"oi_list2_{{ i }}\">
  3519. \t\t\t\t            \t\t\t<td colspan=\"5\">
  3520. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_comment_{{ i }}\" placeholder=\"説明\" name=\"oi[{{ i }}][comment]\" value=\"{{ oi[i]['comment'] }}\">
  3521. \t\t\t\t\t\t\t\t\t\t</td>
  3522. \t\t\t\t\t\t\t\t\t</tr>
  3523.                         \t\t\t{% else %}
  3524. \t\t\t\t\t\t\t\t\t<tr id=\"oi_list1_{{ i }}\" {% if disable_oi %}style=\"display:none;\"{% endif %}>
  3525. \t\t\t\t            \t\t\t<td rowspan=\"2\">
  3526. \t\t\t\t\t\t\t\t\t\t\t<input type=\"file\" class=\"form-control\" id=\"oi_image_{{ i }}\" placeholder=\"商品画像\" name=\"oi[{{ i }}][image]\">
  3527. \t\t\t\t\t\t\t\t\t\t</td>
  3528. \t\t\t\t            \t\t\t<td>
  3529. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_name_{{ i }}\" placeholder=\"商品名\" name=\"oi[{{ i }}][name]\" value=\"\">
  3530. \t\t\t\t\t\t\t\t\t\t</td>
  3531. \t\t\t\t            \t\t\t<td>
  3532. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_m_{{ i }}\" placeholder=\"素材\" name=\"oi[{{ i }}][m]\" value=\"\">
  3533. \t\t\t\t\t\t\t\t\t\t</td>
  3534. \t\t\t\t            \t\t\t<td>
  3535. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_c_{{ i }}\" placeholder=\"カラー\" name=\"oi[{{ i }}][c]\" value=\"\">
  3536. \t\t\t\t\t\t\t\t\t\t</td>
  3537. \t\t\t\t            \t\t\t<td>
  3538. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_price1_{{ i }}\" placeholder=\"価格\" name=\"oi[{{ i }}][price1]\" value=\"\">
  3539. \t\t\t\t\t\t\t\t\t\t</td>
  3540. \t\t\t\t            \t\t\t<td>
  3541. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_price2_{{ i }}\" placeholder=\"工事費\" name=\"oi[{{ i }}][price2]\" value=\"\">
  3542. \t\t\t\t\t\t\t\t\t\t</td>
  3543. \t\t\t\t            \t\t\t<td rowspan=\"2\">
  3544. \t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"oi_btn_{{ i }}\" class=\"btn btn-danger\" style=\"display:none;\" onclick=\"if(confirm('削除してよろしいですか?')){\$('#oi_list1_{{ i }}').remove();\$('#oi_list2_{{ i }}').remove();}\">削除</button>
  3545. \t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-warning\" onclick=\"\$('#oi_list1_{{ i + 1 }}').show();\$('#oi_list2_{{ i + 1 }}').show();\$('#oi_btn_{{ i }}').show();\$(this).hide();\">追加</button>
  3546. \t\t\t\t\t\t\t\t\t\t</td>
  3547. \t\t\t\t\t\t\t\t\t</tr>
  3548. \t\t\t\t\t\t\t\t\t<tr id=\"oi_list2_{{ i }}\" {% if disable_oi %}style=\"display:none;\"{% endif %}>
  3549. \t\t\t\t            \t\t\t<td colspan=\"5\">
  3550. \t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_comment_{{ i }}\" placeholder=\"説明\" name=\"oi[{{ i }}][comment]\" value=\"\">
  3551. \t\t\t\t\t\t\t\t\t\t</td>
  3552. \t\t\t\t\t\t\t\t\t</tr>
  3553. \t\t\t                        {% set disable_oi = true %}
  3554.                         \t\t\t{% endif %}
  3555.                       \t\t\t{% endfor %}
  3556. \t\t\t\t\t\t\t\t</table>
  3557.                             </div>
  3558.                         </div>
  3559.                     </div>
  3560.         </div>
  3561.         <div class=\"c-conversionArea\">
  3562.             <div class=\"c-conversionArea__container\">
  3563.                 <div class=\"row justify-content-between align-items-center\">
  3564.                     <div class=\"col-6\">
  3565.                         <div class=\"c-conversionArea__leftBlockItem\">
  3566.                             <a class=\"c-baseLink\" href=\"{{ path('admin_product_page', { page_no : app.session.get('eccube.admin.product.search.page_no')|default('1') } ) }}\"
  3567.                                data-action=\"confirm\" title=\"{{ 'admin.common.move_to_confirm_message'|trans({'%name%' : 'admin.product.product_list'|trans }) }}\">
  3568.                                 <i class=\"fa fa-backward\" aria-hidden=\"true\"></i><span>{{ 'admin.product.product_list'|trans }}</span>
  3569.                             </a>
  3570.                         </div>
  3571.                     </div>
  3572.                     <div class=\"col-6\">
  3573.                         <div id=\"ex-conversion-action\" class=\"row align-items-center justify-content-end\">
  3574.                             <div class=\"col-auto\">
  3575.                                 {{ form_widget(form.Status) }}
  3576.                                 {{ form_errors(form.Status) }}
  3577.                             </div>
  3578.                             <div class=\"col-auto\">
  3579.                                 <button class=\"btn btn-ec-conversion px-5\" type=\"submit\">{{ 'admin.common.registration'|trans }}</button>
  3580.                             </div>
  3581.                         </div>
  3582.                     </div>
  3583.                 </div>
  3584.             </div>
  3585.         </div>
  3586.     </form>
  3587. {% endblock %}
  3588. ""@admin/Product/product.twig""/home/xs538259/exterior-plus.jp/public_html/app/template/admin/Product/product.twig");
  3589.     }
  3590. }