<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @admin/Product/product.twig */
class __TwigTemplate_51e193f48c1c73bcc8869151bfd5ab9d9de23fb83cd36e08e1758449f97302a5 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'sub_title' => [$this, 'block_sub_title'],
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "@admin/default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/Product/product.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/Product/product.twig"));
// line 13
$context["menus"] = [0 => "product", 1 => "product_edit"];
// line 18
$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); })()), [0 => "@admin/Form/bootstrap_4_horizontal_layout.html.twig"], true);
// line 11
$this->parent = $this->loadTemplate("@admin/default_frame.twig", "@admin/Product/product.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 15
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_registration"), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 16
public function block_sub_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sub_title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sub_title"));
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_management"), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 20
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 21
echo " <script>
\$(document).on('drop dragover', function(e) {
e.preventDefault();
});
\$(function() {
";
// line 27
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)) {
// line 28
echo " if (\$(\"#";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 28, $this->source); })()), "class", [], "any", false, false, false, 28), "stock_unlimited", [], "any", false, false, false, 28), "vars", [], "any", false, false, false, 28), "id", [], "any", false, false, false, 28), "html", null, true);
echo "\").prop(\"checked\")) {
\$(\"#";
// line 29
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 29, $this->source); })()), "class", [], "any", false, false, false, 29), "stock", [], "any", false, false, false, 29), "vars", [], "any", false, false, false, 29), "id", [], "any", false, false, false, 29), "html", null, true);
echo "\").attr(\"disabled\", \"disabled\").val('');
} else {
\$(\"#";
// line 31
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 31, $this->source); })()), "class", [], "any", false, false, false, 31), "stock", [], "any", false, false, false, 31), "vars", [], "any", false, false, false, 31), "id", [], "any", false, false, false, 31), "html", null, true);
echo "\").removeAttr(\"disabled\");
}
\$(\"#";
// line 33
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 33, $this->source); })()), "class", [], "any", false, false, false, 33), "stock_unlimited", [], "any", false, false, false, 33), "vars", [], "any", false, false, false, 33), "id", [], "any", false, false, false, 33), "html", null, true);
echo "\").on(\"click change\", function() {
if (\$(this).prop(\"checked\")) {
\$(\"#";
// line 35
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 35, $this->source); })()), "class", [], "any", false, false, false, 35), "stock", [], "any", false, false, false, 35), "vars", [], "any", false, false, false, 35), "id", [], "any", false, false, false, 35), "html", null, true);
echo "\").attr(\"disabled\", \"disabled\").val('');
} else {
\$(\"#";
// line 37
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 37, $this->source); })()), "class", [], "any", false, false, false, 37), "stock", [], "any", false, false, false, 37), "vars", [], "any", false, false, false, 37), "id", [], "any", false, false, false, 37), "html", null, true);
echo "\").removeAttr(\"disabled\");
}
});
";
}
// line 41
echo "
// ファイルアップロード
// see https://pqina.nl/filepond/
var inputFileElement = document.querySelector('input[type=file]');
";
// line 45
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", false, false, false, 45) == "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", false, false, false, 45) == "en"))) {
// line 46
echo " FilePond.setOptions(FilePondLocale_";
echo twig_escape_filter($this->env, 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.', 46, $this->source); })()), "locale", [], "any", false, false, false, 46), "html", null, true);
echo ");
";
}
// line 48
echo " FilePond.setOptions({
server: {
process: {
url: '";
// line 51
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_image_process");
echo "',
headers: {
'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content'),
'X-Requested-With': 'XMLHttpRequest'
}
},
load: {
url: '";
// line 58
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_image_load");
echo "?source=',
headers: {
'X-Requested-With': 'XMLHttpRequest'
}
},
revert: {
url: '";
// line 64
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_image_revert");
echo "',
headers: {
'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content'),
'X-Requested-With': 'XMLHttpRequest'
}
}
}
});
var pond = FilePond.create(inputFileElement, {
allowFileTypeValidation: true,
acceptedFileTypes: [
'image/gif',
'image/png',
'image/jpeg'
],
allowFileSizeValidation: true,
maxFileSize: 10000000,
maxFiles: 10,
allowBrowse: true,
allowDrop: true,
allowReorder: true,
labelIdle: '<i class=\"fa fa-cloud-upload fa-3x text-ec-lightGray mx-3 align-middle\" aria-hidden=\"true\" style=\"font-size: 40px\"></i>";
// line 85
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.drag_and_drop_image_description"), "html", null, true);
echo "<span class=\"filepond--label-action\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.file_select"), "html", null, true);
echo "</span>',
styleItemPanelAspectRatio: 0.5625,
// 保存されている画像のロード
files: [
";
// line 89
$context['_parent'] = $context;
$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", false, false, false, 89));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 90
echo " {
source: '";
// line 91
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "vars", [], "any", false, false, false, 91), "value", [], "any", false, false, false, 91), "html", null, true);
echo "',
options: {
type: 'local'
}
},
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 97
echo " // 追加してすぐの画像のロード. バリデーションエラーの場合など.
";
// line 98
$context['_parent'] = $context;
$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", false, false, false, 98));
foreach ($context['_seq'] as $context["_key"] => $context["add_image"]) {
// line 99
echo " {
source: '";
// line 100
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["add_image"], "vars", [], "any", false, false, false, 100), "value", [], "any", false, false, false, 100), "html", null, true);
echo "',
options: {
type: 'local'
}
},
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['add_image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 106
echo " ]
});
// 画像が追加されたら add_images にファイル名を追加する
var proto_add = '";
// line 109
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 109, $this->source); })()), "add_images", [], "any", false, false, false, 109), "vars", [], "any", false, false, false, 109), "prototype", [], "any", false, false, false, 109), 'widget');
echo "';
pond.on('processfile', function(error, file) {
if (error) {
console.log(error);
} else {
\$('#upload-zone').append(
\$(proto_add.replace(/__name__/g, file.id))
.val(file.serverId)
.addClass('add_images')
);
}
});
// 画像が削除されたら delete_images にファイル名を追加する
var proto_del = '";
// line 122
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 122, $this->source); })()), "delete_images", [], "any", false, false, false, 122), "vars", [], "any", false, false, false, 122), "prototype", [], "any", false, false, false, 122), 'widget');
echo "';
pond.on('removefile', function(error, file) {
if (error) {
console.log(error);
} else {
// file.serverId にはアップロードしたファイル名が格納される.
if (file.serverId) {
\$('#upload-zone').append(
\$(proto_del.replace(/__name__/g, file.id))
.val(file.serverId)
.addClass('del_images')
);
}
// 追加してすぐ削除した画像があれば削除する
\$('#upload-zone').find('#admin_product_add_images_' + file.id).remove(); // 追加してすぐ削除した画像
\$('#upload-zone').find('.add_images[value=\"' + file.filename + '\"]').remove(); // 追加後, バリデーションエラーが発生した後に削除した画像
}
});
pond.on('initfile', function() {
\$('#product_image_error').hide();
});
pond.on('error', function(error, file) {
var message = '";
// line 144
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.upload_error"), "html", null, true);
echo "';
if (error.main !== undefined) {
message = `\${error.main}: \${error.sub}`;
}
\$('#product_image_error')
.show()
.find('.form-error-message').text(message);
// エラーメッセージが表示されてからプレビューエリアのエラーメッセージを非表示にする
setTimeout(function() {
\$('.filepond--file-status').hide();
}, 300);
});
// バリデーションエラーが出た場合に画像を保持するための hidden を追加しておく
var proto_image = '";
// line 159
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 159, $this->source); })()), "images", [], "any", false, false, false, 159), "vars", [], "any", false, false, false, 159), "prototype", [], "any", false, false, false, 159), 'widget');
echo "';
";
// line 160
$context['_parent'] = $context;
$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", false, false, false, 160));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 161
echo " \$('#upload-zone').append(
\$(proto_image.replace(/__name__/g, '";
// line 162
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 162), "html", null, true);
echo "'))
.val('";
// line 163
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "vars", [], "any", false, false, false, 163), "value", [], "any", false, false, false, 163), "html", null, true);
echo "')
.addClass('images')
);
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 167
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 167));
foreach ($context['_seq'] as $context["_key"] => $context["add_image"]) {
// line 168
echo " \$('#upload-zone').append(
\$('";
// line 169
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["add_image"], 'widget');
echo "')
.val('";
// line 170
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["add_image"], "vars", [], "any", false, false, false, 170), "value", [], "any", false, false, false, 170), "html", null, true);
echo "')
.addClass('add_images')
);
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['add_image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 174
echo " ";
$context['_parent'] = $context;
$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", false, false, false, 174));
foreach ($context['_seq'] as $context["_key"] => $context["delete_image"]) {
// line 175
echo " \$('#upload-zone').append(
\$('";
// line 176
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["delete_image"], 'widget');
echo "').addClass('del_images')
);
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['delete_image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 179
echo "
// タグ管理
var mainTags = \$('#allTags');
var adminProductTag = \$('#admin_product_Tag');
\$('input', adminProductTag).each(function() {
if (\$(this).is(':checked')) {
\$('button[data-tag-id=\"' + \$(this).val() + '\"]').removeClass('btn-outline-secondary').addClass('btn-outline-primary');
}
});
mainTags.on('click', 'button.btn', function() {
var btnTag = \$(this);
var tagId = btnTag.data('tag-id');
if (btnTag.hasClass('btn-outline-primary')) {
btnTag.removeClass('btn-outline-primary').addClass('btn-outline-secondary');
\$('input[value=\"' + tagId + '\"]', mainTags).prop('checked', false);
} else {
btnTag.removeClass('btn-outline-secondary').addClass('btn-outline-primary');
\$('input[value=\"' + tagId + '\"]', mainTags).prop('checked', true);
}
});
var confirmFormChange = function(form, target, modal) {
var returnLink = form.find('input[type=\"hidden\"][name*=\"return_link\"]'),
saveBtn = modal.find('a[data-action=\"save\"]'),
cancelBtn = modal.find('a[data-action=\"cancel\"]');
modal.on('hidden.bs.modal', function() {
returnLink.val('');
});
saveBtn.on('click', function() {
returnLink.val(\$(this).data('return-link'));
\$(this).addClass('disabled');
form.submit();
});
target.on('click', function() {
modal.find('.modal-body .screen-name').text(\$(this).attr('title'));
modal.modal('show');
saveBtn.data('return-link', \$(this).attr('href'));
cancelBtn.attr('href', \$(this).attr('href'));
return false;
});
};
confirmFormChange(\$('#form1'), \$('a[data-action=\"confirm\"]'), \$('#confirmFormChangeModal'))
});
// searchWordの実行
\$('#search-category').on('input', function () {
searchWord(\$(this).val(), \$('.category-li'));
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 230
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 231
echo " <!-- 移動確認モーダル-->
<div class=\"modal fade\" id=\"confirmFormChangeModal\" tabindex=\"-1\" role=\"dialog\"
aria-labelledby=\"confirmFormChangeModal\" aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\">";
// line 237
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_title"), "html", null, true);
echo "</h5>
<button class=\"btn-close\" type=\"button\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
</button>
</div>
<div class=\"modal-body\">
<p class=\"screen-name\"></p>
</div>
<div class=\"modal-footer\">
<a class=\"btn btn-ec-conversion\" data-action=\"save\" href=\"javascript:void(0)\">
";
// line 247
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_save_and_move"), "html", null, true);
echo "
</a>
<a class=\"btn btn-ec-sub\" data-action=\"cancel\" href=\"javascript:void(0)\">
";
// line 250
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_move_only"), "html", null, true);
echo "
</a>
</div>
</div>
</div>
</div>
<form role=\"form\" name=\"form1\" id=\"form1\" method=\"post\" action=\"\" novalidate enctype=\"multipart/form-data\">
";
// line 257
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", false, false, false, 257), 'widget');
echo "
";
// line 258
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", false, false, false, 258), 'widget');
echo "
<div class=\"row\">
<div class=\"c-contentsArea__cols\" style=\"padding-bottom:0px\">
<div class=\"c-contentsArea__primaryCol\">
<div class=\"c-primaryCol\">
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\">
<span class=\"card-title\">
";
// line 269
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product__card_title"), "html", null, true);
echo "
</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#basicConfig\" aria-expanded=\"false\"
aria-controls=\"basicConfig\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"basicConfig\">
<div class=\"card-body\">
";
// line 283
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", false, false, false, 283)) {
// line 284
echo " <div class=\"row\">
<div class=\"col-3\">
<div>
<span>";
// line 287
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_id"), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"col\">
<p>";
// line 291
echo twig_escape_filter($this->env, 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.', 291, $this->source); })()), "id", [], "any", false, false, false, 291), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 295
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 298
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.name"), "html", null, true);
echo "</span>
<span class=\"badge bg-primary ms-1\">
";
// line 300
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html", null, true);
echo "
</span>
</div>
</div>
<div class=\"col mb-2\">
";
// line 305
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", false, false, false, 305), 'widget');
echo "
";
// line 306
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", false, false, false, 306), 'errors');
echo "
</div>
</div>
";
// line 309
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)) {
// line 310
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 313
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_code"), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 318
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 318, $this->source); })()), "class", [], "any", false, false, false, 318), "code", [], "any", false, false, false, 318), 'widget');
echo "
";
// line 319
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 319, $this->source); })()), "class", [], "any", false, false, false, 319), "code", [], "any", false, false, false, 319), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div>
<span>";
// line 326
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.sale_type"), "html", null, true);
echo "</span>
<span class=\"badge bg-primary ms-1\">
";
// line 328
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html", null, true);
echo "
</span>
</div>
</div>
<div class=\"col mb-2\">
";
// line 333
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 333, $this->source); })()), "class", [], "any", false, false, false, 333), "sale_type", [], "any", false, false, false, 333), 'widget');
echo "
";
// line 334
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 334, $this->source); })()), "class", [], "any", false, false, false, 334), "sale_type", [], "any", false, false, false, 334), 'errors');
echo "
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>販売価格(見積商品は最低価格)</span>
<span class=\"badge bg-primary ms-1\">
";
// line 342
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html", null, true);
echo "
</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 348
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 348, $this->source); })()), "class", [], "any", false, false, false, 348), "price02", [], "any", false, false, false, 348), 'widget');
echo "
";
// line 349
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 349, $this->source); })()), "class", [], "any", false, false, false, 349), "price02", [], "any", false, false, false, 349), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 356
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.stock"), "html", null, true);
echo "</span>
<span class=\"badge bg-primary ms-1\">
";
// line 358
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.required"), "html", null, true);
echo "
</span>
</div>
</div>
<div class=\"col\">
<div>
";
// line 364
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 364, $this->source); })()), "class", [], "any", false, false, false, 364), "stock", [], "any", false, false, false, 364), 'widget');
echo "
";
// line 365
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 365, $this->source); })()), "class", [], "any", false, false, false, 365), "stock", [], "any", false, false, false, 365), 'errors');
echo "
";
// line 367
echo " ";
// line 368
echo " ";
// line 369
echo " ";
// line 370
echo " ";
// line 371
echo " ";
// line 372
echo " ";
// line 373
echo " ";
// line 374
echo " ";
// line 375
echo " ";
// line 376
echo " ";
// line 377
echo " ";
// line 378
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 378, $this->source); })()), "class", [], "any", false, false, false, 378), "stock_unlimited", [], "any", false, false, false, 378), 'widget');
echo "
";
// line 379
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 379, $this->source); })()), "class", [], "any", false, false, false, 379), "stock_unlimited", [], "any", false, false, false, 379), 'errors');
echo "
</div>
</div>
</div>
";
}
// line 384
echo "
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"";
// line 387
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.image"), "html", null, true);
echo "\">
<span>";
// line 388
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.image"), "html", null, true);
echo "</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
<br>";
// line 390
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.image_size"), "html", null, true);
echo "
</div>
</div>
<div class=\"col mb-2\">
<p id=\"message\"></p>
<div id=\"upload-zone\" class=\"rounded\">
";
// line 396
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", false, false, false, 396), 'widget', ["attr" => ["style" => "display:none;"]]);
echo "
";
// line 397
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", false, false, false, 397), 'errors');
echo "
</div><!-- /#upload-zone -->
<span class=\"invalid-feedback\" id=\"product_image_error\" style=\"display: none\">
<span class=\"d-block\">
<span class=\"form-error-icon badge bg-danger text-uppercase\">";
// line 401
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Error", [], "validators"), "html", null, true);
echo "</span>
<span class=\"form-error-message\"></span>
</span>
</span>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\">
<span>カラー</span>
</div>
</div>
<div class=\"col mb-2\">
\t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered\">
\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t \t\t\t<th>カラー名</th>
\t\t\t\t\t\t \t\t\t<th>カラーコード</th>
\t\t\t\t\t\t \t\t\t<th>サンプル画像</th>
\t\t\t\t\t\t \t\t\t<th>設定</th>
\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t ";
// line 421
$context["disable_color"] = false;
// line 422
echo "\t\t ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, 10));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 423
echo "\t\t \t";
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)))) {
// line 424
echo "\t\t\t\t\t\t\t\t\t\t\t<tr id=\"color_list_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\">
\t\t\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_name_";
// line 426
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"カラー名\" name=\"color[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][name]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 426), "name", [], "array", false, false, false, 426), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_code_";
// line 429
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"カラーコード\" name=\"color[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][code]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 429), "code", [], "array", false, false, false, 429), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_img_";
// line 432
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"サンプル画像\" name=\"color[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][img]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 432), "img", [], "array", false, false, false, 432), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#color_list_";
// line 435
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').remove(); }\">削除</button>
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t \t\t\t";
} else {
// line 439
echo "\t\t\t\t\t\t\t\t\t\t\t<tr id=\"color_list_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" ";
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); })())) {
echo "style=\"display:none;\"";
}
echo ">
\t\t\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_name_";
// line 441
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"カラー名\" name=\"color[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][name]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_code_";
// line 444
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"カラーコード\" name=\"color[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][code]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"color_img_";
// line 447
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"サンプル画像\" name=\"color[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][img]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"color_btn_";
// line 450
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" class=\"btn btn-danger\" style=\"display:none;\" onclick=\"if(confirm('削除してよろしいですか?')){\$('#color_list_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').remove();}\">削除</button>
\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-warning\" onclick=\"\$('#color_list_";
// line 451
echo twig_escape_filter($this->env, ($context["i"] + 1), "html", null, true);
echo "').show();\$('#color_btn_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').show();\$(this).hide();\">追加</button>
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t ";
// line 454
$context["disable_color"] = true;
// line 455
echo "\t\t \t\t\t";
}
// line 456
echo "\t\t \t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 457
echo "\t\t\t\t\t\t\t\t\t\t</table>
";
// line 459
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", false, false, false, 459), 'errors');
echo "
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>一覧スペック</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 470
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", false, false, false, 470), 'widget', ["attr" => ["rows" => "4"]]);
echo "
";
// line 471
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", false, false, false, 471), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>一覧説明</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 483
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", false, false, false, 483), 'widget', ["attr" => ["rows" => "4"]]);
echo "
";
// line 484
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", false, false, false, 484), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"";
// line 491
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.description_detail"), "html", null, true);
echo "\">
<span>";
// line 492
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.description_detail"), "html", null, true);
echo "</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</div>
</div>
<div class=\"col mb-2\">
";
// line 497
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", false, false, false, 497), 'widget', ["attr" => ["rows" => "4"]]);
echo "
";
// line 498
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", false, false, false, 498), 'errors');
echo "
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>おすすめポイント</span>
</div>
</div>
<div class=\"col mb-2\">
";
// line 510
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", false, false, false, 510), 'widget', ["attr" => ["rows" => "3"]]);
echo "
";
// line 511
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", false, false, false, 511), 'errors');
echo "
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>販売情報</span>
</div>
</div>
<div class=\"col mb-2\">
";
// line 522
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", false, false, false, 522), 'widget', ["attr" => ["rows" => "3"]]);
echo "
";
// line 523
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", false, false, false, 523), 'errors');
echo "
</div>
</div>
";
// line 527
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)) {
// line 528
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 531
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.sale_limit"), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 536
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 536, $this->source); })()), "class", [], "any", false, false, false, 536), "sale_limit", [], "any", false, false, false, 536), 'widget');
echo "
";
// line 537
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 537, $this->source); })()), "class", [], "any", false, false, false, 537), "sale_limit", [], "any", false, false, false, 537), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"";
// line 544
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.delivery_duration"), "html", null, true);
echo "\">
<span>";
// line 545
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.delivery_duration"), "html", null, true);
echo "</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 551
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 551, $this->source); })()), "class", [], "any", false, false, false, 551), "delivery_duration", [], "any", false, false, false, 551), 'widget');
echo "
";
// line 552
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 552, $this->source); })()), "class", [], "any", false, false, false, 552), "delivery_duration", [], "any", false, false, false, 552), 'errors');
echo "
</div>
</div>
</div>
";
// line 557
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", false, false, false, 557)) {
// line 558
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 561
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.delivery_fee"), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 566
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 566, $this->source); })()), "class", [], "any", false, false, false, 566), "delivery_fee", [], "any", false, false, false, 566), 'widget');
echo "
";
// line 567
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 567, $this->source); })()), "class", [], "any", false, false, false, 567), "delivery_fee", [], "any", false, false, false, 567), 'errors');
echo "
</div>
</div>
</div>
";
}
// line 572
echo " ";
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", false, false, false, 572)) {
// line 573
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 576
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.tax_rate"), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 581
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 581, $this->source); })()), "class", [], "any", false, false, false, 581), "tax_rate", [], "any", false, false, false, 581), 'widget');
echo "
";
// line 582
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 582, $this->source); })()), "class", [], "any", false, false, false, 582), "tax_rate", [], "any", false, false, false, 582), 'errors');
echo "
</div>
</div>
</div>
";
}
// line 587
echo " ";
}
// line 588
echo "
";
// line 589
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)) {
// line 590
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, 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.', 590, $this->source); })()), "class", [], "any", false, false, false, 590), function ($__f__) use ($context, $macros) { $context["f"] = $__f__; return twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, false, 590), "eccube_form_options", [], "any", false, false, false, 590), "auto_render", [], "any", false, false, false, 590); }));
foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
// line 591
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, false, 591), "eccube_form_options", [], "any", false, false, false, 591), "form_theme", [], "any", false, false, false, 591)) {
// line 592
echo " ";
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme($context["f"], [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, false, 592), "eccube_form_options", [], "any", false, false, false, 592), "form_theme", [], "any", false, false, false, 592)], true);
// line 593
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'row');
echo "
";
} else {
// line 595
echo " <div class=\"row\">
<div class=\"col-3\">
<span>";
// line 597
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, false, 597), "label", [], "any", false, false, false, 597)), "html", null, true);
echo "</span>
</div>
<div class=\"col mb-2\">
<div>
";
// line 601
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'widget');
echo "
";
// line 602
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'errors');
echo "
</div>
</div>
</div>
";
}
// line 607
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 608
echo " ";
}
// line 609
echo "
";
// line 610
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)) {
// line 611
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>メーカー</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 619
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", false, false, false, 619), 'widget');
echo "
";
// line 620
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", false, false, false, 620), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>メーカーURL</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 632
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", false, false, false, 632), 'widget');
echo "
";
// line 633
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", false, false, false, 633), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>メーカー価格(見積商品は最低価格)</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 645
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 645, $this->source); })()), "class", [], "any", false, false, false, 645), "price01", [], "any", false, false, false, 645), 'widget');
echo "
";
// line 646
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 646, $this->source); })()), "class", [], "any", false, false, false, 646), "price01", [], "any", false, false, false, 646), 'errors');
echo "
</div>
</div>
</div>
";
}
// line 651
echo "
</div>
</div>
</div>
</div>
</div>
<div class=\"c-contentsArea__secondaryCol\">
<div class=\"c-secondaryCol\">
";
// line 664
if ( !(null === (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 664, $this->source); })()))) {
// line 665
echo " <div class=\"card rounded border-0 mb-4\">
<div class=\"collapse show ec-cardCollapse\" id=\"preview\">
<div class=\"card-body\">
<div class=\"d-block text-center\">
<a class=\"btn w-100 btn-ec-regular\"
target=\"_blank\"
href=\"";
// line 671
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", null, true);
echo "\"
title=\"";
// line 672
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.preview"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.preview"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
";
}
// line 678
echo " <div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\">
<span class=\"card-title\">";
// line 683
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.category__product_card_title"), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#category\" aria-expanded=\"false\"
aria-controls=\"category\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"category\">
<div class=\"card-body\">
<div class=\"mb-3\">
<div class=\"row\">
<div class=\"col\">
<div class=\"input-group\">
<div class=\"input-group-text\">
<span id=\"basic-addon1\">
<i class=\"fa fa-search\"></i>
</span>
</div>
<input id=\"search-category\" class=\"form-control\" type=\"search\"
placeholder=\"";
// line 706
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.search_category"), "html", null, true);
echo "\"
aria-label=\"Search\">
</div>
</div>
</div>
</div>
";
// line 725
echo "
<div class=\"c-directoryTree--register rounded border mb-3 p-3\">
";
// line 727
$macros["renderMacro"] = $this;
// line 728
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["TopCategory"]) {
// line 729
echo " <ul class=\"list-unstyled\">
";
// line 730
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", false, false, false, 730)], 730, $context, $this->getSourceContext());
echo "
</ul>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['TopCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 733
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 733, $this->source); })()), "Category", [], "any", false, false, false, 733), 'errors');
echo "
</div>
<div class=\"d-block text-center\">
<a class=\"btn w-100 btn-ec-regular\"
data-action=\"confirm\"
href=\"";
// line 738
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_category");
echo "\"
title=\"";
// line 739
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", null, true);
// line 740
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.move_to_category"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\">
<span class=\"card-title\">
";
// line 751
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.tag__product_card_title"), "html", null, true);
echo "
</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#tag\" aria-expanded=\"false\" aria-controls=\"tag\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"tag\">
<div class=\"card-body\">
";
// line 765
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)) {
// line 766
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 767
echo " <div class=\"d-inline-block mb-2 me-2\">
<button class=\"btn btn-outline-primary\" type=\"button\">";
// line 768
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "name", [], "any", false, false, false, 768), "html", null, true);
echo "</button>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 771
echo " ";
}
// line 772
echo " <div class=\"d-block mb-3\" data-bs-toggle=\"collapse\" href=\"#allTags\" role=\"button\"
aria-expanded=\"false\" aria-controls=\"allTags\">
<a>
<i class=\"fa fa-plus-square-o fw-bold me-1\"></i>
<span class=\"fw-bold\">";
// line 776
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.save_tag"), "html", null, true);
echo "</span>
</a>
</div>
<div class=\"collapse p-3 bg-ec-lightGray mb-3 ec-collapse show\" id=\"allTags\">
<div class=\"d-none\">
";
// line 781
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", false, false, false, 781), 'widget');
echo "
</div>
";
// line 783
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)) {
// line 784
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 785
echo " <div class=\"d-inline-block mb-2 me-2\">
<button class=\"btn btn-outline-secondary\" type=\"button\"
data-tag-id=\"";
// line 787
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "id", [], "any", false, false, false, 787), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["Tag"], "name", [], "any", false, false, false, 787), "html", null, true);
echo "</button>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 790
echo " ";
}
// line 791
echo "
<div class=\"d-block mb-3\" data-bs-toggle=\"collapse\" href=\"#allTags\" role=\"button\"
aria-expanded=\"false\" aria-controls=\"allTags\"></div>
</div>
<div class=\"d-block text-center\">
<a href=\"";
// line 797
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_tag");
echo "\"
class=\"btn w-100 btn-ec-regular\"
data-action=\"confirm\"
title=\"";
// line 800
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", null, true);
// line 801
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.move_to_tag"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<span class=\"card-title\">";
// line 810
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.create_date__card_title"), "html", null, true);
echo "</span>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#update\" aria-expanded=\"false\"
aria-controls=\"update\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"update\">
<div class=\"card-body\">
<div class=\"row mb-2\">
<div class=\"col\">
<i class=\"fa fa-flag me-1\"></i>
<span>";
// line 825
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.create_date"), "html", null, true);
echo "</span>
</div>
<div class=\"col\">
<span>:";
// line 828
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\IntlExtension']->date_min($this->env, 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.', 828, $this->source); })()), "create_date", [], "any", false, false, false, 828)), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"row mb-2\">
<div class=\"col\">
<i class=\"fa fa-refresh me-1\"></i>
<span>";
// line 834
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.update_date"), "html", null, true);
echo "</span>
</div>
<div class=\"col\">
<span>:";
// line 837
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\IntlExtension']->date_min($this->env, 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.', 837, $this->source); })()), "update_date", [], "any", false, false, false, 837)), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"row mb-2\">
<div class=\"col\">
<i class=\"fa fa-user me-1\"></i>
<span>";
// line 843
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.last_updater"), "html", null, true);
echo "</span>
</div>
<div class=\"col\">
<span>:";
// line 846
((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", false, false, false, 846)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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", false, false, false, 846), "name", [], "any", false, false, false, 846), "html", null, true))) : (print ("")));
echo "</span>
</div>
</div>
</div>
</div>
</div>
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"";
// line 857
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.shop_memo"), "html", null, true);
echo "\">
<span class=\"card-title\">
";
// line 859
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.shop_memo"), "html", null, true);
echo "
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#shopMemo\" aria-expanded=\"false\"
aria-controls=\"shopMemo\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"shopMemo\">
<div class=\"card-body\">
";
// line 874
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", false, false, false, 874), 'widget', ["attr" => ["rows" => "8"]]);
echo "
";
// line 875
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", false, false, false, 875), 'errors');
echo "
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id=\"item_option\" class=\"row\" style=\"padding: 0 15px\">
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\">
<span class=\"card-title\">商品価格設定</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#freeArea\" aria-expanded=\"false\"
aria-controls=\"freeArea\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"freeArea\">
<div class=\"card-body\" style=\"overflow-y: scroll;max-height: 700px;\">
\t\t\t\t\t\t\t\t<table class=\"table table-bordered\" id=\"product_option1\">
\t\t\t\t\t\t\t\t <thead>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t \t\t\t<th>幅</th>
\t\t\t\t \t\t\t<th>奥行き</th>
\t\t\t\t \t\t\t<th>高さ</th>
\t\t\t\t \t\t\t<th>カラー</th>
\t\t\t\t \t\t\t<th>素材</th>
\t\t\t\t \t\t\t<th>メーカー価格</th>
\t\t\t\t \t\t\t<th>割引率</th>
\t\t\t\t \t\t\t<th>価格</th>
\t\t\t\t \t\t\t<th>基本工事費</th>
\t\t\t\t \t\t\t<th>設定</th>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t </thead>
\t\t\t\t\t\t\t\t <tbody>
\t\t\t\t\t ";
// line 920
$context["disable_pp"] = false;
// line 921
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, 1600));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 922
echo " \t";
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"]))) {
// line 923
echo "\t\t\t\t\t\t\t\t\t<tr id=\"pp_list_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\">
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">";
// line 925
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 925), "w", [], "array", false, false, false, 925), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_w_";
// line 926
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"幅\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][w]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 926), "w", [], "array", false, false, false, 926), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">";
// line 929
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 929), "d", [], "array", false, false, false, 929), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_d_";
// line 930
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"奥行き\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][d]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 930), "d", [], "array", false, false, false, 930), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">";
// line 933
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 933), "h", [], "array", false, false, false, 933), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_h_";
// line 934
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"高さ\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][h]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 934), "h", [], "array", false, false, false, 934), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">";
// line 937
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 937), "c", [], "array", false, false, false, 937), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_c_";
// line 938
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"カラー\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][c]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 938), "c", [], "array", false, false, false, 938), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">";
// line 941
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 941), "m", [], "array", false, false, false, 941), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_m_";
// line 942
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"素材\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][m]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 942), "m", [], "array", false, false, false, 942), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_mp_";
// line 945
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"メーカー価格\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][maker_price]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 945), "maker_price", [], "array", false, false, false, 945), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_s_";
// line 948
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"割引率\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][sale]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 948), "sale", [], "array", false, false, false, 948), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_p_";
// line 951
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"価格\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][price]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 951), "price", [], "array", false, false, false, 951), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_ct_";
// line 954
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"基本工事費\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][ct]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 954), "ct", [], "array", false, false, false, 954), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#pp_list_";
// line 957
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').remove(); }\">削除</button>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t";
} else {
// line 961
echo "\t\t\t\t\t\t\t\t\t<tr id=\"pp_list_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" ";
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); })())) {
echo "style=\"display:none;\"";
}
echo ">
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_w_";
// line 963
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"幅\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][w]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_d_";
// line 966
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"奥行き\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][d]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_h_";
// line 969
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"高さ\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][h]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_c_";
// line 972
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"カラー\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][c]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_m_";
// line 975
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"素材\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][m]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_mp_";
// line 978
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"メーカー価格\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][maker_price]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_s_";
// line 981
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"割引率\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][sale]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_p_";
// line 984
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"価格\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][price]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_ct_";
// line 987
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"基本工事費\" name=\"pp[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][ct]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"pp_btn_";
// line 990
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" class=\"btn btn-danger\" style=\"display:none;\" onclick=\"if(confirm('削除してよろしいですか?')){\$('#pp_list_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').remove();}\">削除</button>
\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-warning\" onclick=\"\$('#pp_list_";
// line 991
echo twig_escape_filter($this->env, ($context["i"] + 1), "html", null, true);
echo "').show();\$('#pp_btn_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').show();\$(this).hide();\">追加</button>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t ";
// line 994
$context["disable_pp"] = true;
// line 995
echo " \t\t\t";
}
// line 996
echo " \t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 997
echo "\t\t\t\t\t\t\t\t </tbody>
\t\t\t\t\t\t\t\t</table>
</div>
</div>
</div>
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\">
<span class=\"card-title\">施工オプション設定</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#optionArea\" aria-expanded=\"false\"
aria-controls=\"optionArea\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"optionArea\">
<div class=\"card-body\" style=\"overflow-y: scroll;max-height: 700px;\">
\t\t\t\t\t\t\t\t<table class=\"table table-bordered\">
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t \t\t\t<th>オプション名</th>
\t\t\t\t \t\t\t<th>依頼するテキスト</th>
\t\t\t\t \t\t\t<th>依頼しないテキスト</th>
\t\t\t\t \t\t\t<th>オプション価格</th>
\t\t\t\t \t\t\t<th rowspan=\"2\">設定</th>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t \t\t\t<th colspan=\"4\">オプション説明</th>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t ";
// line 1031
$context["disable_op"] = false;
// line 1032
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, 10));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 1033
echo " \t";
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)))) {
// line 1034
echo "\t\t\t\t\t\t\t\t\t<tr id=\"op_list1_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\">
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_name_";
// line 1036
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"オプション名\" name=\"op[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][name]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 1036), "name", [], "array", false, false, false, 1036), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_on_text";
// line 1039
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"依頼するテキスト\" name=\"op[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][on]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 1039), "on", [], "array", false, false, false, 1039), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_off_text_";
// line 1042
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"依頼しないテキスト\" name=\"op[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][off]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 1042), "off", [], "array", false, false, false, 1042), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_price_";
// line 1045
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"オプション価格\" name=\"op[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][price]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 1045), "price", [], "array", false, false, false, 1045), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td rowspan=\"2\">
\t\t\t\t\t\t\t\t <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#op_list1_";
// line 1048
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').remove(); \$('#op_list2_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').remove(); }\">削除</button>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr id=\"op_list2_";
// line 1051
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\">
\t\t\t\t \t\t\t<td colspan=\"4\">
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_comment_";
// line 1053
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"オプション説明\" name=\"op[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][comment]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 1053), "comment", [], "array", false, false, false, 1053), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t";
} else {
// line 1057
echo "\t\t\t\t\t\t\t\t\t<tr id=\"op_list1_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" ";
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); })())) {
echo "style=\"display:none;\"";
}
echo ">
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_name_";
// line 1059
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"オプション名\" name=\"op[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][name]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_on_text";
// line 1062
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"依頼するテキスト\" name=\"op[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][on]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"pp_off_text_";
// line 1065
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"依頼しないテキスト\" name=\"op[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][off]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_price_";
// line 1068
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"オプション価格\" name=\"op[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][price]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td rowspan=\"2\">
\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"op_btn_";
// line 1071
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" class=\"btn btn-danger\" style=\"display:none;\" onclick=\"if(confirm('削除してよろしいですか?')){\$('#op_list1_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').remove();\$('#op_list2_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').remove();}\">削除</button>
\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-warning\" onclick=\"\$('#op_list1_";
// line 1072
echo twig_escape_filter($this->env, ($context["i"] + 1), "html", null, true);
echo "').show();\$('#op_list2_";
echo twig_escape_filter($this->env, ($context["i"] + 1), "html", null, true);
echo "').show();\$('#op_btn_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').show();\$(this).hide();\">追加</button>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr id=\"op_list2_";
// line 1075
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" ";
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); })())) {
echo "style=\"display:none;\"";
}
echo ">
\t\t\t\t \t\t\t<td colspan=\"4\">
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"op_comment_";
// line 1077
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"オプション説明\" name=\"op[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][comment]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t ";
// line 1080
$context["disable_op"] = true;
// line 1081
echo " \t\t\t";
}
// line 1082
echo " \t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1083
echo "\t\t\t\t\t\t\t\t</table>
</div>
</div>
</div>
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\">
<span class=\"card-title\">オプション商品設定</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#optionItemArea\" aria-expanded=\"false\"
aria-controls=\"optionItemArea\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"optionItemArea\">
<div class=\"card-body\" style=\"overflow-y: scroll;max-height: 700px;\">
\t\t\t\t\t\t\t\t<table class=\"table table-bordered\">
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t \t\t\t<th rowspan=\"2\">商品画像</th>
\t\t\t\t \t\t\t<th>商品名</th>
\t\t\t\t \t\t\t<th>素材</th>
\t\t\t\t \t\t\t<th>カラー</th>
\t\t\t\t \t\t\t<th>価格</th>
\t\t\t\t \t\t\t<th>工事費</th>
\t\t\t\t \t\t\t<th rowspan=\"2\">設定</th>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t \t\t\t<th colspan=\"5\">説明</th>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t ";
// line 1120
$context["disable_oi"] = false;
// line 1121
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, 1000));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 1122
echo " \t";
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"]))) {
// line 1123
echo "\t\t\t\t\t\t\t\t\t<tr id=\"oi_list1_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\">
\t\t\t\t \t\t\t<td rowspan=\"2\">
\t\t\t\t\t\t\t\t\t\t\t<input type=\"file\" class=\"form-control\" id=\"oi_image_";
// line 1125
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"商品画像\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][image]\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_name_";
// line 1128
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"商品名\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][name]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 1128), "name", [], "array", false, false, false, 1128), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_m_";
// line 1131
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"素材\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][m]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 1131), "m", [], "array", false, false, false, 1131), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_c_";
// line 1134
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"カラー\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][c]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 1134), "c", [], "array", false, false, false, 1134), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_price1_";
// line 1137
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"価格\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][price1]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 1137), "price1", [], "array", false, false, false, 1137), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_price2_";
// line 1140
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"工事費\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][price2]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 1140), "price2", [], "array", false, false, false, 1140), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td rowspan=\"2\">
\t\t\t\t\t\t\t\t <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#oi_list1_";
// line 1143
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').remove(); \$('#oi_list2_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').remove(); }\">削除</button>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr id=\"oi_list2_";
// line 1146
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\">
\t\t\t\t \t\t\t<td colspan=\"5\">
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_comment_";
// line 1148
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"説明\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][comment]\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 1148), "comment", [], "array", false, false, false, 1148), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t";
} else {
// line 1152
echo "\t\t\t\t\t\t\t\t\t<tr id=\"oi_list1_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" ";
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); })())) {
echo "style=\"display:none;\"";
}
echo ">
\t\t\t\t \t\t\t<td rowspan=\"2\">
\t\t\t\t\t\t\t\t\t\t\t<input type=\"file\" class=\"form-control\" id=\"oi_image_";
// line 1154
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"商品画像\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][image]\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_name_";
// line 1157
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"商品名\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][name]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_m_";
// line 1160
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"素材\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][m]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_c_";
// line 1163
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"カラー\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][c]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_price1_";
// line 1166
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"価格\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][price1]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_price2_";
// line 1169
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"工事費\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][price2]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td rowspan=\"2\">
\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" id=\"oi_btn_";
// line 1172
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" class=\"btn btn-danger\" style=\"display:none;\" onclick=\"if(confirm('削除してよろしいですか?')){\$('#oi_list1_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').remove();\$('#oi_list2_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').remove();}\">削除</button>
\t\t\t\t\t\t\t\t\t\t\t<button type=\"button\" class=\"btn btn-warning\" onclick=\"\$('#oi_list1_";
// line 1173
echo twig_escape_filter($this->env, ($context["i"] + 1), "html", null, true);
echo "').show();\$('#oi_list2_";
echo twig_escape_filter($this->env, ($context["i"] + 1), "html", null, true);
echo "').show();\$('#oi_btn_";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "').show();\$(this).hide();\">追加</button>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr id=\"oi_list2_";
// line 1176
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" ";
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); })())) {
echo "style=\"display:none;\"";
}
echo ">
\t\t\t\t \t\t\t<td colspan=\"5\">
\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" class=\"form-control\" id=\"oi_comment_";
// line 1178
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "\" placeholder=\"説明\" name=\"oi[";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "][comment]\" value=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t ";
// line 1181
$context["disable_oi"] = true;
// line 1182
echo " \t\t\t";
}
// line 1183
echo " \t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 1184
echo "\t\t\t\t\t\t\t\t</table>
</div>
</div>
</div>
</div>
<div class=\"c-conversionArea\">
<div class=\"c-conversionArea__container\">
<div class=\"row justify-content-between align-items-center\">
<div class=\"col-6\">
<div class=\"c-conversionArea__leftBlockItem\">
<a class=\"c-baseLink\" href=\"";
// line 1195
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->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, true, false, 1195), "get", [0 => "eccube.admin.product.search.page_no"], "method", true, true, false, 1195)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, true, false, 1195), "get", [0 => "eccube.admin.product.search.page_no"], "method", false, false, false, 1195), "1")) : ("1"))]), "html", null, true);
echo "\"
data-action=\"confirm\" title=\"";
// line 1196
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", null, true);
echo "\">
<i class=\"fa fa-backward\" aria-hidden=\"true\"></i><span>";
// line 1197
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_list"), "html", null, true);
echo "</span>
</a>
</div>
</div>
<div class=\"col-6\">
<div id=\"ex-conversion-action\" class=\"row align-items-center justify-content-end\">
<div class=\"col-auto\">
";
// line 1204
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", false, false, false, 1204), 'widget');
echo "
";
// line 1205
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", false, false, false, 1205), 'errors');
echo "
</div>
<div class=\"col-auto\">
<button class=\"btn btn-ec-conversion px-5\" type=\"submit\">";
// line 1208
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.registration"), "html", null, true);
echo "</button>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 713
public function macro_tree($__ChoicedIds__ = null, $__Category__ = null, $__form__ = null, ...$__varargs__)
{
$macros = $this->macros;
$context = $this->env->mergeGlobals([
"ChoicedIds" => $__ChoicedIds__,
"Category" => $__Category__,
"form" => $__form__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tree"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tree"));
// line 714
echo " ";
$macros["selfMacro"] = $this;
// line 715
echo " <li class=\"c-directoryTree--registerItem category-li\">
<input type=\"checkbox\" id=\"admin_product_category_";
// line 716
echo twig_escape_filter($this->env, 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", false, false, false, 716), "html", null, true);
echo "\" name=\"admin_product[Category][]\" value=\"";
echo twig_escape_filter($this->env, 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", false, false, false, 716), "html", null, true);
echo "\" ";
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", false, false, false, 716), (isset($context["ChoicedIds"]) || array_key_exists("ChoicedIds", $context) ? $context["ChoicedIds"] : (function () { throw new RuntimeError('Variable "ChoicedIds" does not exist.', 716, $this->source); })()))) {
echo "checked";
}
echo ">
<label for=\"admin_product_category_";
// line 717
echo twig_escape_filter($this->env, 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.', 717, $this->source); })()), "id", [], "any", false, false, false, 717), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, 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.', 717, $this->source); })()), "name", [], "any", false, false, false, 717), "html", null, true);
echo "</label>
<ul class=\"list-unstyled\">
";
// line 719
$context['_parent'] = $context;
$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", false, false, false, 719));
foreach ($context['_seq'] as $context["child"] => $context["ChildCategory"]) {
// line 720
echo " ";
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());
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['child'], $context['ChildCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 722
echo " </ul>
</li>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
} finally {
ob_end_clean();
}
}
public function getTemplateName()
{
return "@admin/Product/product.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends '@admin/default_frame.twig' %}
{% set menus = ['product', 'product_edit'] %}
{% block title %}{{ 'admin.product.product_registration'|trans }}{% endblock %}
{% block sub_title %}{{ 'admin.product.product_management'|trans }}{% endblock %}
{% form_theme form '@admin/Form/bootstrap_4_horizontal_layout.html.twig' %}
{% block javascript %}
<script>
\$(document).on('drop dragover', function(e) {
e.preventDefault();
});
\$(function() {
{% if has_class == false %}
if (\$(\"#{{ form.class.stock_unlimited.vars.id }}\").prop(\"checked\")) {
\$(\"#{{ form.class.stock.vars.id }}\").attr(\"disabled\", \"disabled\").val('');
} else {
\$(\"#{{ form.class.stock.vars.id }}\").removeAttr(\"disabled\");
}
\$(\"#{{ form.class.stock_unlimited.vars.id }}\").on(\"click change\", function() {
if (\$(this).prop(\"checked\")) {
\$(\"#{{ form.class.stock.vars.id }}\").attr(\"disabled\", \"disabled\").val('');
} else {
\$(\"#{{ form.class.stock.vars.id }}\").removeAttr(\"disabled\");
}
});
{% endif %}
// ファイルアップロード
// see https://pqina.nl/filepond/
var inputFileElement = document.querySelector('input[type=file]');
{% if eccube_config.locale == 'ja' or eccube_config.locale == 'en' %}
FilePond.setOptions(FilePondLocale_{{ eccube_config.locale }});
{% endif %}
FilePond.setOptions({
server: {
process: {
url: '{{ path('admin_product_image_process') }}',
headers: {
'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content'),
'X-Requested-With': 'XMLHttpRequest'
}
},
load: {
url: '{{ path('admin_product_image_load') }}?source=',
headers: {
'X-Requested-With': 'XMLHttpRequest'
}
},
revert: {
url: '{{ path('admin_product_image_revert') }}',
headers: {
'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content'),
'X-Requested-With': 'XMLHttpRequest'
}
}
}
});
var pond = FilePond.create(inputFileElement, {
allowFileTypeValidation: true,
acceptedFileTypes: [
'image/gif',
'image/png',
'image/jpeg'
],
allowFileSizeValidation: true,
maxFileSize: 10000000,
maxFiles: 10,
allowBrowse: true,
allowDrop: true,
allowReorder: true,
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>',
styleItemPanelAspectRatio: 0.5625,
// 保存されている画像のロード
files: [
{% for image in form.images %}
{
source: '{{ image.vars.value }}',
options: {
type: 'local'
}
},
{% endfor %}
// 追加してすぐの画像のロード. バリデーションエラーの場合など.
{% for add_image in form.add_images %}
{
source: '{{ add_image.vars.value }}',
options: {
type: 'local'
}
},
{% endfor %}
]
});
// 画像が追加されたら add_images にファイル名を追加する
var proto_add = '{{ form_widget(form.add_images.vars.prototype) }}';
pond.on('processfile', function(error, file) {
if (error) {
console.log(error);
} else {
\$('#upload-zone').append(
\$(proto_add.replace(/__name__/g, file.id))
.val(file.serverId)
.addClass('add_images')
);
}
});
// 画像が削除されたら delete_images にファイル名を追加する
var proto_del = '{{ form_widget(form.delete_images.vars.prototype) }}';
pond.on('removefile', function(error, file) {
if (error) {
console.log(error);
} else {
// file.serverId にはアップロードしたファイル名が格納される.
if (file.serverId) {
\$('#upload-zone').append(
\$(proto_del.replace(/__name__/g, file.id))
.val(file.serverId)
.addClass('del_images')
);
}
// 追加してすぐ削除した画像があれば削除する
\$('#upload-zone').find('#admin_product_add_images_' + file.id).remove(); // 追加してすぐ削除した画像
\$('#upload-zone').find('.add_images[value=\"' + file.filename + '\"]').remove(); // 追加後, バリデーションエラーが発生した後に削除した画像
}
});
pond.on('initfile', function() {
\$('#product_image_error').hide();
});
pond.on('error', function(error, file) {
var message = '{{ 'admin.common.upload_error'|trans }}';
if (error.main !== undefined) {
message = `\${error.main}: \${error.sub}`;
}
\$('#product_image_error')
.show()
.find('.form-error-message').text(message);
// エラーメッセージが表示されてからプレビューエリアのエラーメッセージを非表示にする
setTimeout(function() {
\$('.filepond--file-status').hide();
}, 300);
});
// バリデーションエラーが出た場合に画像を保持するための hidden を追加しておく
var proto_image = '{{ form_widget(form.images.vars.prototype) }}';
{% for image in form.images %}
\$('#upload-zone').append(
\$(proto_image.replace(/__name__/g, '{{ loop.index0 }}'))
.val('{{ image.vars.value }}')
.addClass('images')
);
{% endfor %}
{% for add_image in form.add_images %}
\$('#upload-zone').append(
\$('{{ form_widget(add_image) }}')
.val('{{ add_image.vars.value }}')
.addClass('add_images')
);
{% endfor %}
{% for delete_image in form.delete_images %}
\$('#upload-zone').append(
\$('{{ form_widget(delete_image) }}').addClass('del_images')
);
{% endfor %}
// タグ管理
var mainTags = \$('#allTags');
var adminProductTag = \$('#admin_product_Tag');
\$('input', adminProductTag).each(function() {
if (\$(this).is(':checked')) {
\$('button[data-tag-id=\"' + \$(this).val() + '\"]').removeClass('btn-outline-secondary').addClass('btn-outline-primary');
}
});
mainTags.on('click', 'button.btn', function() {
var btnTag = \$(this);
var tagId = btnTag.data('tag-id');
if (btnTag.hasClass('btn-outline-primary')) {
btnTag.removeClass('btn-outline-primary').addClass('btn-outline-secondary');
\$('input[value=\"' + tagId + '\"]', mainTags).prop('checked', false);
} else {
btnTag.removeClass('btn-outline-secondary').addClass('btn-outline-primary');
\$('input[value=\"' + tagId + '\"]', mainTags).prop('checked', true);
}
});
var confirmFormChange = function(form, target, modal) {
var returnLink = form.find('input[type=\"hidden\"][name*=\"return_link\"]'),
saveBtn = modal.find('a[data-action=\"save\"]'),
cancelBtn = modal.find('a[data-action=\"cancel\"]');
modal.on('hidden.bs.modal', function() {
returnLink.val('');
});
saveBtn.on('click', function() {
returnLink.val(\$(this).data('return-link'));
\$(this).addClass('disabled');
form.submit();
});
target.on('click', function() {
modal.find('.modal-body .screen-name').text(\$(this).attr('title'));
modal.modal('show');
saveBtn.data('return-link', \$(this).attr('href'));
cancelBtn.attr('href', \$(this).attr('href'));
return false;
});
};
confirmFormChange(\$('#form1'), \$('a[data-action=\"confirm\"]'), \$('#confirmFormChangeModal'))
});
// searchWordの実行
\$('#search-category').on('input', function () {
searchWord(\$(this).val(), \$('.category-li'));
});
</script>
{% endblock javascript %}
{% block main %}
<!-- 移動確認モーダル-->
<div class=\"modal fade\" id=\"confirmFormChangeModal\" tabindex=\"-1\" role=\"dialog\"
aria-labelledby=\"confirmFormChangeModal\" aria-hidden=\"true\">
<div class=\"modal-dialog\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\">{{ 'admin.common.move_to_confirm_title'|trans }}</h5>
<button class=\"btn-close\" type=\"button\" data-bs-dismiss=\"modal\" aria-label=\"Close\">
</button>
</div>
<div class=\"modal-body\">
<p class=\"screen-name\"></p>
</div>
<div class=\"modal-footer\">
<a class=\"btn btn-ec-conversion\" data-action=\"save\" href=\"javascript:void(0)\">
{{ 'admin.common.move_to_confirm_save_and_move'|trans }}
</a>
<a class=\"btn btn-ec-sub\" data-action=\"cancel\" href=\"javascript:void(0)\">
{{ 'admin.common.move_to_confirm_move_only'|trans }}
</a>
</div>
</div>
</div>
</div>
<form role=\"form\" name=\"form1\" id=\"form1\" method=\"post\" action=\"\" novalidate enctype=\"multipart/form-data\">
{{ form_widget(form._token) }}
{{ form_widget(form.return_link) }}
<div class=\"row\">
<div class=\"c-contentsArea__cols\" style=\"padding-bottom:0px\">
<div class=\"c-contentsArea__primaryCol\">
<div class=\"c-primaryCol\">
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\">
<span class=\"card-title\">
{{ 'admin.product.product__card_title'|trans }}
</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#basicConfig\" aria-expanded=\"false\"
aria-controls=\"basicConfig\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"basicConfig\">
<div class=\"card-body\">
{% if Product.id %}
<div class=\"row\">
<div class=\"col-3\">
<div>
<span>{{ 'admin.product.product_id'|trans }}</span>
</div>
</div>
<div class=\"col\">
<p>{{ Product.id }}</p>
</div>
</div>
{% endif %}
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>{{ 'admin.product.name'|trans }}</span>
<span class=\"badge bg-primary ms-1\">
{{ 'admin.common.required'|trans }}
</span>
</div>
</div>
<div class=\"col mb-2\">
{{ form_widget(form.name) }}
{{ form_errors(form.name) }}
</div>
</div>
{% if has_class == false %}
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>{{ 'admin.product.product_code'|trans }}</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.class.code) }}
{{ form_errors(form.class.code) }}
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div>
<span>{{ 'admin.product.sale_type'|trans }}</span>
<span class=\"badge bg-primary ms-1\">
{{ 'admin.common.required'|trans }}
</span>
</div>
</div>
<div class=\"col mb-2\">
{{ form_widget(form.class.sale_type) }}
{{ form_errors(form.class.sale_type) }}
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>販売価格(見積商品は最低価格)</span>
<span class=\"badge bg-primary ms-1\">
{{ 'admin.common.required'|trans }}
</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.class.price02) }}
{{ form_errors(form.class.price02) }}
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>{{ 'admin.product.stock'|trans }}</span>
<span class=\"badge bg-primary ms-1\">
{{ 'admin.common.required'|trans }}
</span>
</div>
</div>
<div class=\"col\">
<div>
{{ form_widget(form.class.stock) }}
{{ form_errors(form.class.stock) }}
{# TODO: form_layoutの調整 #}
{#<div class=\"form-check mb-2\">#}
{#<input class=\"form-check-input\"#}
{#id=\"{{ form.class.stock_unlimited.vars.id }}\"#}
{#name=\"{{ form.class.stock_unlimited.vars.full_name }}\"#}
{#type=\"checkbox\"#}
{#value=\"{{ form.class.stock_unlimited.vars.value }}\">#}
{#<label class=\"form-check-label\"#}
{#for=\"{{ form.class.stock_unlimited.vars.id }}\">#}
{#{{ 'admin.product.product.stock_unlimited'|trans }}#}
{#</label>#}
{#</div>#}
{{ form_widget(form.class.stock_unlimited) }}
{{ form_errors(form.class.stock_unlimited) }}
</div>
</div>
</div>
{% endif %}
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"{{ 'tooltip.product.image'|trans }}\">
<span>{{ 'admin.product.image'|trans }}</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
<br>{{ 'admin.product.image_size'|trans }}
</div>
</div>
<div class=\"col mb-2\">
<p id=\"message\"></p>
<div id=\"upload-zone\" class=\"rounded\">
{{ form_widget(form.product_image, { attr : { style : 'display:none;' } }) }}
{{ form_errors(form.product_image) }}
</div><!-- /#upload-zone -->
<span class=\"invalid-feedback\" id=\"product_image_error\" style=\"display: none\">
<span class=\"d-block\">
<span class=\"form-error-icon badge bg-danger text-uppercase\">{{ 'Error'|trans({}, 'validators') }}</span>
<span class=\"form-error-message\"></span>
</span>
</span>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\">
<span>カラー</span>
</div>
</div>
<div class=\"col mb-2\">
\t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered\">
\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t \t\t\t<th>カラー名</th>
\t\t\t\t\t\t \t\t\t<th>カラーコード</th>
\t\t\t\t\t\t \t\t\t<th>サンプル画像</th>
\t\t\t\t\t\t \t\t\t<th>設定</th>
\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t {% set disable_color = false %}
\t\t {% for i in 0..10 %}
\t\t \t{% if color and color|length >= i+1 %}
\t\t\t\t\t\t\t\t\t\t\t<tr id=\"color_list_{{ i }}\">
\t\t\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t \t\t\t<td>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t \t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t<tr id=\"color_list_{{ i }}\" {% if disable_color %}style=\"display:none;\"{% endif %}>
\t\t\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t \t\t\t<td>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t {% set disable_color = true %}
\t\t \t\t\t{% endif %}
\t\t \t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t</table>
{{ form_errors(form.search_word) }}
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>一覧スペック</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.list_spec, { attr : { rows : \"4\"} }) }}
{{ form_errors(form.list_spec) }}
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>一覧説明</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.description_list, { attr : { rows : \"4\"} }) }}
{{ form_errors(form.description_list) }}
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"{{ 'tooltip.product.description_detail'|trans }}\">
<span>{{ 'admin.product.description_detail'|trans }}</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</div>
</div>
<div class=\"col mb-2\">
{{ form_widget(form.description_detail, { attr : { rows : \"4\"} }) }}
{{ form_errors(form.description_detail) }}
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>おすすめポイント</span>
</div>
</div>
<div class=\"col mb-2\">
{{ form_widget(form.recommend_point, { attr : { rows : \"3\"} }) }}
{{ form_errors(form.recommend_point) }}
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>販売情報</span>
</div>
</div>
<div class=\"col mb-2\">
{{ form_widget(form.sales_infomation, { attr : { rows : \"3\"} }) }}
{{ form_errors(form.sales_infomation) }}
</div>
</div>
{% if has_class == false %}
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>{{ 'admin.product.sale_limit'|trans }}</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.class.sale_limit) }}
{{ form_errors(form.class.sale_limit) }}
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"{{ 'tooltip.product.delivery_duration'|trans }}\">
<span>{{ 'admin.product.delivery_duration'|trans }}</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.class.delivery_duration) }}
{{ form_errors(form.class.delivery_duration) }}
</div>
</div>
</div>
{% if BaseInfo.option_product_delivery_fee %}
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>{{ 'admin.product.delivery_fee'|trans }}</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.class.delivery_fee) }}
{{ form_errors(form.class.delivery_fee) }}
</div>
</div>
</div>
{% endif %}
{% if BaseInfo.option_product_tax_rule %}
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>{{ 'admin.product.tax_rate'|trans }}</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.class.tax_rate) }}
{{ form_errors(form.class.tax_rate) }}
</div>
</div>
</div>
{% endif %}
{% endif %}
{% if has_class == false %}
{% for f in form.class|filter(f => f.vars.eccube_form_options.auto_render) %}
{% if f.vars.eccube_form_options.form_theme %}
{% form_theme f f.vars.eccube_form_options.form_theme %}
{{ form_row(f) }}
{% else %}
<div class=\"row\">
<div class=\"col-3\">
<span>{{ f.vars.label|trans }}</span>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(f) }}
{{ form_errors(f) }}
</div>
</div>
</div>
{% endif %}
{% endfor %}
{% endif %}
{% if has_class == false %}
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>メーカー</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.Maker) }}
{{ form_errors(form.Maker) }}
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>メーカーURL</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.makerurl) }}
{{ form_errors(form.makerurl) }}
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>メーカー価格(見積商品は最低価格)</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.class.price01) }}
{{ form_errors(form.class.price01) }}
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class=\"c-contentsArea__secondaryCol\">
<div class=\"c-secondaryCol\">
{% if id is not null %}
<div class=\"card rounded border-0 mb-4\">
<div class=\"collapse show ec-cardCollapse\" id=\"preview\">
<div class=\"card-body\">
<div class=\"d-block text-center\">
<a class=\"btn w-100 btn-ec-regular\"
target=\"_blank\"
href=\"{{ url('product_detail', {id:id}) }}\"
title=\"{{ 'admin.product.preview'|trans }}\">{{ 'admin.product.preview'|trans }}</a>
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\">
<span class=\"card-title\">{{ 'admin.product.category__product_card_title'|trans }}</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#category\" aria-expanded=\"false\"
aria-controls=\"category\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"category\">
<div class=\"card-body\">
<div class=\"mb-3\">
<div class=\"row\">
<div class=\"col\">
<div class=\"input-group\">
<div class=\"input-group-text\">
<span id=\"basic-addon1\">
<i class=\"fa fa-search\"></i>
</span>
</div>
<input id=\"search-category\" class=\"form-control\" type=\"search\"
placeholder=\"{{ 'admin.product.search_category'|trans }}\"
aria-label=\"Search\">
</div>
</div>
</div>
</div>
{% macro tree(ChoicedIds, Category, form) %}
{% import _self as selfMacro %}
<li class=\"c-directoryTree--registerItem category-li\">
<input type=\"checkbox\" id=\"admin_product_category_{{ Category.id }}\" name=\"admin_product[Category][]\" value=\"{{ Category.id }}\" {% if Category.id in ChoicedIds %}checked{% endif %}>
<label for=\"admin_product_category_{{ Category.id }}\">{{ Category.name }}</label>
<ul class=\"list-unstyled\">
{% for child,ChildCategory in Category.children %}
{{ selfMacro.tree(ChoicedIds, ChildCategory, form) }}
{% endfor %}
</ul>
</li>
{% endmacro %}
<div class=\"c-directoryTree--register rounded border mb-3 p-3\">
{% import _self as renderMacro %}
{% for TopCategory in TopCategories %}
<ul class=\"list-unstyled\">
{{ renderMacro.tree(ChoicedCategoryIds, TopCategory, form.Category) }}
</ul>
{% endfor %}
{{ form_errors(form.Category) }}
</div>
<div class=\"d-block text-center\">
<a class=\"btn w-100 btn-ec-regular\"
data-action=\"confirm\"
href=\"{{ path('admin_product_category') }}\"
title=\"{{ 'admin.common.move_to_confirm_message'|trans({
'%name%' : 'admin.product.category_management'|trans}) }}\">{{ 'admin.product.move_to_category'|trans }}</a>
</div>
</div>
</div>
</div>
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\">
<span class=\"card-title\">
{{ 'admin.product.tag__product_card_title'|trans }}
</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#tag\" aria-expanded=\"false\" aria-controls=\"tag\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"tag\">
<div class=\"card-body\">
{% if(Tags|length > 0) %}
{% for Tag in Tags %}
<div class=\"d-inline-block mb-2 me-2\">
<button class=\"btn btn-outline-primary\" type=\"button\">{{ Tag.name }}</button>
</div>
{% endfor %}
{% endif %}
<div class=\"d-block mb-3\" data-bs-toggle=\"collapse\" href=\"#allTags\" role=\"button\"
aria-expanded=\"false\" aria-controls=\"allTags\">
<a>
<i class=\"fa fa-plus-square-o fw-bold me-1\"></i>
<span class=\"fw-bold\">{{ 'admin.product.save_tag'|trans }}</span>
</a>
</div>
<div class=\"collapse p-3 bg-ec-lightGray mb-3 ec-collapse show\" id=\"allTags\">
<div class=\"d-none\">
{{ form_widget(form.Tag) }}
</div>
{% if(TagsList|length > 0) %}
{% for Tag in TagsList %}
<div class=\"d-inline-block mb-2 me-2\">
<button class=\"btn btn-outline-secondary\" type=\"button\"
data-tag-id=\"{{ Tag.id }}\">{{ Tag.name }}</button>
</div>
{% endfor %}
{% endif %}
<div class=\"d-block mb-3\" data-bs-toggle=\"collapse\" href=\"#allTags\" role=\"button\"
aria-expanded=\"false\" aria-controls=\"allTags\"></div>
</div>
<div class=\"d-block text-center\">
<a href=\"{{ path('admin_product_tag') }}\"
class=\"btn w-100 btn-ec-regular\"
data-action=\"confirm\"
title=\"{{ 'admin.common.move_to_confirm_message'|trans({
'%name%' : 'admin.product.tag_management'|trans }) }}\">{{ 'admin.product.move_to_tag'|trans }}</a>
</div>
</div>
</div>
</div>
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<span class=\"card-title\">{{ 'admin.product.create_date__card_title'|trans }}</span>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#update\" aria-expanded=\"false\"
aria-controls=\"update\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"update\">
<div class=\"card-body\">
<div class=\"row mb-2\">
<div class=\"col\">
<i class=\"fa fa-flag me-1\"></i>
<span>{{ 'admin.common.create_date'|trans }}</span>
</div>
<div class=\"col\">
<span>:{{ Product.create_date|date_min }}</span>
</div>
</div>
<div class=\"row mb-2\">
<div class=\"col\">
<i class=\"fa fa-refresh me-1\"></i>
<span>{{ 'admin.common.update_date'|trans }}</span>
</div>
<div class=\"col\">
<span>:{{ Product.update_date|date_min }}</span>
</div>
</div>
<div class=\"row mb-2\">
<div class=\"col\">
<i class=\"fa fa-user me-1\"></i>
<span>{{ 'admin.common.last_updater'|trans }}</span>
</div>
<div class=\"col\">
<span>:{{ Product.Creator ? Product.Creator.name }}</span>
</div>
</div>
</div>
</div>
</div>
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"{{ 'tooltip.product.shop_memo'|trans }}\">
<span class=\"card-title\">
{{ 'admin.common.shop_memo'|trans }}
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#shopMemo\" aria-expanded=\"false\"
aria-controls=\"shopMemo\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"shopMemo\">
<div class=\"card-body\">
{{ form_widget(form.note, { attr : { rows : \"8\"} }) }}
{{ form_errors(form.note) }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id=\"item_option\" class=\"row\" style=\"padding: 0 15px\">
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\">
<span class=\"card-title\">商品価格設定</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#freeArea\" aria-expanded=\"false\"
aria-controls=\"freeArea\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"freeArea\">
<div class=\"card-body\" style=\"overflow-y: scroll;max-height: 700px;\">
\t\t\t\t\t\t\t\t<table class=\"table table-bordered\" id=\"product_option1\">
\t\t\t\t\t\t\t\t <thead>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t \t\t\t<th>幅</th>
\t\t\t\t \t\t\t<th>奥行き</th>
\t\t\t\t \t\t\t<th>高さ</th>
\t\t\t\t \t\t\t<th>カラー</th>
\t\t\t\t \t\t\t<th>素材</th>
\t\t\t\t \t\t\t<th>メーカー価格</th>
\t\t\t\t \t\t\t<th>割引率</th>
\t\t\t\t \t\t\t<th>価格</th>
\t\t\t\t \t\t\t<th>基本工事費</th>
\t\t\t\t \t\t\t<th>設定</th>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t </thead>
\t\t\t\t\t\t\t\t <tbody>
\t\t\t\t\t {% set disable_pp = false %}
{% for i in 0..1600 %}
\t{% if pp and pp|length > i %}
\t\t\t\t\t\t\t\t\t<tr id=\"pp_list_{{ i }}\">
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">{{ pp[i]['w'] }}</div>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">{{ pp[i]['d'] }}</div>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">{{ pp[i]['h'] }}</div>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">{{ pp[i]['c'] }}</div>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<div style=\"display:none\">{{ pp[i]['m'] }}</div>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\t\t\t\t\t\t\t\t <button type=\"button\" class=\"btn btn-danger\" onclick=\"if(confirm('削除してよろしいですか?')){ \$('#pp_list_{{ i }}').remove(); }\">削除</button>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t<tr id=\"pp_list_{{ i }}\" {% if disable_pp %}style=\"display:none;\"{% endif %}>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t {% set disable_pp = true %}
\t\t\t{% endif %}
\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t </tbody>
\t\t\t\t\t\t\t\t</table>
</div>
</div>
</div>
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\">
<span class=\"card-title\">施工オプション設定</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#optionArea\" aria-expanded=\"false\"
aria-controls=\"optionArea\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"optionArea\">
<div class=\"card-body\" style=\"overflow-y: scroll;max-height: 700px;\">
\t\t\t\t\t\t\t\t<table class=\"table table-bordered\">
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t \t\t\t<th>オプション名</th>
\t\t\t\t \t\t\t<th>依頼するテキスト</th>
\t\t\t\t \t\t\t<th>依頼しないテキスト</th>
\t\t\t\t \t\t\t<th>オプション価格</th>
\t\t\t\t \t\t\t<th rowspan=\"2\">設定</th>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t \t\t\t<th colspan=\"4\">オプション説明</th>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t {% set disable_op = false %}
{% for i in 0..10 %}
\t{% if op and op|length >= i+1 %}
\t\t\t\t\t\t\t\t\t<tr id=\"op_list1_{{ i }}\">
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td rowspan=\"2\">
\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>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr id=\"op_list2_{{ i }}\">
\t\t\t\t \t\t\t<td colspan=\"4\">
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t<tr id=\"op_list1_{{ i }}\" {% if disable_op %}style=\"display:none;\"{% endif %}>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td rowspan=\"2\">
\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>
\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>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr id=\"op_list2_{{ i }}\" {% if disable_op %}style=\"display:none;\"{% endif %}>
\t\t\t\t \t\t\t<td colspan=\"4\">
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t {% set disable_op = true %}
\t\t\t{% endif %}
\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</table>
</div>
</div>
</div>
<div class=\"card rounded border-0 mb-4\">
<div class=\"card-header\">
<div class=\"row\">
<div class=\"col-8\">
<div class=\"d-inline-block\">
<span class=\"card-title\">オプション商品設定</span>
</div>
</div>
<div class=\"col-4 text-end\">
<a data-bs-toggle=\"collapse\" href=\"#optionItemArea\" aria-expanded=\"false\"
aria-controls=\"optionItemArea\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"optionItemArea\">
<div class=\"card-body\" style=\"overflow-y: scroll;max-height: 700px;\">
\t\t\t\t\t\t\t\t<table class=\"table table-bordered\">
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t \t\t\t<th rowspan=\"2\">商品画像</th>
\t\t\t\t \t\t\t<th>商品名</th>
\t\t\t\t \t\t\t<th>素材</th>
\t\t\t\t \t\t\t<th>カラー</th>
\t\t\t\t \t\t\t<th>価格</th>
\t\t\t\t \t\t\t<th>工事費</th>
\t\t\t\t \t\t\t<th rowspan=\"2\">設定</th>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t \t\t\t<th colspan=\"5\">説明</th>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t {% set disable_oi = false %}
{% for i in 0 .. 1000 %}
\t{% if oi and oi|length > i %}
\t\t\t\t\t\t\t\t\t<tr id=\"oi_list1_{{ i }}\">
\t\t\t\t \t\t\t<td rowspan=\"2\">
\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]\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td rowspan=\"2\">
\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>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr id=\"oi_list2_{{ i }}\">
\t\t\t\t \t\t\t<td colspan=\"5\">
\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'] }}\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t<tr id=\"oi_list1_{{ i }}\" {% if disable_oi %}style=\"display:none;\"{% endif %}>
\t\t\t\t \t\t\t<td rowspan=\"2\">
\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]\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td>
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t \t\t\t<td rowspan=\"2\">
\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>
\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>
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t<tr id=\"oi_list2_{{ i }}\" {% if disable_oi %}style=\"display:none;\"{% endif %}>
\t\t\t\t \t\t\t<td colspan=\"5\">
\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=\"\">
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t {% set disable_oi = true %}
\t\t\t{% endif %}
\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</table>
</div>
</div>
</div>
</div>
<div class=\"c-conversionArea\">
<div class=\"c-conversionArea__container\">
<div class=\"row justify-content-between align-items-center\">
<div class=\"col-6\">
<div class=\"c-conversionArea__leftBlockItem\">
<a class=\"c-baseLink\" href=\"{{ path('admin_product_page', { page_no : app.session.get('eccube.admin.product.search.page_no')|default('1') } ) }}\"
data-action=\"confirm\" title=\"{{ 'admin.common.move_to_confirm_message'|trans({'%name%' : 'admin.product.product_list'|trans }) }}\">
<i class=\"fa fa-backward\" aria-hidden=\"true\"></i><span>{{ 'admin.product.product_list'|trans }}</span>
</a>
</div>
</div>
<div class=\"col-6\">
<div id=\"ex-conversion-action\" class=\"row align-items-center justify-content-end\">
<div class=\"col-auto\">
{{ form_widget(form.Status) }}
{{ form_errors(form.Status) }}
</div>
<div class=\"col-auto\">
<button class=\"btn btn-ec-conversion px-5\" type=\"submit\">{{ 'admin.common.registration'|trans }}</button>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
{% endblock %}
", "@admin/Product/product.twig", "/home/xs538259/exterior-plus.jp/public_html/app/template/admin/Product/product.twig");
}
}