<?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_ae1beee2f294d81023461dab288fe7d5 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'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 11
return "@admin/default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/Product/product.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 16
public function block_sub_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sub_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_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, $this->sandbox->ensureToStringAllowed(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, true, 28), "stock_unlimited", [], "any", false, false, true, 28), "vars", [], "any", false, false, true, 28), "id", [], "any", false, false, true, 28), 28, $this->source), "html", null, true);
echo "\").prop(\"checked\")) {
\$(\"#";
// line 29
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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, true, 29), "stock", [], "any", false, false, true, 29), "vars", [], "any", false, false, true, 29), "id", [], "any", false, false, true, 29), 29, $this->source), "html", null, true);
echo "\").attr(\"disabled\", \"disabled\").val('');
} else {
\$(\"#";
// line 31
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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, true, 31), "stock", [], "any", false, false, true, 31), "vars", [], "any", false, false, true, 31), "id", [], "any", false, false, true, 31), 31, $this->source), "html", null, true);
echo "\").removeAttr(\"disabled\");
}
\$(\"#";
// line 33
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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, true, 33), "stock_unlimited", [], "any", false, false, true, 33), "vars", [], "any", false, false, true, 33), "id", [], "any", false, false, true, 33), 33, $this->source), "html", null, true);
echo "\").on(\"click change\", function() {
if (\$(this).prop(\"checked\")) {
\$(\"#";
// line 35
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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, true, 35), "stock", [], "any", false, false, true, 35), "vars", [], "any", false, false, true, 35), "id", [], "any", false, false, true, 35), 35, $this->source), "html", null, true);
echo "\").attr(\"disabled\", \"disabled\").val('');
} else {
\$(\"#";
// line 37
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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, true, 37), "stock", [], "any", false, false, true, 37), "vars", [], "any", false, false, true, 37), "id", [], "any", false, false, true, 37), 37, $this->source), "html", null, true);
echo "\").removeAttr(\"disabled\");
}
});
";
}
// line 41
echo "
// ファイルアップロード
// see https://pqina.nl/filepond/
var inputFileElement = document.querySelector('input[type=file]');
FilePond.setOptions({
server: {
process: {
url: '";
// line 49
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 56
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_image_load");
echo "?source=',
headers: {
'X-Requested-With': 'XMLHttpRequest'
}
},
revert: {
url: '";
// line 62
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 83
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 87
$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.', 87, $this->source); })()), "images", [], "any", false, false, true, 87));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 88
echo " {
source: '";
// line 89
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "vars", [], "any", false, false, true, 89), "value", [], "any", false, false, true, 89), 89, $this->source), "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 95
echo " // 追加してすぐの画像のロード. バリデーションエラーの場合など.
";
// line 96
$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.', 96, $this->source); })()), "add_images", [], "any", false, false, true, 96));
foreach ($context['_seq'] as $context["_key"] => $context["add_image"]) {
// line 97
echo " {
source: '";
// line 98
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["add_image"], "vars", [], "any", false, false, true, 98), "value", [], "any", false, false, true, 98), 98, $this->source), "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 104
echo " ]
});
// 画像が追加されたら add_images にファイル名を追加する
var proto_add = '";
// line 107
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 107, $this->source); })()), "add_images", [], "any", false, false, true, 107), "vars", [], "any", false, false, true, 107), "prototype", [], "any", false, false, true, 107), 107, $this->source), '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 120
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 120, $this->source); })()), "delete_images", [], "any", false, false, true, 120), "vars", [], "any", false, false, true, 120), "prototype", [], "any", false, false, true, 120), 120, $this->source), '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 142
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 157
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 157, $this->source); })()), "images", [], "any", false, false, true, 157), "vars", [], "any", false, false, true, 157), "prototype", [], "any", false, false, true, 157), 157, $this->source), 'widget');
echo "';
";
// line 158
$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.', 158, $this->source); })()), "images", [], "any", false, false, true, 158));
$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 159
echo " \$('#upload-zone').append(
\$(proto_image.replace(/__name__/g, '";
// line 160
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, true, 160), 160, $this->source), "html", null, true);
echo "'))
.val('";
// line 161
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "vars", [], "any", false, false, true, 161), "value", [], "any", false, false, true, 161), 161, $this->source), "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 165
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.', 165, $this->source); })()), "add_images", [], "any", false, false, true, 165));
foreach ($context['_seq'] as $context["_key"] => $context["add_image"]) {
// line 166
echo " \$('#upload-zone').append(
\$('";
// line 167
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["add_image"], 167, $this->source), 'widget');
echo "')
.val('";
// line 168
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["add_image"], "vars", [], "any", false, false, true, 168), "value", [], "any", false, false, true, 168), 168, $this->source), "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 172
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.', 172, $this->source); })()), "delete_images", [], "any", false, false, true, 172));
foreach ($context['_seq'] as $context["_key"] => $context["delete_image"]) {
// line 173
echo " \$('#upload-zone').append(
\$('";
// line 174
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["delete_image"], 174, $this->source), '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 177
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_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 228
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 229
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 235
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 245
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 248
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 255
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 255, $this->source); })()), "_token", [], "any", false, false, true, 255), 255, $this->source), 'widget');
echo "
";
// line 256
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 256, $this->source); })()), "return_link", [], "any", false, false, true, 256), 256, $this->source), 'widget');
echo "
<div class=\"c-contentsArea__cols\">
<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 266
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 280
if (twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 280, $this->source); })()), "id", [], "any", false, false, true, 280)) {
// line 281
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"";
// line 283
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.product_id"), "html", null, true);
echo "\">
<span>";
// line 284
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_id"), "html", null, true);
echo "</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</div>
</div>
<div class=\"col\">
<p>";
// line 289
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 289, $this->source); })()), "id", [], "any", false, false, true, 289), 289, $this->source), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 293
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 296
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 298
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 303
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 303, $this->source); })()), "name", [], "any", false, false, true, 303), 303, $this->source), 'widget');
echo "
";
// line 304
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 304, $this->source); })()), "name", [], "any", false, false, true, 304), 304, $this->source), 'errors');
echo "
</div>
</div>
";
// line 307
if (((isset($context["has_class"]) || array_key_exists("has_class", $context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.', 307, $this->source); })()) == false)) {
// line 308
echo " <div class=\"row\" style=\"display:none;\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"";
// line 310
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.sale_type"), "html", null, true);
echo "\">
<span>";
// line 311
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.sale_type"), "html", null, true);
echo "</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
<span class=\"badge bg-primary ms-1\">
";
// line 314
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 319
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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, true, 319), "sale_type", [], "any", false, false, true, 319), 319, $this->source), 'widget', ["type" => "hidden", "value" => "1"]);
// line 322
echo "
";
// line 323
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 323, $this->source); })()), "class", [], "any", false, false, true, 323), "sale_type", [], "any", false, false, true, 323), 323, $this->source), 'errors');
echo "
</div>
</div>
";
}
// line 327
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"";
// line 329
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.image"), "html", null, true);
echo "\">
<span>";
// line 330
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 332
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 338
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 338, $this->source); })()), "product_image", [], "any", false, false, true, 338), 338, $this->source), 'widget', ["attr" => ["style" => "display:none;"]]);
echo "
";
// line 339
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 339, $this->source); })()), "product_image", [], "any", false, false, true, 339), 339, $this->source), '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 343
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\"
title=\"";
// line 352
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.description_detail"), "html", null, true);
echo "\">
<span>";
// line 353
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\">
";
// line 358
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 358, $this->source); })()), "description_detail", [], "any", false, false, true, 358), 358, $this->source), 'widget', ["attr" => ["rows" => "8"]]);
echo "
";
// line 359
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 359, $this->source); })()), "description_detail", [], "any", false, false, true, 359), 359, $this->source), 'errors');
echo "
<div class=\"d-inline-block mb-2\" data-bs-toggle=\"collapse\" href=\"#addComment\"
role=\"button\" aria-expanded=\"false\" aria-controls=\"addComment\">
<a>
<i class=\"fa fa-plus-square-o fw-bold me-1\"></i>
<span class=\"fw-bold text-ec-black\">
";
// line 365
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.description_list__add"), "html", null, true);
echo "
</span>
</a>
</div>
</div>
</div>
<div class=\"collapse ec-collapse\" id=\"addComment\">
<div class=\"row bg-ec-formGray pt-3 mb-2\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"";
// line 375
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.description_list"), "html", null, true);
echo "\">
<span>";
// line 376
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.description_list"), "html", null, true);
echo "</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</div>
</div>
<div class=\"col mb-4\">
<div>
";
// line 382
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 382, $this->source); })()), "description_list", [], "any", false, false, true, 382), 382, $this->source), 'widget', ["attr" => ["rows" => "4"]]);
echo "
";
// line 383
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 383, $this->source); })()), "description_list", [], "any", false, false, true, 383), 383, $this->source), 'errors');
echo "
</div>
</div>
</div>
</div>
";
// line 388
if (((isset($context["has_class"]) || array_key_exists("has_class", $context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.', 388, $this->source); })()) == false)) {
// line 389
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 392
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.sale_price"), "html", null, true);
echo "</span>
<span class=\"badge bg-primary ms-1\">
";
// line 394
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 400
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 400, $this->source); })()), "class", [], "any", false, false, true, 400), "price02", [], "any", false, false, true, 400), 400, $this->source), 'widget');
echo "
";
// line 401
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 401, $this->source); })()), "class", [], "any", false, false, true, 401), "price02", [], "any", false, false, true, 401), 401, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 408
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.retail_price"), "html", null, true);
echo "</span>
<span class=\"badge bg-primary ms-1\">
";
// line 410
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 416
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 416, $this->source); })()), "class", [], "any", false, false, true, 416), "retailPrice", [], "any", false, false, true, 416), 416, $this->source), 'widget');
echo "
";
// line 417
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 417, $this->source); })()), "class", [], "any", false, false, true, 417), "retailPrice", [], "any", false, false, true, 417), 417, $this->source), '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 424
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.normal_price"), "html", null, true);
echo "\">
<span>";
// line 425
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.normal_price"), "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 431
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 431, $this->source); })()), "class", [], "any", false, false, true, 431), "price01", [], "any", false, false, true, 431), 431, $this->source), 'widget');
echo "
";
// line 432
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 432, $this->source); })()), "class", [], "any", false, false, true, 432), "price01", [], "any", false, false, true, 432), 432, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 439
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 441
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 447
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 447, $this->source); })()), "class", [], "any", false, false, true, 447), "stock", [], "any", false, false, true, 447), 447, $this->source), 'widget');
echo "
";
// line 448
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 448, $this->source); })()), "class", [], "any", false, false, true, 448), "stock", [], "any", false, false, true, 448), 448, $this->source), 'errors');
echo "
";
// line 450
echo " ";
// line 451
echo " ";
// line 452
echo " ";
// line 453
echo " ";
// line 454
echo " ";
// line 455
echo " ";
// line 456
echo " ";
// line 457
echo " ";
// line 458
echo " ";
// line 459
echo " ";
// line 460
echo " ";
// line 461
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 461, $this->source); })()), "class", [], "any", false, false, true, 461), "stock_unlimited", [], "any", false, false, true, 461), 461, $this->source), 'widget');
echo "
";
// line 462
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 462, $this->source); })()), "class", [], "any", false, false, true, 462), "stock_unlimited", [], "any", false, false, true, 462), 462, $this->source), 'errors');
echo "
</div>
</div>
</div>
";
}
// line 467
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"";
// line 470
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.search_word"), "html", null, true);
echo "\">
<span>";
// line 471
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.search_word"), "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 477
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 477, $this->source); })()), "search_word", [], "any", false, false, true, 477), 477, $this->source), 'widget');
echo "
";
// line 478
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 478, $this->source); })()), "search_word", [], "any", false, false, true, 478), 478, $this->source), 'errors');
echo "
</div>
</div>
</div>
";
// line 483
if (((isset($context["has_class"]) || array_key_exists("has_class", $context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.', 483, $this->source); })()) == false)) {
// line 484
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"";
// line 487
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.product_code"), "html", null, true);
echo "\">
<span>";
// line 488
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_code"), "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 494
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 494, $this->source); })()), "class", [], "any", false, false, true, 494), "code", [], "any", false, false, true, 494), 494, $this->source), 'widget');
echo "
";
// line 495
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 495, $this->source); })()), "class", [], "any", false, false, true, 495), "code", [], "any", false, false, true, 495), 495, $this->source), '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 502
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.sale_limit"), "html", null, true);
echo "\">
<span>";
// line 503
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.sale_limit"), "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 509
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 509, $this->source); })()), "class", [], "any", false, false, true, 509), "sale_limit", [], "any", false, false, true, 509), 509, $this->source), 'widget');
echo "
";
// line 510
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 510, $this->source); })()), "class", [], "any", false, false, true, 510), "sale_limit", [], "any", false, false, true, 510), 510, $this->source), '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 517
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.delivery_duration"), "html", null, true);
echo "\">
<span>";
// line 518
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 524
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 524, $this->source); })()), "class", [], "any", false, false, true, 524), "delivery_duration", [], "any", false, false, true, 524), 524, $this->source), 'widget');
echo "
";
// line 525
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 525, $this->source); })()), "class", [], "any", false, false, true, 525), "delivery_duration", [], "any", false, false, true, 525), 525, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 532
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.reserved_price"), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 537
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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, true, 537), "reserved_price", [], "any", false, false, true, 537), 537, $this->source), 'widget');
echo "
";
// line 538
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 538, $this->source); })()), "class", [], "any", false, false, true, 538), "reserved_price", [], "any", false, false, true, 538), 538, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 545
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.reserved_retail_price"), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 550
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 550, $this->source); })()), "class", [], "any", false, false, true, 550), "reserved_retail_price", [], "any", false, false, true, 550), 550, $this->source), 'widget');
echo "
";
// line 551
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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, true, 551), "reserved_retail_price", [], "any", false, false, true, 551), 551, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 558
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.price_update_datetime"), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
";
// line 563
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 563, $this->source); })()), "class", [], "any", false, false, true, 563), "price_update_datetime", [], "any", false, false, true, 563), 563, $this->source), 'widget');
echo "
";
// line 564
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 564, $this->source); })()), "class", [], "any", false, false, true, 564), "price_update_datetime", [], "any", false, false, true, 564), 564, $this->source), 'errors');
echo "
</div>
</div>
</div>
";
// line 569
echo " ";
// line 570
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"";
// line 573
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.vendor"), "html", null, true);
echo "\">
<span>";
// line 574
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.vendor"), "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 580
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 580, $this->source); })()), "vendor", [], "any", false, false, true, 580), 580, $this->source), 'widget');
echo "
";
// line 581
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 581, $this->source); })()), "vendor", [], "any", false, false, true, 581), 581, $this->source), 'errors');
echo "
</div>
</div>
</div>
";
// line 588
echo "
";
// line 589
if (twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 589, $this->source); })()), "option_product_delivery_fee", [], "any", false, false, true, 589)) {
// line 590
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 593
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 598
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 598, $this->source); })()), "class", [], "any", false, false, true, 598), "delivery_fee", [], "any", false, false, true, 598), 598, $this->source), 'widget');
echo "
";
// line 599
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 599, $this->source); })()), "class", [], "any", false, false, true, 599), "delivery_fee", [], "any", false, false, true, 599), 599, $this->source), 'errors');
echo "
</div>
</div>
</div>
";
}
// line 604
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.', 604, $this->source); })()), "option_product_tax_rule", [], "any", false, false, true, 604)) {
// line 605
echo " <div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>";
// line 608
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 613
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 613, $this->source); })()), "class", [], "any", false, false, true, 613), "tax_rate", [], "any", false, false, true, 613), 613, $this->source), 'widget');
echo "
";
// line 614
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 614, $this->source); })()), "class", [], "any", false, false, true, 614), "tax_rate", [], "any", false, false, true, 614), 614, $this->source), 'errors');
echo "
</div>
</div>
</div>
";
}
// line 619
echo " ";
}
// line 620
echo "
";
// line 622
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 622, $this->source); })()), function ($__f__) use ($context, $macros) { $context["f"] = $__f__; return twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, true, 622), "eccube_form_options", [], "any", false, false, true, 622), "auto_render", [], "any", false, false, true, 622); }));
foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
// line 623
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, true, 623), "eccube_form_options", [], "any", false, false, true, 623), "form_theme", [], "any", false, false, true, 623)) {
// line 624
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, true, 624), "eccube_form_options", [], "any", false, false, true, 624), "form_theme", [], "any", false, false, true, 624)], true);
// line 625
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 625, $this->source), 'row');
echo "
";
} else {
// line 627
echo " <div class=\"row\">
<div class=\"col-3\">
<span>";
// line 629
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, true, 629), "label", [], "any", false, false, true, 629), 629, $this->source)), "html", null, true);
echo "</span>
</div>
<div class=\"col mb-2\">
<div>
";
// line 633
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 633, $this->source), 'widget');
echo "
";
// line 634
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 634, $this->source), 'errors');
echo "
</div>
</div>
</div>
";
}
// line 639
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 640
echo "
";
// line 641
if (((isset($context["has_class"]) || array_key_exists("has_class", $context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.', 641, $this->source); })()) == false)) {
// line 642
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.', 642, $this->source); })()), "class", [], "any", false, false, true, 642), 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, true, 642), "eccube_form_options", [], "any", false, false, true, 642), "auto_render", [], "any", false, false, true, 642); }));
foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
// line 643
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, true, 643), "eccube_form_options", [], "any", false, false, true, 643), "form_theme", [], "any", false, false, true, 643)) {
// line 644
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, true, 644), "eccube_form_options", [], "any", false, false, true, 644), "form_theme", [], "any", false, false, true, 644)], true);
// line 645
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 645, $this->source), 'row');
echo "
";
} else {
// line 647
echo " <div class=\"row\">
<div class=\"col-3\">
<span>";
// line 649
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, true, 649), "label", [], "any", false, false, true, 649), 649, $this->source)), "html", null, true);
echo "</span>
</div>
<div class=\"col mb-2\">
<div>
";
// line 653
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 653, $this->source), 'widget');
echo "
";
// line 654
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["f"], 654, $this->source), 'errors');
echo "
</div>
</div>
</div>
";
}
// line 659
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 660
echo " ";
}
// line 661
echo "
</div>
</div>
</div>
";
// line 665
if ( !(null === (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 665, $this->source); })()))) {
// line 666
echo " <div class=\"card rounded border-0 mb-4\" style=\"display: none;\">
<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 671
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.product_class"), "html", null, true);
echo "\">
<span class=\"card-title\">
";
// line 673
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_class__card_title"), "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=\"#standardConfig\" aria-expanded=\"false\"
aria-controls=\"standardConfig\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"standardConfig\">
<div class=\"card-body\">
";
// line 688
if (((isset($context["has_class"]) || array_key_exists("has_class", $context) ? $context["has_class"] : (function () { throw new RuntimeError('Variable "has_class" does not exist.', 688, $this->source); })()) == true)) {
// line 689
echo " <table class=\"table table-striped\">
<thead class=\"table-active\">
<th class=\"ps-3 pt-2 pb-2\">";
// line 691
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.class_category1__short"), "html", null, true);
echo "</th>
<th class=\"pt-2 pb-2\">";
// line 692
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.class_category2__short"), "html", null, true);
echo "</th>
<th class=\"pt-2 pb-2\">";
// line 693
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_code__short"), "html", null, true);
echo "</th>
<th class=\"pt-2 pb-2\">";
// line 694
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.stock"), "html", null, true);
echo "</th>
<th class=\"pe-3 pt-2 pb-2\">";
// line 695
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.price"), "html", null, true);
echo "</th>
</thead>
<tbody>
";
// line 698
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 698, $this->source); })()), "ProductClasses", [], "any", false, false, true, 698));
foreach ($context['_seq'] as $context["_key"] => $context["Class"]) {
// line 699
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Class"], "visible", [], "any", false, false, true, 699) == 1)) {
// line 700
echo " <tr>
<td class=\"ps-3\">";
// line 701
if (twig_get_attribute($this->env, $this->source, $context["Class"], "hasClassCategory1", [], "any", false, false, true, 701)) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Class"], "ClassCategory1", [], "any", false, false, true, 701), "name", [], "any", false, false, true, 701), 701, $this->source), "html", null, true);
}
echo "</td>
<td>";
// line 702
if (twig_get_attribute($this->env, $this->source, $context["Class"], "hasClassCategory2", [], "any", false, false, true, 702)) {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Class"], "ClassCategory2", [], "any", false, false, true, 702), "name", [], "any", false, false, true, 702), 702, $this->source), "html", null, true);
}
echo "</td>
<td>";
// line 703
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Class"], "code", [], "any", false, false, true, 703), 703, $this->source), "html", null, true);
echo "</td>
<td>";
// line 704
if (twig_get_attribute($this->env, $this->source, $context["Class"], "stock_unlimited", [], "any", false, false, true, 704)) {
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.stock_unlimited__short"), "html", null, true);
} else {
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Class"], "stock", [], "any", false, false, true, 704), 704, $this->source), "html", null, true);
}
echo "</td>
<td class=\"pe-3\">";
// line 705
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Class"], "price02", [], "any", false, false, true, 705), 705, $this->source)), "html", null, true);
echo "</td>
</tr>
";
}
// line 708
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Class'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 709
echo " </tbody>
</table>
";
}
// line 712
echo "
<div class=\"d-block text-center text-center\">
<a href=\"";
// line 714
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_product_class", ["id" => (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 714, $this->source); })())]), "html", null, true);
echo "\" class=\"btn btn-ec-regular\" data-action=\"confirm\"
title=\"";
// line 715
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.common.move_to_confirm_message", ["%name%" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_class_registration")]), "html", null, true);
// line 717
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.product_class__confirm_of_product"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
";
}
// line 723
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\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"";
// line 728
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tooltip.product.free_area"), "html", null, true);
echo "\">
<span class=\"card-title\">";
// line 729
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.free_area__card_title"), "html", null, true);
echo "</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</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\">
<div class=\"row\">
<div class=\"col-3\">
<span>";
// line 745
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.product.free_area"), "html", null, true);
echo "</span>
</div>
<div class=\"col-9\">
<div>
";
// line 749
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 749, $this->source); })()), "free_area", [], "any", false, false, true, 749), 749, $this->source), 'widget', ["id" => "wysiwyg-area", "attr" => ["rows" => "8"]]);
echo "
";
// line 750
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 750, $this->source); })()), "free_area", [], "any", false, false, true, 750), 750, $this->source), 'errors');
echo "
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=\"c-contentsArea__secondaryCol\">
<div class=\"c-secondaryCol\">
";
// line 762
if ( !(null === (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 762, $this->source); })()))) {
// line 763
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 769
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => (isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 769, $this->source); })())]), "html", null, true);
echo "\"
title=\"";
// line 770
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 776
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 781
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 804
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 823
echo "
<div class=\"c-directoryTree--register rounded border mb-3 p-3\">
";
// line 825
$macros["renderMacro"] = $this;
// line 826
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.', 826, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["TopCategory"]) {
// line 827
echo " <ul class=\"list-unstyled\">
";
// line 828
echo twig_call_macro($macros["renderMacro"], "macro_tree", [(isset($context["ChoicedCategoryIds"]) || array_key_exists("ChoicedCategoryIds", $context) ? $context["ChoicedCategoryIds"] : (function () { throw new RuntimeError('Variable "ChoicedCategoryIds" does not exist.', 828, $this->source); })()), $context["TopCategory"], twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 828, $this->source); })()), "Category", [], "any", false, false, true, 828)], 828, $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 831
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 831, $this->source); })()), "Category", [], "any", false, false, true, 831), 831, $this->source), 'errors');
echo "
</div>
<div class=\"d-block text-center\">
<a class=\"btn w-100 btn-ec-regular\"
data-action=\"confirm\"
href=\"";
// line 836
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_category");
echo "\"
title=\"";
// line 837
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 838
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 849
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 863
if ((twig_length_filter($this->env, (isset($context["Tags"]) || array_key_exists("Tags", $context) ? $context["Tags"] : (function () { throw new RuntimeError('Variable "Tags" does not exist.', 863, $this->source); })())) > 0)) {
// line 864
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.', 864, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 865
echo " <div class=\"d-inline-block mb-2 me-2\">
<button class=\"btn btn-outline-primary\" type=\"button\">";
// line 866
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Tag"], "name", [], "any", false, false, true, 866), 866, $this->source), "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 869
echo " ";
}
// line 870
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 875
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\" id=\"allTags\">
<div class=\"d-none\">
";
// line 880
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 880, $this->source); })()), "Tag", [], "any", false, false, true, 880), 880, $this->source), 'widget');
echo "
</div>
";
// line 882
if ((twig_length_filter($this->env, (isset($context["TagsList"]) || array_key_exists("TagsList", $context) ? $context["TagsList"] : (function () { throw new RuntimeError('Variable "TagsList" does not exist.', 882, $this->source); })())) > 0)) {
// line 883
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.', 883, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["Tag"]) {
// line 884
echo " <div class=\"d-inline-block mb-2 me-2\">
<button class=\"btn btn-outline-secondary\" type=\"button\"
data-tag-id=\"";
// line 886
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Tag"], "id", [], "any", false, false, true, 886), 886, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Tag"], "name", [], "any", false, false, true, 886), 886, $this->source), "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 889
echo " ";
}
// line 890
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 896
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 899
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 900
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 909
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 924
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 927
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\IntlExtension']->date_min($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 927, $this->source); })()), "create_date", [], "any", false, false, true, 927), 927, $this->source)), "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 933
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 936
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\IntlExtension']->date_min($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 936, $this->source); })()), "update_date", [], "any", false, false, true, 936), 936, $this->source)), "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 942
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 945
((twig_get_attribute($this->env, $this->source, (isset($context["Product"]) || array_key_exists("Product", $context) ? $context["Product"] : (function () { throw new RuntimeError('Variable "Product" does not exist.', 945, $this->source); })()), "Creator", [], "any", false, false, true, 945)) ? (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.', 945, $this->source); })()), "Creator", [], "any", false, false, true, 945), "name", [], "any", false, false, true, 945), "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 956
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 958
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 973
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 973, $this->source); })()), "note", [], "any", false, false, true, 973), 973, $this->source), 'widget', ["attr" => ["rows" => "8"]]);
echo "
";
// line 974
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 974, $this->source); })()), "note", [], "any", false, false, true, 974), 974, $this->source), 'errors');
echo "
</div>
</div>
</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 986
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, true, 986), "get", [0 => "eccube.admin.product.search.page_no"], "method", true, true, true, 986)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, true, true, 986), "get", [0 => "eccube.admin.product.search.page_no"], "method", false, false, true, 986), 986, $this->source), "1")) : ("1"))]), "html", null, true);
echo "\"
data-action=\"confirm\" title=\"";
// line 987
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 988
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 995
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 995, $this->source); })()), "Status", [], "any", false, false, true, 995), 995, $this->source), 'widget');
echo "
";
// line 996
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 996, $this->source); })()), "Status", [], "any", false, false, true, 996), 996, $this->source), 'errors');
echo "
</div>
<div class=\"col-auto\">
<button class=\"btn btn-ec-conversion px-5\" type=\"submit\">";
// line 999
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_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 811
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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tree"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "tree"));
// line 812
echo " ";
$macros["selfMacro"] = $this;
// line 813
echo " <li class=\"c-directoryTree--registerItem category-li\">
<input type=\"checkbox\" id=\"admin_product_category_";
// line 814
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 814, $this->source); })()), "id", [], "any", false, false, true, 814), 814, $this->source), "html", null, true);
echo "\" name=\"admin_product[Category][]\" value=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 814, $this->source); })()), "id", [], "any", false, false, true, 814), 814, $this->source), "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.', 814, $this->source); })()), "id", [], "any", false, false, true, 814), (isset($context["ChoicedIds"]) || array_key_exists("ChoicedIds", $context) ? $context["ChoicedIds"] : (function () { throw new RuntimeError('Variable "ChoicedIds" does not exist.', 814, $this->source); })()))) {
echo "checked";
}
echo ">
<label for=\"admin_product_category_";
// line 815
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 815, $this->source); })()), "id", [], "any", false, false, true, 815), 815, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["Category"]) || array_key_exists("Category", $context) ? $context["Category"] : (function () { throw new RuntimeError('Variable "Category" does not exist.', 815, $this->source); })()), "name", [], "any", false, false, true, 815), 815, $this->source), "html", null, true);
echo "</label>
<ul class=\"list-unstyled\">
";
// line 817
$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.', 817, $this->source); })()), "children", [], "any", false, false, true, 817));
foreach ($context['_seq'] as $context["child"] => $context["ChildCategory"]) {
// line 818
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.', 818, $this->source); })()), $context["ChildCategory"], (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 818, $this->source); })())], 818, $context, $this->getSourceContext());
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 820
echo " </ul>
</li>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_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 ( 1911 => 820, 1902 => 818, 1898 => 817, 1891 => 815, 1881 => 814, 1878 => 813, 1875 => 812, 1854 => 811, 1835 => 999, 1829 => 996, 1825 => 995, 1815 => 988, 1811 => 987, 1807 => 986, 1792 => 974, 1788 => 973, 1770 => 958, 1765 => 956, 1751 => 945, 1745 => 942, 1736 => 936, 1730 => 933, 1721 => 927, 1715 => 924, 1697 => 909, 1684 => 900, 1682 => 899, 1676 => 896, 1668 => 890, 1665 => 889, 1654 => 886, 1650 => 884, 1645 => 883, 1643 => 882, 1638 => 880, 1630 => 875, 1623 => 870, 1620 => 869, 1611 => 866, 1608 => 865, 1603 => 864, 1601 => 863, 1584 => 849, 1569 => 838, 1567 => 837, 1563 => 836, 1554 => 831, 1545 => 828, 1542 => 827, 1537 => 826, 1535 => 825, 1531 => 823, 1521 => 804, 1495 => 781, 1488 => 776, 1477 => 770, 1473 => 769, 1465 => 763, 1463 => 762, 1448 => 750, 1444 => 749, 1437 => 745, 1418 => 729, 1414 => 728, 1407 => 723, 1397 => 717, 1395 => 715, 1391 => 714, 1387 => 712, 1382 => 709, 1376 => 708, 1370 => 705, 1362 => 704, 1358 => 703, 1352 => 702, 1346 => 701, 1343 => 700, 1340 => 699, 1336 => 698, 1330 => 695, 1326 => 694, 1322 => 693, 1318 => 692, 1314 => 691, 1310 => 689, 1308 => 688, 1290 => 673, 1285 => 671, 1278 => 666, 1276 => 665, 1270 => 661, 1267 => 660, 1261 => 659, 1253 => 654, 1249 => 653, 1242 => 649, 1238 => 647, 1232 => 645, 1229 => 644, 1226 => 643, 1221 => 642, 1219 => 641, 1216 => 640, 1210 => 639, 1202 => 634, 1198 => 633, 1191 => 629, 1187 => 627, 1181 => 625, 1178 => 624, 1175 => 623, 1170 => 622, 1167 => 620, 1164 => 619, 1156 => 614, 1152 => 613, 1144 => 608, 1139 => 605, 1136 => 604, 1128 => 599, 1124 => 598, 1116 => 593, 1111 => 590, 1109 => 589, 1106 => 588, 1099 => 581, 1095 => 580, 1086 => 574, 1082 => 573, 1077 => 570, 1075 => 569, 1068 => 564, 1064 => 563, 1056 => 558, 1046 => 551, 1042 => 550, 1034 => 545, 1024 => 538, 1020 => 537, 1012 => 532, 1002 => 525, 998 => 524, 989 => 518, 985 => 517, 975 => 510, 971 => 509, 962 => 503, 958 => 502, 948 => 495, 944 => 494, 935 => 488, 931 => 487, 926 => 484, 924 => 483, 916 => 478, 912 => 477, 903 => 471, 899 => 470, 894 => 467, 886 => 462, 881 => 461, 879 => 460, 877 => 459, 875 => 458, 873 => 457, 871 => 456, 869 => 455, 867 => 454, 865 => 453, 863 => 452, 861 => 451, 859 => 450, 855 => 448, 851 => 447, 842 => 441, 837 => 439, 827 => 432, 823 => 431, 814 => 425, 810 => 424, 800 => 417, 796 => 416, 787 => 410, 782 => 408, 772 => 401, 768 => 400, 759 => 394, 754 => 392, 749 => 389, 747 => 388, 739 => 383, 735 => 382, 726 => 376, 722 => 375, 709 => 365, 700 => 359, 696 => 358, 688 => 353, 684 => 352, 672 => 343, 665 => 339, 661 => 338, 652 => 332, 647 => 330, 643 => 329, 639 => 327, 632 => 323, 629 => 322, 627 => 319, 619 => 314, 613 => 311, 609 => 310, 605 => 308, 603 => 307, 597 => 304, 593 => 303, 585 => 298, 580 => 296, 575 => 293, 568 => 289, 560 => 284, 556 => 283, 552 => 281, 550 => 280, 533 => 266, 520 => 256, 516 => 255, 506 => 248, 500 => 245, 487 => 235, 479 => 229, 469 => 228, 410 => 177, 401 => 174, 398 => 173, 393 => 172, 383 => 168, 379 => 167, 376 => 166, 371 => 165, 353 => 161, 349 => 160, 346 => 159, 329 => 158, 325 => 157, 307 => 142, 282 => 120, 266 => 107, 261 => 104, 249 => 98, 246 => 97, 242 => 96, 239 => 95, 227 => 89, 224 => 88, 220 => 87, 211 => 83, 187 => 62, 178 => 56, 168 => 49, 158 => 41, 151 => 37, 146 => 35, 141 => 33, 136 => 31, 131 => 29, 126 => 28, 124 => 27, 116 => 21, 106 => 20, 87 => 16, 68 => 15, 57 => 11, 55 => 18, 53 => 13, 40 => 11,);
}
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]');
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=\"c-contentsArea__cols\">
<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 class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"{{ 'tooltip.product.product_id'|trans }}\">
<span>{{ 'admin.product.product_id'|trans }}</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</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\" style=\"display:none;\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"{{ 'tooltip.product.sale_type'|trans }}\">
<span>{{ 'admin.product.sale_type'|trans }}</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
<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, {
type: 'hidden',
value: '1'
})}}
{{ form_errors(form.class.sale_type) }}
</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\"
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\">
{{ form_widget(form.description_detail, { attr : { rows : \"8\"} }) }}
{{ form_errors(form.description_detail) }}
<div class=\"d-inline-block mb-2\" data-bs-toggle=\"collapse\" href=\"#addComment\"
role=\"button\" aria-expanded=\"false\" aria-controls=\"addComment\">
<a>
<i class=\"fa fa-plus-square-o fw-bold me-1\"></i>
<span class=\"fw-bold text-ec-black\">
{{ 'admin.product.description_list__add'|trans }}
</span>
</a>
</div>
</div>
</div>
<div class=\"collapse ec-collapse\" id=\"addComment\">
<div class=\"row bg-ec-formGray pt-3 mb-2\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"{{ 'tooltip.product.description_list'|trans }}\">
<span>{{ 'admin.product.description_list'|trans }}</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</div>
</div>
<div class=\"col mb-4\">
<div>
{{ form_widget(form.description_list, { attr : { rows : \"4\"} }) }}
{{ form_errors(form.description_list) }}
</div>
</div>
</div>
</div>
{% if has_class == false %}
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>{{ 'admin.product.sale_price'|trans }}</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.retail_price'|trans }}</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.retailPrice) }}
{{ form_errors(form.class.retailPrice) }}
</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.normal_price'|trans }}\">
<span>{{ 'admin.product.normal_price'|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.price01) }}
{{ form_errors(form.class.price01) }}
</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.search_word'|trans }}\">
<span>{{ 'admin.product.search_word'|trans }}</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.search_word) }}
{{ form_errors(form.search_word) }}
</div>
</div>
</div>
{% if has_class == false %}
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"{{ 'tooltip.product.product_code'|trans }}\">
<span>{{ 'admin.product.product_code'|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.code) }}
{{ form_errors(form.class.code) }}
</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.sale_limit'|trans }}\">
<span>{{ 'admin.product.sale_limit'|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.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>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>{{ 'admin.product.reserved_price'|trans }}</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.class.reserved_price) }}
{{ form_errors(form.class.reserved_price) }}
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>{{ 'admin.product.reserved_retail_price'|trans }}</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.class.reserved_retail_price) }}
{{ form_errors(form.class.reserved_retail_price) }}
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\">
<span>{{ 'admin.product.price_update_datetime'|trans }}</span>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.class.price_update_datetime) }}
{{ form_errors(form.class.price_update_datetime) }}
</div>
</div>
</div>
{# 出店者 #}
{# {% if app.user.getCustomizeRole() == 'ROLE_ADMIN' %} #}
<div class=\"row\">
<div class=\"col-3\">
<div class=\"d-inline-block\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"{{ 'tooltip.product.vendor'|trans }}\">
<span>{{ 'admin.product.vendor'|trans }}</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</div>
</div>
<div class=\"col mb-2\">
<div>
{{ form_widget(form.vendor) }}
{{ form_errors(form.vendor) }}
</div>
</div>
</div>
{# {% else %}
{{ form_widget(form.vendor) }}
{% endif %} #}
{% 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 %}
{# エンティティ拡張の自動出力 #}
{% for f in form|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 %}
{% 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 %}
</div>
</div>
</div>
{% if id is not null %}
<div class=\"card rounded border-0 mb-4\" style=\"display: none;\">
<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.product_class'|trans }}\">
<span class=\"card-title\">
{{ 'admin.product.product_class__card_title'|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=\"#standardConfig\" aria-expanded=\"false\"
aria-controls=\"standardConfig\">
<i class=\"fa fa-angle-up fa-lg\"></i>
</a>
</div>
</div>
</div>
<div class=\"collapse show ec-cardCollapse\" id=\"standardConfig\">
<div class=\"card-body\">
{% if has_class == true %}
<table class=\"table table-striped\">
<thead class=\"table-active\">
<th class=\"ps-3 pt-2 pb-2\">{{ 'admin.product.class_category1__short'|trans }}</th>
<th class=\"pt-2 pb-2\">{{ 'admin.product.class_category2__short'|trans }}</th>
<th class=\"pt-2 pb-2\">{{ 'admin.product.product_code__short'|trans }}</th>
<th class=\"pt-2 pb-2\">{{ 'admin.product.stock'|trans }}</th>
<th class=\"pe-3 pt-2 pb-2\">{{ 'admin.product.price'|trans }}</th>
</thead>
<tbody>
{% for Class in Product.ProductClasses %}
{% if Class.visible == 1 %}
<tr>
<td class=\"ps-3\">{% if Class.hasClassCategory1 %}{{ Class.ClassCategory1.name }}{% endif %}</td>
<td>{% if Class.hasClassCategory2 %}{{ Class.ClassCategory2.name }}{% endif %}</td>
<td>{{ Class.code }}</td>
<td>{% if Class.stock_unlimited %}{{ 'admin.product.stock_unlimited__short'|trans }}{% else %}{{ Class.stock }}{% endif %}</td>
<td class=\"pe-3\">{{ Class.price02|price }}</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
{% endif %}
<div class=\"d-block text-center text-center\">
<a href=\"{{ path('admin_product_product_class', { 'id' : id }) }}\" class=\"btn btn-ec-regular\" data-action=\"confirm\"
title=\"{{ 'admin.common.move_to_confirm_message'|trans({
'%name%' : 'admin.product.product_class_registration'|trans
}) }}\">{{ 'admin.product.product_class__confirm_of_product'|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\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\"
title=\"{{ 'tooltip.product.free_area'|trans }}\">
<span class=\"card-title\">{{ 'admin.product.free_area__card_title'|trans }}</span>
<i class=\"fa fa-question-circle fa-lg ms-1\"></i>
</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\">
<div class=\"row\">
<div class=\"col-3\">
<span>{{ 'admin.product.free_area'|trans }}</span>
</div>
<div class=\"col-9\">
<div>
{{ form_widget(form.free_area, {id: 'wysiwyg-area', attr : { rows : \"8\"} }) }}
{{ form_errors(form.free_area) }}
</div>
</div>
</div>
</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\" 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 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/bluehippo91/www/bluehippo91.sakura.ne.jp/app/template/admin/Product/product.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "form_theme" => 18, "if" => 27, "for" => 87, "import" => 825, "macro" => 811);
static $filters = array("escape" => 15, "trans" => 15, "filter" => 622, "price" => 705, "length" => 863, "date_min" => 927, "default" => 986);
static $functions = array("path" => 49, "form_widget" => 107, "form_errors" => 304, "form_row" => 625, "url" => 769);
try {
$this->sandbox->checkSecurity(
['set', 'form_theme', 'if', 'for', 'import', 'macro'],
['escape', 'trans', 'filter', 'price', 'length', 'date_min', 'default'],
['path', 'form_widget', 'form_errors', 'form_row', 'url']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}