#pragma checksum "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "70491074044089a802a9cffaf0abdd02c5c6e0d4"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home_DeleteStation), @"mvc.1.0.view", @"/Views/Home/DeleteStation.cshtml")]
namespace AspNetCore
{
    #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;
#nullable restore
#line 1 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\_ViewImports.cshtml"
using MeteoWebApp;

#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\_ViewImports.cshtml"
using MeteoWebApp.Models;

#line default
#line hidden
#nullable disable
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"70491074044089a802a9cffaf0abdd02c5c6e0d4", @"/Views/Home/DeleteStation.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c7d9dcd9f7e5caf74659f6b7850561373116a8e8", @"/Views/_ViewImports.cshtml")]
    public class Views_Home_DeleteStation : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<Tuple<Station, Measurement>>
    {
        private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("method", "post", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
        #line hidden
        #pragma warning disable 0649
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
        #pragma warning restore 0649
        private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner();
        #pragma warning disable 0169
        private string __tagHelperStringValueBuffer;
        #pragma warning restore 0169
        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;
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            WriteLiteral("\r\n");
#nullable restore
#line 3 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
  
    ViewData["Title"] = "Odstranit stanici";

#line default
#line hidden
#nullable disable
            WriteLiteral(@"<h2>Odstranění stanice</h2>
<p>Změny jsou nevratné, potvrďte vymazání stanice a veškerých záznamů.</p>

<div class=""text-center"">
<div class=""row row-cols-1 py-2"">
        <div class=""col-lg-8"">
            <div class=""card h-100 overflow-hidden text-black rounded-5 shadow-lg bg-light bg-opacity-10"">
                <div class=""d-flex flex-column h-100 text-shadow-1"">
                    ");
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "70491074044089a802a9cffaf0abdd02c5c6e0d44269", async() => {
                WriteLiteral(" \r\n                        <div class=\"row\">    \r\n\t\t\t                <div class=\"col-12 text-center\">      \r\n                                <h4>Odstranit meteostanici: ");
#nullable restore
#line 17 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                                       Write(Model.Item1.Name);

#line default
#line hidden
#nullable disable
                WriteLiteral(@"</h4>
                            </div>
  			            </div>
                        <div class=""row row-col-2 "">    
			                <div class=""col-5 text-right"">      
                                Status:        
                            </div>
");
#nullable restore
#line 24 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                  
                                    DateTime ActualTime2 = DateTime.Now;
                                    if(Model.Item2 != null)
                                    {
                                        TimeSpan Interval = ActualTime2 - (DateTime)Model.Item2.Timestamp;
                                        if (Interval.TotalMinutes  <= 30 )
                                        {

#line default
#line hidden
#nullable disable
                WriteLiteral("\t                                        <div class=\"col-7 text-left\" style=\"color:green\">     \r\n                                                Aktivní\r\n                                            </div>\r\n");
#nullable restore
#line 34 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                        }
                                        else if (Interval.TotalMinutes <= 60 )
                                        {

#line default
#line hidden
#nullable disable
                WriteLiteral("                                            <div class=\"col-7 text-left\" style=\"color:orange\">     \r\n                                                Neaktivní ");
#nullable restore
#line 38 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                                     Write(Convert.ToInt32(Interval.TotalMinutes));

#line default
#line hidden
#nullable disable
                WriteLiteral(" minut\r\n                                            </div>\r\n");
#nullable restore
#line 40 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                        }
                                        else
                                        {

#line default
#line hidden
#nullable disable
                WriteLiteral("                                            <div class=\"col-7 text-left\" style=\"color:red\">     \r\n                                                Neaktivní ");
#nullable restore
#line 44 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                                     Write(Convert.ToInt32(Interval.TotalHours));

#line default
#line hidden
#nullable disable
                WriteLiteral(" hodin\r\n                                            </div>\r\n");
#nullable restore
#line 46 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                        }
                                    }
                                    else
                                    {

#line default
#line hidden
#nullable disable
                WriteLiteral("                                        <div class=\"col-7 text-left\" style=\"color:red\">     \r\n                                            Neaktivováno\r\n                                        </div>\r\n");
#nullable restore
#line 53 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                    }
                                 

#line default
#line hidden
#nullable disable
                WriteLiteral("  \t\t\t                \r\n\t\t\t                <div class=\"col-5 text-right\">      \r\n                                Poslední aktualizace:      \r\n                            </div>\r\n");
#nullable restore
#line 59 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                              
                                if(Model.Item2 != null)
                                {
                                    TimeSpan Interval = ActualTime2 - (DateTime)Model.Item2.Timestamp;
                                    if (Interval.TotalMinutes  <= 30 )
                                    {

#line default
#line hidden
#nullable disable
                WriteLiteral("                                        <div class=\"col-7 text-left\" style=\"color:green\">\r\n                                            ");
#nullable restore
#line 66 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                       Write(Model.Item2.Timestamp);

#line default
#line hidden
#nullable disable
                WriteLiteral("\r\n                                        </div>\r\n");
#nullable restore
#line 68 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                    }
                                    else if (Interval.TotalMinutes <= 60 )
                                    {

#line default
#line hidden
#nullable disable
                WriteLiteral("                                        <div class=\"col-7 text-left\" style=\"color:orange\">\r\n                                            ");
#nullable restore
#line 72 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                       Write(Model.Item2.Timestamp);

#line default
#line hidden
#nullable disable
                WriteLiteral("\r\n                                        </div>\r\n");
#nullable restore
#line 74 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                    }
                                    else
                                    {

#line default
#line hidden
#nullable disable
                WriteLiteral("                                        <div class=\"col-7 text-left\" style=\"color:red\">\r\n                                            ");
#nullable restore
#line 78 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                       Write(Model.Item2.Timestamp);

#line default
#line hidden
#nullable disable
                WriteLiteral("\r\n                                        </div>\r\n");
#nullable restore
#line 80 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                    }
                                }
                                else
                                {

#line default
#line hidden
#nullable disable
                WriteLiteral("                                    <div class=\"col-7 text-left\" style=\"color:red\">     \r\n                                        Neaktivováno\r\n                                    </div>\r\n");
#nullable restore
#line 87 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                    }
                                

#line default
#line hidden
#nullable disable
                WriteLiteral("\r\n                                <div class=\"col-5 text-right\">      \r\n                                    Baterie:       \r\n                                </div>\r\n");
#nullable restore
#line 93 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                      
                                        if(Model.Item2 != null)
                                        {
                                            float voltage = @Model.Item2.BatteryVoltage;
                                            

#line default
#line hidden
#nullable disable
                WriteLiteral("<div class=\"col-7 text-left\"> \r\n                                            ");
#nullable restore
#line 98 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                       Write(voltage);

#line default
#line hidden
#nullable disable
                WriteLiteral(" V\r\n                                            </div>\r\n");
#nullable restore
#line 100 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                        }
                                        else
                                        {

#line default
#line hidden
#nullable disable
                WriteLiteral("                                            <div class=\"col-7 text-left\">     \r\n                                                Neaktivováno\r\n                                            </div>\r\n");
#nullable restore
#line 106 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                        }
                                    

#line default
#line hidden
#nullable disable
                WriteLiteral(@"  			               
			                <div class=""col-5 pb-2 text-right"">      
                                GPS - Zeměpisná šířka:      
                            </div>
   				            <div class=""col-7  text-left"">     
                                ");
#nullable restore
#line 113 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                           Write(Model.Item1.GpsLatitude);

#line default
#line hidden
#nullable disable
                WriteLiteral(@"
                            </div>

                            <div class=""col-5 pb-2 text-right"">      
                                GPS - Zeměpisná délka:      
                            </div>
   				            <div class=""col-7  text-left"">     
                                ");
#nullable restore
#line 120 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                           Write(Model.Item1.GpsLongitude);

#line default
#line hidden
#nullable disable
                WriteLiteral(@"
                            </div>
  			              
                            <div class=""col-5 pb-2 text-right"">      
                                Výchozí stanice:      
                            </div>
   				            <div class=""col-7 pb-2 text-left"">     
");
#nullable restore
#line 127 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                  
                                    if (@Model.Item1.Default)
                                    {
                                        

#line default
#line hidden
#nullable disable
                WriteLiteral("Ano");
#nullable restore
#line 130 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                                        
                                    }
                                    else
                                    {
                                        

#line default
#line hidden
#nullable disable
                WriteLiteral("Ne");
#nullable restore
#line 134 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
                                                       
                                    }
                                

#line default
#line hidden
#nullable disable
                WriteLiteral("                            </div>\r\n  \t\t\t               \r\n\t\t\t                <div class=\"col-6 pt-2 pb-2 text-center\">      \r\n                                <input class=\"btn btn-danger\" type=\"submit\"  value=\"Odstranit\"");
                BeginWriteAttribute("formaction", " formaction=\"", 7240, "\"", 7299, 2);
                WriteAttributeValue("", 7253, "DeleteStation?stationId=", 7253, 24, true);
#nullable restore
#line 140 "F:\VUT\Magistr\ZAV-PRACE\dot_net_project\MeteoWebApp\MeteoWebApp\Views\Home\DeleteStation.cshtml"
WriteAttributeValue("", 7277, Model.Item1.StationId, 7277, 22, false);

#line default
#line hidden
#nullable disable
                EndWriteAttribute();
                WriteLiteral(@">      
                            </div>
   				            <div class=""col-6 pt-2 pb-2 text-center"">     
                                <input class=""btn btn-success"" type=""submit"" value=""Ponechat"" formaction=""Settings"">
                            </div>
  			            </div>
                    ");
            }
            );
            __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_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            WriteLiteral("\r\n                </div>\r\n  \t        </div>\r\n        </div>\r\n    </div>\r\n\r\n</div>");
        }
        #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<Tuple<Station, Measurement>> Html { get; private set; }
    }
}
#pragma warning restore 1591
