#pragma checksum "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "09b3d6260a048f2d090cb71a25d3aa9c5af70514"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(PositioningWebApp.Pages.Home.Device.Pages_Home_Device_EditDevice), @"mvc.1.0.razor-page", @"/Pages/Home/Device/EditDevice.cshtml")]
[assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(@"/Pages/Home/Device/EditDevice.cshtml", typeof(PositioningWebApp.Pages.Home.Device.Pages_Home_Device_EditDevice), @"{id:int?}")]
namespace PositioningWebApp.Pages.Home.Device
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Mvc;
    using Microsoft.AspNetCore.Mvc.Rendering;
    using Microsoft.AspNetCore.Mvc.ViewFeatures;
#line 1 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\_ViewImports.cshtml"
using PositioningWebApp;

#line default
#line hidden
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemMetadataAttribute("RouteTemplate", "{id:int?}")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"09b3d6260a048f2d090cb71a25d3aa9c5af70514", @"/Pages/Home/Device/EditDevice.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"d829c5a2c2b9104486fa2eb5a1f7aeaef29f88eb", @"/Pages/_ViewImports.cshtml")]
    public class Pages_Home_Device_EditDevice : global::Microsoft.AspNetCore.Mvc.RazorPages.Page
    {
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", new global::Microsoft.AspNetCore.Html.HtmlString("text/javascript"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("src", new global::Microsoft.AspNetCore.Html.HtmlString("~/js/EditDevice.js"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("charset", new global::Microsoft.AspNetCore.Html.HtmlString("utf-8"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        #line hidden
        #pragma warning disable 0169
        private string __tagHelperStringValueBuffer;
        #pragma warning restore 0169
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __backed__tagHelperScopeManager = null;
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager __tagHelperScopeManager
        {
            get
            {
                if (__backed__tagHelperScopeManager == null)
                {
                    __backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
                }
                return __backed__tagHelperScopeManager;
            }
        }
        private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
  
	ViewData["Title"] = "EditDevice";

#line default
#line hidden
            BeginContext(123, 206, true);
            WriteLiteral("<style>\r\n\thtml, body {\r\n\t\theight: 100%;\r\n\t\tmargin: 0;\r\n\t\tpadding: 0;\r\n\t}\r\n</style>\r\n\r\n<div class=\"row\">\r\n\t<div class=\"col-md-12 col-sm-12 col-xs-12\">\r\n\t\t<div>\r\n\t\t\t<div class=\"col-md-9 col-sm-9 col-xs-12\">\r\n");
            EndContext();
#line 18 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
                 if (Model.ListZone.Count != 0)
				{

#line default
#line hidden
            BeginContext(373, 275, true);
            WriteLiteral(@"					<h2>Avaible zones</h2>
					<table class=""table"" id=""deviceEditTable"">

						<thead>
							<tr>
								<th scope=""col"" onclick=""check()"">#</th>
								<th scope=""col"">Name</th>
								<th scope=""col"">Active</th>
							</tr>
						</thead>
						<tbody>
");
            EndContext();
#line 31 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
                             for (int i = 1; i < Model.ListZone.Count + 1; i++)
							{

#line default
#line hidden
            BeginContext(718, 27, true);
            WriteLiteral("\t\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t\t<td>");
            EndContext();
            BeginContext(746, 1, false);
#line 34 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
                                   Write(i);

#line default
#line hidden
            EndContext();
            BeginContext(747, 20, true);
            WriteLiteral("</td>\r\n\t\t\t\t\t\t\t\t\t<td>");
            EndContext();
            BeginContext(768, 27, false);
#line 35 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
                                   Write(Model.ListZone[i - 1].Title);

#line default
#line hidden
            EndContext();
            BeginContext(795, 24, true);
            WriteLiteral("</td>\r\n\t\t\t\t\t\t\t\t\t<td>\r\n\r\n");
            EndContext();
#line 38 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
                                         if (Model.ActiveZones.Contains(Model.ListZone[i - 1].Id))
										{

#line default
#line hidden
            BeginContext(902, 17, true);
            WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t<input");
            EndContext();
            BeginWriteAttribute("id", " id=\"", 919, "\"", 949, 1);
#line 40 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
WriteAttributeValue("", 924, Model.ListZone[i - 1].Id, 924, 25, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(950, 29, true);
            WriteLiteral(" type=\"checkbox\" checked />\r\n");
            EndContext();
#line 41 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
										}
										else
										{

#line default
#line hidden
            BeginContext(1021, 17, true);
            WriteLiteral("\t\t\t\t\t\t\t\t\t\t\t<input");
            EndContext();
            BeginWriteAttribute("id", " id=\"", 1038, "\"", 1068, 1);
#line 44 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
WriteAttributeValue("", 1043, Model.ListZone[i - 1].Id, 1043, 25, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(1069, 21, true);
            WriteLiteral(" type=\"checkbox\" />\r\n");
            EndContext();
#line 45 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
										}

#line default
#line hidden
            BeginContext(1103, 33, true);
            WriteLiteral("\r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n");
            EndContext();
#line 49 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
							}

#line default
#line hidden
            BeginContext(1146, 35, true);
            WriteLiteral("\r\n\t\t\t\t\t\t</tbody>\r\n\r\n\t\t\t\t\t</table>\r\n");
            EndContext();
#line 54 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"

				}
				else
				{

#line default
#line hidden
            BeginContext(1207, 49, true);
            WriteLiteral("\t\t\t\t\t<h3>Looks like you have no zones yet.</h3>\r\n");
            EndContext();
#line 59 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
				}

#line default
#line hidden
            BeginContext(1263, 138, true);
            WriteLiteral("\t\t\t</div>\r\n\t\t\t<div class=\"col-md-3 col-sm-3 col-xs-12 bg-white\">\r\n\t\t\t\t<div class=\"x_title\">\r\n\t\t\t\t\t<h2>Edit device</h2>\r\n\t\t\t\t\t<br />\r\n\t\t\t\t\t");
            EndContext();
            BeginContext(1402, 76, false);
#line 65 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
               Write(Html.LabelFor(m => m.Model.Name, new { @class = "col-md-10 control-label" }));

#line default
#line hidden
            EndContext();
            BeginContext(1478, 38, true);
            WriteLiteral("\r\n\t\t\t\t\t<div class=\"col-md-10\">\r\n\t\t\t\t\t\t");
            EndContext();
            BeginContext(1517, 97, false);
#line 67 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
                   Write(Html.TextBoxFor(m => m.Model.Name, new { @class = "col-md-10 control-label", id = "nameDevice" }));

#line default
#line hidden
            EndContext();
            BeginContext(1614, 20, true);
            WriteLiteral("\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t");
            EndContext();
            BeginContext(1635, 85, false);
#line 69 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
               Write(Html.LabelFor(m => m.Model.Identificator, new { @class = "col-md-10 control-label" }));

#line default
#line hidden
            EndContext();
            BeginContext(1720, 38, true);
            WriteLiteral("\r\n\t\t\t\t\t<div class=\"col-md-10\">\r\n\t\t\t\t\t\t");
            EndContext();
            BeginContext(1759, 111, false);
#line 71 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
                   Write(Html.TextBoxFor(m => m.Model.Identificator, new { @class = "col-md-10 control-label", @readonly = "readonly" }));

#line default
#line hidden
            EndContext();
            BeginContext(1870, 55, true);
            WriteLiteral("\r\n\t\t\t\t\t</div>\r\n\r\n\r\n\t\t\t\t\t<div class=\"col-md-10\">\r\n\t\t\t\t\t\t");
            EndContext();
            BeginContext(1926, 88, false);
#line 76 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
                   Write(Html.LabelFor(m => m.Model.AlertEmail, htmlAttributes: new { @class = "control-label" }));

#line default
#line hidden
            EndContext();
            BeginContext(2014, 53, true);
            WriteLiteral("\r\n\t\t\t\t\t\t<div class=\"col-md-10 form-group\">\r\n\t\t\t\t\t\t\t\r\n");
            EndContext();
#line 79 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
                                 if (Model.Model.AlertEmail.Equals("True"))
								{

#line default
#line hidden
            BeginContext(2131, 43, true);
            WriteLiteral("\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" checked/>\r\n");
            EndContext();
#line 82 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"

								}
								else
								{

#line default
#line hidden
            BeginContext(2212, 36, true);
            WriteLiteral("\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" />\r\n");
            EndContext();
#line 87 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"

								}

#line default
#line hidden
            BeginContext(2261, 71, true);
            WriteLiteral("\t\t\t\t\t\t\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"col-md-10\">\r\n\t\t\t\t\t\t");
            EndContext();
            BeginContext(2333, 86, false);
#line 93 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
                   Write(Html.LabelFor(m => m.Model.AlertSMS, htmlAttributes: new { @class = "control-label" }));

#line default
#line hidden
            EndContext();
            BeginContext(2419, 44, true);
            WriteLiteral("\r\n\t\t\t\t\t\t<div class=\"col-md-10 form-group\">\r\n");
            EndContext();
#line 95 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
                                 if (Model.Model.AlertSMS.Equals("True"))
								{

#line default
#line hidden
            BeginContext(2525, 44, true);
            WriteLiteral("\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" checked />\r\n");
            EndContext();
#line 98 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"

								}
								else
								{

#line default
#line hidden
            BeginContext(2607, 45, true);
            WriteLiteral("\t\t\t\t\t\t\t\t\t<input id=\"sms\" type=\"checkbox\" />\r\n");
            EndContext();
#line 103 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"

								}

#line default
#line hidden
            BeginContext(2665, 133, true);
            WriteLiteral("\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\" col-md-10 btn-group\" role=\"group\" aria-label=\"Basic example\">\r\n\t\t\t\t\t\t<button id=\"save\"");
            EndContext();
            BeginWriteAttribute("value", " value=\"", 2798, "\"", 2821, 1);
#line 109 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Device\EditDevice.cshtml"
WriteAttributeValue("", 2806, Model.Model.Id, 2806, 15, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(2822, 104, true);
            WriteLiteral(" class=\"btn btn-info\">Save</button>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n\r\n\r\n");
            EndContext();
            BeginContext(2926, 84, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4450db1f3212465bb4965dd7bef878c2", async() => {
            }
            );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
        }
        #pragma warning restore 1998
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<PositioningWebApp.Pages.Home.Profile.EditDeviceModel> Html { get; private set; }
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<PositioningWebApp.Pages.Home.Profile.EditDeviceModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<PositioningWebApp.Pages.Home.Profile.EditDeviceModel>)PageContext?.ViewData;
        public PositioningWebApp.Pages.Home.Profile.EditDeviceModel Model => ViewData.Model;
    }
}
#pragma warning restore 1591
