#pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
            Dictionary <int, int> counters = new Dictionary <int, int>();

#line default
#line hidden
            BeginContext(76, 58, true);
            WriteLiteral("<div class=\"content-block\">\n\t<div class=\"navigation-menu\">");
            EndContext();
            BeginContext(136, 72, false);
#line 3 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
            Write(Model != null ? Html.Raw(Model.BreadcrumbsHtml) : Html.Raw(string.Empty));

#line default
#line hidden
            EndContext();
            BeginContext(209, 3, true);
            WriteLiteral(" → ");
            EndContext();
            BeginContext(214, 65, false);
#line 3 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
            Write(Model != null ? Html.Raw(Model.PageName) : Html.Raw(string.Empty));

#line default
#line hidden
            EndContext();
            BeginContext(280, 125, true);
            WriteLiteral("</div>\n\t<div class=\"container\">\n\t\t<div class=\"gallery\">\n\t\t\t<a class=\"selected-image-block\" data-lightbox=\"image\" data-title=\"");
            EndContext();
            BeginContext(407, 65, false);
#line 6 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
            Write(Model != null ? Html.Raw(Model.PageName) : Html.Raw(string.Empty));

#line default
#line hidden
            EndContext();
            BeginContext(473, 62, true);
            WriteLiteral("\"><img id=\"selected-image\"></a>\n\t\t\t<div id=\"image-container\">\n");
            EndContext();
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
            var env = Context.RequestServices.GetService(typeof(Microsoft.AspNetCore.Hosting.IHostingEnvironment)) as Microsoft.AspNetCore.Hosting.IHostingEnvironment; foreach (var imgUrl in ImagesManagementFunctions.GetProductImageUrls(Model as ProductPage, env, 0))
            {
#line default
#line hidden
                BeginContext(806, 4, true);
                WriteLiteral("<div");
                EndContext();
                BeginWriteAttribute("id", " id=\"", 810, "\"", 908, 2);
                WriteAttributeValue("", 815, "image-", 815, 6, true);
                WriteAttributeValue("", 821, new Microsoft.AspNetCore.Mvc.Razor.HelperResult(async(__razor_attribute_value_writer) => {
                    PushWriter(__razor_attribute_value_writer);
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
                    if (!counters.ContainsKey(1))
                    {
                        counters.Add(1, 0);
                    }

#line default
#line hidden
                    BeginContext(885, 13, false);
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
                    Write(++counters[1]);

#line default
#line hidden
                    EndContext();

                    PopWriter();
                }
                                                                                             ), 821, 87, false);
                EndWriteAttribute();
                BeginContext(909, 1, true);
                WriteLiteral(">");
                EndContext();
                BeginContext(910, 77, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("image", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ae13e9542d7b38585970634c3d0f5cace5961edb8259", async() => {
                }
                                                                            );
                __Treynessen_TagHelpers_ImageTagHelper = CreateTagHelper <global::Treynessen.TagHelpers.ImageTagHelper>();
                __tagHelperExecutionContext.Add(__Treynessen_TagHelpers_ImageTagHelper);
                BeginWriteTagHelperAttribute();
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
                WriteLiteral(imgUrl);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Treynessen_TagHelpers_ImageTagHelper.Src = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("src", __Treynessen_TagHelpers_ImageTagHelper.Src, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
                __Treynessen_TagHelpers_ImageTagHelper.MaxWidth = 350;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("max-width", __Treynessen_TagHelpers_ImageTagHelper.MaxWidth, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
                __Treynessen_TagHelpers_ImageTagHelper.MaxHeight = 270;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("max-height", __Treynessen_TagHelpers_ImageTagHelper.MaxHeight, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
                __Treynessen_TagHelpers_ImageTagHelper.Quality = 95;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("quality", __Treynessen_TagHelpers_ImageTagHelper.Quality, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(987, 6, true);
                WriteLiteral("</div>");
                EndContext();
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
            }

#line default
#line hidden
            BeginContext(1005, 79, true);
            WriteLiteral("\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"info-container\">\n\t\t\t<div class=\"product-name\">");
            EndContext();
            BeginContext(1086, 65, false);
#line 12 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
            Write(Model != null ? Html.Raw(Model.PageName) : Html.Raw(string.Empty));

#line default
#line hidden
            EndContext();
            BeginContext(1152, 47, true);
            WriteLiteral("</div>\n\t\t\t<div class=\"price\"><span>Цена:</span>");
            EndContext();
            BeginContext(1201, 336, false);
#line 13 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
            Write(Model is ProductPage && (Model as ProductPage).OldPrice != 0 ? Html.Raw("<span>" + OtherFunctions.PriceFormatting((Model as ProductPage).Price) + "</span><span>" + OtherFunctions.PriceFormatting((Model as ProductPage).OldPrice) + "</span>") : Html.Raw("<span>" + OtherFunctions.PriceFormatting((Model as ProductPage).Price) + "</span>"));

#line default
#line hidden
            EndContext();
            BeginContext(1538, 411, true);
            WriteLiteral(@"</div>
			<div class=""offer"">Если найдете цену ниже, мы предложим более выгодные условия!</div>
			<div class=""info"">Приходите! У нас огромный ассортимент инструмента, есть другие модели!</div>
			<div class=""info"">Звоните ежедневно с 11:00 до 17:00 по телефону <a href=""tel:89082905999"">8 9082 905-999</a></div>
		</div>
	</div>
	<div class=""description"">
		<div class=""tab"">Описание</div>
		<div class=""text"">"        );
            EndContext();
            BeginContext(1951, 64, false);
#line 21 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\Chunks\product_page_content.cshtml"
            Write(Model != null ? Html.Raw(Model.Content) : Html.Raw(string.Empty));

#line default
#line hidden
            EndContext();
            BeginContext(2016, 22, true);
            WriteLiteral("</div>\n\t</div>\n</div>\n");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(146, 18, true);
            WriteLiteral("<a class=\"product\"");
            EndContext();
            BeginWriteAttribute("href", " href=\"", 164, "\"", 242, 1);
#line 5 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
            WriteAttributeValue("", 171, Model != null ? Html.Raw(Model.RequestPath) : Html.Raw(string.Empty), 171, 71, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(243, 1, true);
            WriteLiteral(">");
            EndContext();
#line 5 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
            if (Model is ProductPage && (Model as ProductPage).Price > 0 && (Model as ProductPage).OldPrice > 0)
            {
#line default
#line hidden
                BeginContext(350, 39, false);
#line 5 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
                Write(Html.Raw("<div class=\"stock\"></div>"));

#line default
#line hidden
                EndContext();
#line 5 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
            }

#line default
#line hidden
#line 5 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
            if (Model is ProductPage && (Model as ProductPage).SpecialProduct)
            {
#line default
#line hidden
                BeginContext(465, 38, false);
#line 5 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
                Write(Html.Raw("<div class=\"best\"></div>"));

#line default
#line hidden
                EndContext();
#line 5 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
            }

#line default
#line hidden
            BeginContext(508, 1, true);
            WriteLiteral("\t");
            EndContext();
            BeginContext(509, 171, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("image", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4abb7fda4910ea1c864d565542e0acce309c33d26197", async() => {
            }
                                                                        );
            __Treynessen_TagHelpers_ImageTagHelper = CreateTagHelper <global::Treynessen.TagHelpers.ImageTagHelper>();
            __tagHelperExecutionContext.Add(__Treynessen_TagHelpers_ImageTagHelper);
            BeginWriteTagHelperAttribute();
#line 6 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
            WriteLiteral(Model is ProductPage ? "/images/products/" + Model.ID.ToString() + "/" + Model.Alias + ".jpg" : string.Empty);

#line default
#line hidden
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __Treynessen_TagHelpers_ImageTagHelper.Src = __tagHelperStringValueBuffer;
            __tagHelperExecutionContext.AddTagHelperAttribute("src", __Treynessen_TagHelpers_ImageTagHelper.Src, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 6 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
            __Treynessen_TagHelpers_ImageTagHelper.Width = 150;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("width", __Treynessen_TagHelpers_ImageTagHelper.Width, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 6 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
            __Treynessen_TagHelpers_ImageTagHelper.Height = 115;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("height", __Treynessen_TagHelpers_ImageTagHelper.Height, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 6 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
            __Treynessen_TagHelpers_ImageTagHelper.Quality = 93;

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("quality", __Treynessen_TagHelpers_ImageTagHelper.Quality, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(680, 58, true);
            WriteLiteral("\n\t<div class=\"product-info\">\n\t\t<span class=\"product-name\">");
            EndContext();
            BeginContext(740, 89, false);
#line 8 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
            Write(Model is ProductPage ? Html.Raw((Model as ProductPage).PageName) : Html.Raw(string.Empty));

#line default
#line hidden
            EndContext();
            BeginContext(830, 47, true);
            WriteLiteral("</span>\n\t\t<div class=\"short-description\"><span>");
            EndContext();
            BeginContext(879, 97, false);
#line 9 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
            Write(Model is ProductPage ? Html.Raw((Model as ProductPage).ShortDescription) : Html.Raw(string.Empty));

#line default
#line hidden
            EndContext();
            BeginContext(977, 50, true);
            WriteLiteral("</span></div>\n\t</div>\n\t<div class=\"product-price\">");
            EndContext();
            BeginContext(1029, 336, false);
#line 11 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Settings\product_block.cshtml"
            Write(Model is ProductPage && (Model as ProductPage).OldPrice != 0 ? Html.Raw("<span>" + OtherFunctions.PriceFormatting((Model as ProductPage).Price) + "</span><span>" + OtherFunctions.PriceFormatting((Model as ProductPage).OldPrice) + "</span>") : Html.Raw("<span>" + OtherFunctions.PriceFormatting((Model as ProductPage).Price) + "</span>"));

#line default
#line hidden
            EndContext();
            BeginContext(1366, 12, true);
            WriteLiteral("</div>\n</a>\n");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 6 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"

            Layout = "CommonPage";
            Context.Items["PageStyle"] = "/styles/admin_panel/categories_and_products/category_products.css";
            int    categoryID   = (int)Context.Items["itemID"];
            string categoryName = Context.Items["categoryName"] as string;
            Context.Items["PageName"] = $"{localization.CategoryProductsPageName} {categoryName}";
            User user = Context.Items["User"] as User;

#line default
#line hidden
            BeginContext(583, 144, true);
            WriteLiteral("<script>\r\n                function responseHandler(request) {\r\n                    if (request.status == 200) {\r\n                        alert(\'");
            EndContext();
            BeginContext(728, 37, false);
#line 17 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
            Write(Html.Raw(localization.ProductDeleted));

#line default
#line hidden
            EndContext();
            BeginContext(765, 158, true);
            WriteLiteral("\');\r\n                        location.reload();\r\n                    }\r\n                    else if (request.status == 404) {\r\n                        alert(\'");
            EndContext();
            BeginContext(924, 38, false);
#line 21 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
            Write(Html.Raw(localization.ProductNotFound));

#line default
#line hidden
            EndContext();
            BeginContext(962, 70, true);
            WriteLiteral("\');\r\n                    }\r\n                }\r\n            </script>\r\n");
            EndContext();
#line 25 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
            if (SecurityFunctions.HasAccessTo(AdminPanelPages.AddProduct, user, Context))
            {
#line default
#line hidden
                BeginContext(1115, 64, true);
                WriteLiteral("            <div class=\"add-product-button\">\r\n                <a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 1179, "\"", 1268, 5);
#line 28 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                WriteAttributeValue("", 1186, Context.Request.Path, 1186, 21, false);

#line default
#line hidden
                WriteAttributeValue("", 1207, "?pageID=", 1207, 8, true);
#line 28 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                WriteAttributeValue("", 1215, (int)AdminPanelPages.AddProduct, 1215, 34, false);

#line default
#line hidden
                WriteAttributeValue("", 1249, "&itemID=", 1249, 8, true);
#line 28 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                WriteAttributeValue("", 1257, categoryID, 1257, 11, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1269, 1, true);
                WriteLiteral(">");
                EndContext();
                BeginContext(1271, 70, false);
#line 28 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                Write(Html.Raw($"{localization.AddProductInCategory} <b>{categoryName}</b>"));

#line default
#line hidden
                EndContext();
                BeginContext(1341, 26, true);
                WriteLiteral("</a>\r\n            </div>\r\n");
                EndContext();
#line 30 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
            }

#line default
#line hidden
            BeginContext(1370, 98, true);
            WriteLiteral("            <table>\r\n                <tr>\r\n                    <td></td>\r\n                    <td>");
            EndContext();
            BeginContext(1469, 27, false);
#line 34 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
            Write(Html.Raw(localization.Name));

#line default
#line hidden
            EndContext();
            BeginContext(1496, 65, true);
            WriteLiteral("</td>\r\n                    <td>URL</td>\r\n                    <td>");
            EndContext();
            BeginContext(1562, 30, false);
#line 36 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
            Write(Html.Raw(localization.Actions));

#line default
#line hidden
            EndContext();
            BeginContext(1592, 30, true);
            WriteLiteral("</td>\r\n                </tr>\r\n");
            EndContext();
#line 38 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
            foreach (var p in Model)
            {
#line default
#line hidden
                BeginContext(1684, 46, true);
                WriteLiteral("                <tr>\r\n                    <td>");
                EndContext();
                BeginContext(1730, 136, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("image", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "62b556c1a7162b1e860574b40d3502cd1d71f5819985", async() => {
                }
                                                                            );
                __Treynessen_TagHelpers_ImageTagHelper = CreateTagHelper <global::Treynessen.TagHelpers.ImageTagHelper>();
                __tagHelperExecutionContext.Add(__Treynessen_TagHelpers_ImageTagHelper);
                BeginWriteTagHelperAttribute();
#line 41 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                WriteLiteral(Html.Raw($"{env.GetProductsImagesFolderSrc()}{p.ID}/{p.Alias}.jpg"));

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Treynessen_TagHelpers_ImageTagHelper.Src = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("src", __Treynessen_TagHelpers_ImageTagHelper.Src, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 41 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                __Treynessen_TagHelpers_ImageTagHelper.MaxHeight = 150;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("max-height", __Treynessen_TagHelpers_ImageTagHelper.MaxHeight, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 41 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                __Treynessen_TagHelpers_ImageTagHelper.MaxWidth = 150;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("max-width", __Treynessen_TagHelpers_ImageTagHelper.MaxWidth, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 41 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                __Treynessen_TagHelpers_ImageTagHelper.Quality = 50;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("quality", __Treynessen_TagHelpers_ImageTagHelper.Quality, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1866, 31, true);
                WriteLiteral("</td>\r\n                    <td>");
                EndContext();
                BeginContext(1898, 54, false);
#line 42 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                Write(Html.Raw($"{p.PageName} <b>(ID{p.ID.ToString()})</b>"));

#line default
#line hidden
                EndContext();
                BeginContext(1952, 31, true);
                WriteLiteral("</td>\r\n                    <td>");
                EndContext();
                BeginContext(1984, 23, false);
#line 43 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                Write(Html.Raw(p.RequestPath));

#line default
#line hidden
                EndContext();
                BeginContext(2007, 33, true);
                WriteLiteral("</td>\r\n                    <td>\r\n");
                EndContext();
#line 45 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                if (SecurityFunctions.HasAccessTo(AdminPanelPages.EditProduct, user, Context))
                {
#line default
#line hidden
                    BeginContext(2156, 107, true);
                    WriteLiteral("                        <form method=\"get\">\r\n                            <input type=\"hidden\" name=\"pageID\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 2263, "\"", 2306, 1);
#line 48 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    WriteAttributeValue("", 2271, (int)AdminPanelPages.EditProduct, 2271, 35, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(2307, 67, true);
                    WriteLiteral(" />\r\n                            <input type=\"hidden\" name=\"itemID\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 2374, "\"", 2387, 1);
#line 49 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    WriteAttributeValue("", 2382, p.ID, 2382, 5, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(2388, 73, true);
                    WriteLiteral(">\r\n                            <input type=\"submit\" class=\"action-button\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 2461, "\"", 2504, 1);
#line 50 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    WriteAttributeValue("", 2469, Html.Raw(localization.EditProduct), 2469, 35, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(2505, 38, true);
                    WriteLiteral(" />\r\n                        </form>\r\n");
                    EndContext();
#line 52 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                }

#line default
#line hidden
                BeginContext(2562, 16, true);
                WriteLiteral("                ");
                EndContext();
#line 53 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                if (SecurityFunctions.HasAccessTo(AdminPanelPages.ProductImages, user, Context))
                {
#line default
#line hidden
                    BeginContext(2680, 91, true);
                    WriteLiteral("        <form method=\"get\">\r\n                            <input type=\"hidden\" name=\"pageID\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 2771, "\"", 2816, 1);
#line 56 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    WriteAttributeValue("", 2779, (int)AdminPanelPages.ProductImages, 2779, 37, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(2817, 67, true);
                    WriteLiteral(" />\r\n                            <input type=\"hidden\" name=\"itemID\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 2884, "\"", 2897, 1);
#line 57 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    WriteAttributeValue("", 2892, p.ID, 2892, 5, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(2898, 73, true);
                    WriteLiteral(">\r\n                            <input type=\"submit\" class=\"action-button\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 2971, "\"", 3016, 1);
#line 58 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    WriteAttributeValue("", 2979, Html.Raw(localization.ProductImages), 2979, 37, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3017, 38, true);
                    WriteLiteral(" />\r\n                        </form>\r\n");
                    EndContext();
#line 60 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                }

#line default
#line hidden
                BeginContext(3074, 16, true);
                WriteLiteral("                ");
                EndContext();
#line 61 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                if (SecurityFunctions.HasAccessTo(AdminPanelPages.DeleteProduct, user, Context))
                {
#line default
#line hidden
                    BeginContext(3192, 17, true);
                    WriteLiteral("            <form");
                    EndContext();
                    BeginWriteAttribute("id", " id=\"", 3209, "\"", 3234, 2);
                    WriteAttributeValue("", 3214, "delete-product-", 3214, 15, true);
#line 63 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    WriteAttributeValue("", 3229, p.ID, 3229, 5, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3235, 65, true);
                    WriteLiteral(">\r\n                            <input type=\"hidden\" name=\"pageID\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 3300, "\"", 3345, 1);
#line 64 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    WriteAttributeValue("", 3308, (int)AdminPanelPages.DeleteProduct, 3308, 37, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3346, 65, true);
                    WriteLiteral(">\r\n                            <input type=\"hidden\" name=\"itemID\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 3411, "\"", 3424, 1);
#line 65 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    WriteAttributeValue("", 3419, p.ID, 3419, 5, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3425, 37, true);
                    WriteLiteral(">\r\n                            <input");
                    EndContext();
                    BeginWriteAttribute("id", " id=\"", 3462, "\"", 3494, 2);
                    WriteAttributeValue("", 3467, "delete-product-button-", 3467, 22, true);
#line 66 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    WriteAttributeValue("", 3489, p.ID, 3489, 5, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3495, 36, true);
                    WriteLiteral(" type=\"submit\" class=\"action-button\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 3531, "\"", 3576, 1);
#line 66 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    WriteAttributeValue("", 3539, Html.Raw(localization.DeleteProduct), 3539, 37, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3577, 147, true);
                    WriteLiteral(" />\r\n                        </form>\r\n                        <script>\r\n                            document.getElementById(\'delete-product-button-");
                    EndContext();
                    BeginContext(3725, 4, false);
#line 69 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    Write(p.ID);

#line default
#line hidden
                    EndContext();
                    BeginContext(3729, 82, true);
                    WriteLiteral("\').addEventListener(\'click\', createSendDataEventHandler(\'DELETE\', \'delete-product-");
                    EndContext();
                    BeginContext(3812, 4, false);
#line 69 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                    Write(p.ID);

#line default
#line hidden
                    EndContext();
                    BeginContext(3816, 58, true);
                    WriteLiteral("\', responseHandler));\r\n                        </script>\r\n");
                    EndContext();
#line 71 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
                }

#line default
#line hidden
                BeginContext(3893, 50, true);
                WriteLiteral("                    </td>\r\n                </tr>\r\n");
                EndContext();
#line 74 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\CategoryProducts.cshtml"
            }

#line default
#line hidden
            BeginContext(3950, 20, true);
            WriteLiteral("            </table>");
            EndContext();
        }
Beispiel #4
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"

            Layout = "CommonPage";
            Context.Items["PageStyle"] = "/styles/admin_panel/categories_and_products/product_images.css";
            ProductPage product = Context.Items["ProductPage"] as ProductPage;
            Context.Items["PageName"] = $"{localization.ProductImagesPageName} {product?.PageName}";
            User user = Context.Items["User"] as User;

#line default
#line hidden
            BeginContext(423, 59, true);
            WriteLiteral("<script src=\"/scripts/admin_panel/send_file.js\"></script>\r\n");
            EndContext();
#line 11 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
            if (SecurityFunctions.HasAccessTo(AdminPanelPages.AddProductImage, user, Context))
            {
#line default
#line hidden
                BeginContext(570, 109, true);
                WriteLiteral("            <form id=\"upload-image\" class=\"upload-image\">\r\n                <input type=\"hidden\" name=\"pageID\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 679, "\"", 726, 1);
#line 14 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                WriteAttributeValue("", 687, (int)AdminPanelPages.AddProductImage, 687, 39, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(727, 53, true);
                WriteLiteral(">\r\n                <input type=\"hidden\" name=\"itemID\"");
                EndContext();
                BeginWriteAttribute("value", " value=\"", 780, "\"", 800, 1);
#line 15 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                WriteAttributeValue("", 788, product?.ID, 788, 12, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(801, 104, true);
                WriteLiteral(">\r\n                <div class=\"input-file-button\">\r\n                    <label for=\"upload-file-button\">");
                EndContext();
                BeginContext(906, 34, false);
#line 17 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                Write(Html.Raw(localization.UploadImage));

#line default
#line hidden
                EndContext();
                BeginContext(940, 256, true);
                WriteLiteral(@"</label>
                    <input type=""file"" id=""upload-file-button"" name=""uploadedFile"" accept="".jpg, .jpeg"" /> 
                </div>
            </form>
            <script>
                function errorHandler() {
                    alert('");
                EndContext();
                BeginContext(1197, 50, false);
#line 23 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                Write(Html.Raw(localization.UnsuccessfullyImageUploaded));

#line default
#line hidden
                EndContext();
                BeginContext(1247, 158, true);
                WriteLiteral("\');\r\n                }\r\n                function responseHandler(request) {\r\n                    if (request.status == 200) {\r\n                        alert(\'");
                EndContext();
                BeginContext(1406, 36, false);
#line 27 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                Write(Html.Raw(localization.ImageUploaded));

#line default
#line hidden
                EndContext();
                BeginContext(1442, 439, true);
                WriteLiteral(@"');
                        location.reload();
                    }
                    else if (request.status == 415) {
                        errorHandler();
                    }
                    
                }
                document.getElementById('upload-file-button').addEventListener('change', createSendFileEventHandler('upload-image', responseHandler, errorHandler, '.jpeg', '.jpg')); 
            </script>
");
                EndContext();
#line 37 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
            }

#line default
#line hidden
#line 38 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
            if (SecurityFunctions.HasAccessTo(AdminPanelPages.DeleteProductImage, user, Context))
            {
#line default
#line hidden
                BeginContext(1999, 92, true);
                WriteLiteral("            <script>\r\n                function errorHandler() {\r\n                    alert(\'");
                EndContext();
                BeginContext(2092, 36, false);
#line 42 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                Write(Html.Raw(localization.ImageNotFound));

#line default
#line hidden
                EndContext();
                BeginContext(2128, 158, true);
                WriteLiteral("\');\r\n                }\r\n                function responseHandler(request) {\r\n                    if (request.status == 200) {\r\n                        alert(\'");
                EndContext();
                BeginContext(2287, 35, false);
#line 46 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                Write(Html.Raw(localization.ImageDeleted));

#line default
#line hidden
                EndContext();
                BeginContext(2322, 233, true);
                WriteLiteral("\');\r\n                        location.reload();\r\n                    }\r\n                    else if (request.status == 404) {\r\n                        errorHandler();\r\n                    }\r\n                }\r\n            </script>\r\n");
                EndContext();
#line 54 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
            }

#line default
#line hidden
            BeginContext(2570, 39, true);
            WriteLiteral("            <div class=\"images-list\">\r\n");
            EndContext();
#line 56 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"

            int imageID = 1;


#line default
#line hidden
            BeginContext(2654, 16, true);
            WriteLiteral("                ");
            EndContext();
#line 59 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
            foreach (var m in Model)
            {
#line default
#line hidden
                BeginContext(2716, 68, true);
                WriteLiteral("                <div class=\"image-block\">\r\n                    <div>");
                EndContext();
                BeginContext(2784, 70, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("image", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "086e5f277c65c05bfef847a569a263a809971fc611241", async() => {
                }
                                                                            );
                __Treynessen_TagHelpers_ImageTagHelper = CreateTagHelper <global::Treynessen.TagHelpers.ImageTagHelper>();
                __tagHelperExecutionContext.Add(__Treynessen_TagHelpers_ImageTagHelper);
                BeginWriteTagHelperAttribute();
#line 62 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                WriteLiteral(m);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Treynessen_TagHelpers_ImageTagHelper.Src = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("src", __Treynessen_TagHelpers_ImageTagHelper.Src, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 62 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                __Treynessen_TagHelpers_ImageTagHelper.MaxWidth = 290;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("max-width", __Treynessen_TagHelpers_ImageTagHelper.MaxWidth, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 62 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                __Treynessen_TagHelpers_ImageTagHelper.MaxHeight = 175;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("max-height", __Treynessen_TagHelpers_ImageTagHelper.MaxHeight, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line 62 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                __Treynessen_TagHelpers_ImageTagHelper.Quality = 80;

#line default
#line hidden
                __tagHelperExecutionContext.AddTagHelperAttribute("quality", __Treynessen_TagHelpers_ImageTagHelper.Quality, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2854, 35, true);
                WriteLiteral("</div>\r\n                    <label>");
                EndContext();
                BeginContext(2890, 35, false);
#line 63 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                Write(m.Substring(m.LastIndexOf('/') + 1));

#line default
#line hidden
                EndContext();
                BeginContext(2925, 35, true);
                WriteLiteral("</label>\r\n                    <form");
                EndContext();
                BeginWriteAttribute("id", " id=\"", 2960, "\"", 2992, 2);
                WriteAttributeValue("", 2965, "delete-image-", 2965, 13, true);
#line 64 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                WriteAttributeValue("", 2978, imageID + 1, 2978, 14, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(2993, 3, true);
                WriteLiteral(">\r\n");
                EndContext();
#line 65 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                if (SecurityFunctions.HasAccessTo(AdminPanelPages.DeleteProductImage, user, Context))
                {
#line default
#line hidden
                    BeginContext(3127, 58, true);
                    WriteLiteral("                        <input type=\"hidden\" name=\"pageID\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 3185, "\"", 3235, 1);
#line 67 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                    WriteAttributeValue("", 3193, (int)AdminPanelPages.DeleteProductImage, 3193, 42, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3236, 61, true);
                    WriteLiteral(">\r\n                        <input type=\"hidden\" name=\"itemID\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 3297, "\"", 3317, 1);
#line 68 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                    WriteAttributeValue("", 3305, product?.ID, 3305, 12, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3318, 62, true);
                    WriteLiteral(">\r\n                        <input type=\"hidden\" name=\"imageID\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 3380, "\"", 3396, 1);
#line 69 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                    WriteAttributeValue("", 3388, imageID, 3388, 8, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3397, 33, true);
                    WriteLiteral(">\r\n                        <input");
                    EndContext();
                    BeginWriteAttribute("id", " id=\"", 3430, "\"", 3469, 2);
                    WriteAttributeValue("", 3435, "delete-image-button-", 3435, 20, true);
#line 70 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                    WriteAttributeValue("", 3455, imageID + 1, 3455, 14, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3470, 14, true);
                    WriteLiteral(" type=\"submit\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 3484, "\"", 3534, 1);
#line 70 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                    WriteAttributeValue("", 3492, Html.Raw(localization.DeleteProductImage), 3492, 42, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3535, 3, true);
                    WriteLiteral(">\r\n");
                    EndContext();
#line 71 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(3610, 44, true);
                    WriteLiteral("                        <input type=\"submit\"");
                    EndContext();
                    BeginWriteAttribute("value", " value=\"", 3654, "\"", 3704, 1);
#line 74 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                    WriteAttributeValue("", 3662, Html.Raw(localization.DeleteProductImage), 3662, 42, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3705, 14, true);
                    WriteLiteral(" disabled />\r\n");
                    EndContext();
#line 75 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                }

#line default
#line hidden
                BeginContext(3742, 29, true);
                WriteLiteral("                    </form>\r\n");
                EndContext();
#line 77 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                if (SecurityFunctions.HasAccessTo(AdminPanelPages.DeleteProductImage, user, Context))
                {
#line default
#line hidden
                    BeginContext(3902, 99, true);
                    WriteLiteral("                    <script>\r\n                        document.getElementById(\'delete-image-button-");
                    EndContext();
                    BeginContext(4003, 11, false);
#line 80 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                    Write(imageID + 1);

#line default
#line hidden
                    EndContext();
                    BeginContext(4015, 80, true);
                    WriteLiteral("\').addEventListener(\'click\', createSendDataEventHandler(\'DELETE\', \'delete-image-");
                    EndContext();
                    BeginContext(4097, 11, false);
#line 80 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                    Write(imageID + 1);

#line default
#line hidden
                    EndContext();
                    BeginContext(4109, 68, true);
                    WriteLiteral("\', responseHandler, errorHandler));\r\n                    </script>\r\n");
                    EndContext();
#line 82 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                }

#line default
#line hidden
                BeginContext(4200, 24, true);
                WriteLiteral("                </div>\r\n");
                EndContext();
#line 84 "C:\Users\79622\Desktop\Github\StoreCMS\StoreCMS\Views\AdminPanel\CategoriesAndProducts\ProductImages.cshtml"
                imageID++;
            }

#line default
#line hidden
            BeginContext(4271, 18, true);
            WriteLiteral("            </div>");
            EndContext();
        }