#pragma checksum "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2dc772d36a77e4379606ef55ccb69f1bbb79c7fc"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(PositioningWebApp.Pages.Home.Profile.Pages_Home_Profile_Profile), @"mvc.1.0.razor-page", @"/Pages/Home/Profile/Profile.cshtml")]
[assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(@"/Pages/Home/Profile/Profile.cshtml", typeof(PositioningWebApp.Pages.Home.Profile.Pages_Home_Profile_Profile), null)]
namespace PositioningWebApp.Pages.Home.Profile
{
    #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.RazorSourceChecksumAttribute(@"SHA1", @"2dc772d36a77e4379606ef55ccb69f1bbb79c7fc", @"/Pages/Home/Profile/Profile.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"d829c5a2c2b9104486fa2eb5a1f7aeaef29f88eb", @"/Pages/_ViewImports.cshtml")]
    public class Pages_Home_Profile_Profile : global::Microsoft.AspNetCore.Mvc.RazorPages.Page
    {
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-page-handler", "Save", 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("class", new global::Microsoft.AspNetCore.Html.HtmlString("btn btn-primary"), 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("method", "post", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_3 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("role", new global::Microsoft.AspNetCore.Html.HtmlString("form"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_4 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("class", new global::Microsoft.AspNetCore.Html.HtmlString("form-horizontal"), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_5 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("id", new global::Microsoft.AspNetCore.Html.HtmlString("profileForm"), 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.TagHelpers.FormTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper;
        private global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper;
        private global::Microsoft.AspNetCore.Mvc.TagHelpers.FormActionTagHelper __Microsoft_AspNetCore_Mvc_TagHelpers_FormActionTagHelper;
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
  
	ViewData["Title"] = "Profile";

#line default
#line hidden
            BeginContext(105, 135, true);
            WriteLiteral("\r\n<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<div class=\"row\">\r\n\t\r\n\t<div class=\"col-md-8\">\r\n\t\t");
            EndContext();
            BeginContext(240, 2818, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "57ca141d559c44f3b4e489ded3cf0fb4", async() => {
                BeginContext(313, 42, true);
                WriteLiteral("\r\n\t\t\t<div class=\"form-group hidden\">\r\n\t\t\t\t");
                EndContext();
                BeginContext(356, 75, false);
#line 19 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
           Write(Html.LabelFor(m => m.Profile.ID, new { @class = "col-md-2 control-label" }));

#line default
#line hidden
                EndContext();
                BeginContext(431, 36, true);
                WriteLiteral("\r\n\t\t\t\t<div class=\"col-md-10\">\r\n\t\t\t\t\t");
                EndContext();
                BeginContext(468, 77, false);
#line 21 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
               Write(Html.TextBoxFor(m => m.Profile.ID, new { @class = "col-md-2 control-label" }));

#line default
#line hidden
                EndContext();
                BeginContext(545, 58, true);
                WriteLiteral("\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t\t<div class=\"form-group\">\r\n\t\t\t\t");
                EndContext();
                BeginContext(604, 82, false);
#line 25 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
           Write(Html.LabelFor(m => m.Profile.FirstName, new { @class = "col-md-2 control-label" }));

#line default
#line hidden
                EndContext();
                BeginContext(686, 36, true);
                WriteLiteral("\r\n\t\t\t\t<div class=\"col-md-10\">\r\n\t\t\t\t\t");
                EndContext();
                BeginContext(723, 98, false);
#line 27 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
               Write(Html.TextBoxFor(m => m.Profile.FirstName, new { @class = "form-control", @readonly = "readonly" }));

#line default
#line hidden
                EndContext();
                BeginContext(821, 7, true);
                WriteLiteral("\r\n\t\t\t\t\t");
                EndContext();
                BeginContext(829, 87, false);
#line 28 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
               Write(Html.ValidationMessageFor(m => m.Profile.FirstName, "", new { @class = "text-danger" }));

#line default
#line hidden
                EndContext();
                BeginContext(916, 60, true);
                WriteLiteral("\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class=\"form-group\">\r\n\t\t\t\t");
                EndContext();
                BeginContext(977, 80, false);
#line 33 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
           Write(Html.LabelFor(m => m.Profile.Surname, new { @class = "col-md-2 control-label" }));

#line default
#line hidden
                EndContext();
                BeginContext(1057, 36, true);
                WriteLiteral("\r\n\t\t\t\t<div class=\"col-md-10\">\r\n\t\t\t\t\t");
                EndContext();
                BeginContext(1094, 96, false);
#line 35 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
               Write(Html.TextBoxFor(m => m.Profile.Surname, new { @class = "form-control", @readonly = "readonly" }));

#line default
#line hidden
                EndContext();
                BeginContext(1190, 7, true);
                WriteLiteral("\r\n\t\t\t\t\t");
                EndContext();
                BeginContext(1198, 85, false);
#line 36 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
               Write(Html.ValidationMessageFor(m => m.Profile.Surname, "", new { @class = "text-danger" }));

#line default
#line hidden
                EndContext();
                BeginContext(1283, 60, true);
                WriteLiteral("\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class=\"form-group\">\r\n\t\t\t\t");
                EndContext();
                BeginContext(1344, 78, false);
#line 41 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
           Write(Html.LabelFor(m => m.Profile.Email, new { @class = "col-md-2 control-label" }));

#line default
#line hidden
                EndContext();
                BeginContext(1422, 36, true);
                WriteLiteral("\r\n\t\t\t\t<div class=\"col-md-10\">\r\n\t\t\t\t\t");
                EndContext();
                BeginContext(1459, 94, false);
#line 43 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
               Write(Html.TextBoxFor(m => m.Profile.Email, new { @class = "form-control", @readonly = "readonly" }));

#line default
#line hidden
                EndContext();
                BeginContext(1553, 7, true);
                WriteLiteral("\r\n\t\t\t\t\t");
                EndContext();
                BeginContext(1561, 83, false);
#line 44 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
               Write(Html.ValidationMessageFor(m => m.Profile.Email, "", new { @class = "text-danger" }));

#line default
#line hidden
                EndContext();
                BeginContext(1644, 60, true);
                WriteLiteral("\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class=\"form-group\">\r\n\t\t\t\t");
                EndContext();
                BeginContext(1705, 78, false);
#line 49 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
           Write(Html.LabelFor(m => m.Profile.Phone, new { @class = "col-md-2 control-label" }));

#line default
#line hidden
                EndContext();
                BeginContext(1783, 36, true);
                WriteLiteral("\r\n\t\t\t\t<div class=\"col-md-10\">\r\n\t\t\t\t\t");
                EndContext();
                BeginContext(1820, 94, false);
#line 51 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
               Write(Html.TextBoxFor(m => m.Profile.Phone, new { @class = "form-control", @readonly = "readonly" }));

#line default
#line hidden
                EndContext();
                BeginContext(1914, 7, true);
                WriteLiteral("\r\n\t\t\t\t\t");
                EndContext();
                BeginContext(1922, 83, false);
#line 52 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
               Write(Html.ValidationMessageFor(m => m.Profile.Phone, "", new { @class = "text-danger" }));

#line default
#line hidden
                EndContext();
                BeginContext(2005, 101, true);
                WriteLiteral("\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class=\"hidden\" id=\"password\">\r\n\t\t\t\t<div class=\"form-group\">\r\n\t\t\t\t\t");
                EndContext();
                BeginContext(2107, 81, false);
#line 58 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
               Write(Html.LabelFor(m => m.Profile.Password, new { @class = "col-md-2 control-label" }));

#line default
#line hidden
                EndContext();
                BeginContext(2188, 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(2227, 98, false);
#line 60 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
                   Write(Html.PasswordFor(m => m.Profile.Password, new { @class = "form-control", @readonly = "readonly" }));

#line default
#line hidden
                EndContext();
                BeginContext(2325, 8, true);
                WriteLiteral("\r\n\t\t\t\t\t\t");
                EndContext();
                BeginContext(2334, 86, false);
#line 61 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
                   Write(Html.ValidationMessageFor(m => m.Profile.Password, "", new { @class = "text-danger" }));

#line default
#line hidden
                EndContext();
                BeginContext(2420, 64, true);
                WriteLiteral("\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div class=\"form-group\">\r\n\t\t\t\t\t");
                EndContext();
                BeginContext(2485, 82, false);
#line 66 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
               Write(Html.LabelFor(m => m.Profile.Password2, new { @class = "col-md-2 control-label" }));

#line default
#line hidden
                EndContext();
                BeginContext(2567, 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(2606, 99, false);
#line 68 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
                   Write(Html.PasswordFor(m => m.Profile.Password2, new { @class = "form-control", @readonly = "readonly" }));

#line default
#line hidden
                EndContext();
                BeginContext(2705, 8, true);
                WriteLiteral("\r\n\t\t\t\t\t\t");
                EndContext();
                BeginContext(2714, 87, false);
#line 69 "C:\Users\Martin\Documents\diplomaproject\PositioningWebApp\PositioningWebApp\Pages\Home\Profile\Profile.cshtml"
                   Write(Html.ValidationMessageFor(m => m.Profile.Password2, "", new { @class = "text-danger" }));

#line default
#line hidden
                EndContext();
                BeginContext(2801, 144, true);
                WriteLiteral("\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class=\"form-group hidden\" id=\"bSaveChanges\">\r\n\t\t\t\t<div class=\"col-md-offset-2 col-md-10\">\r\n\t\t\t\t\t");
                EndContext();
                BeginContext(2945, 77, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7c46f263b5784882bd9eccc623a84b4e", async() => {
                    BeginContext(3001, 12, true);
                    WriteLiteral("Save Changes");
                    EndContext();
                }
                );
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormActionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.FormActionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormActionTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormActionTagHelper.PageHandler = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(3022, 29, true);
                WriteLiteral("\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</div>\r\n\t\t");
                EndContext();
            }
            );
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(3058, 1004, true);
            WriteLiteral(@"
		<div class=""btn-group"" role=""group"" aria-label=""Basic example"">
			<button class=""btn btn-info"" id=""btnPassword"" onclick=""clickFunction()"">
				Change password
			</button>
			<button class=""btn btn-info"" onclick=""editProfile()"">Edit</button>
		</div>
		
	</div>
</div>

<script type=""text/javascript"">
	$(document).ready(function () {
		$(""#partID"").text(""Profile"");
		$(""#sectionID"").text(""Edit profile"");
	})

	function clickFunction() {
		if (document.getElementById(""password"").hasAttribute(""class"")) {
			document.getElementById(""password"").removeAttribute(""class"");
		} else {
			document.getElementById(""password"").setAttribute(""class"", ""hidden"");
		}
	}

	function editProfile() {
		$(""form#profileForm :input"").each(function () {
			let input = $(this);
			input.attr('readonly', false);
			
		});
		document.getElementById(""bSaveChanges"").removeAttribute(""class"");
		document.getElementById(""bSaveChanges"").setAttribute(""class"", ""form-group"");
	}
</script>");
            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.ProfileModel> Html { get; private set; }
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<PositioningWebApp.Pages.Home.Profile.ProfileModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<PositioningWebApp.Pages.Home.Profile.ProfileModel>)PageContext?.ViewData;
        public PositioningWebApp.Pages.Home.Profile.ProfileModel Model => ViewData.Model;
    }
}
#pragma warning restore 1591
