<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_errorDetail.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_errorDetail" %>
<div class="card" style="width: 100%;">
    <h4 class="card-header py-1 bg-secondary text-light"><%: traduci("ErrorPage") %></h4>
    <div class="card-body py-1">
        <div class="row mt-3 mb-5">
            <div class="col-12">
                <h4>
                    <asp:Label runat="server" ID="lblErrorTitle" /></h4>
                <asp:Label runat="server" ID="lblErrorExpl" />
            </div>
        </div>
        <div class="row mb-2">
            <div class="col-12 col-lg-6">
                <b>Error log recorded</b><br />
                <asp:UpdatePanel runat="server" ID="upnlBCode" UpdateMode="Conditional" ChildrenAsTriggers="true">
                    <ContentTemplate>
                        <%--<asp:HyperLink runat="server" ID="hlElmah" NavigateUrl="~/elmah.axd" Target="_blank">detailed info</asp:HyperLink>
                (server access only).--%>
                        <%: traduci("RedirectingToHome") %>
                        <asp:Label runat="server" ID="lblCounter" Text="10" />
                        <asp:Timer runat="server" ID="timerRedirect" Interval="1000" OnTick="timerRedirect_Tick" />

                        <div class="d-flex">
                            <div class="progress w-100" style="height: 0.5em">
                                <div class="progress-bar progress-bar-striped progress-bar-animated" style='<%: timeAdv %>'></div>
                            </div>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <div class="col-12 col-lg-6">
                <asp:LinkButton runat="server" ID="lbtTryReset" CssClass="btn btn-success btn-block" OnClick="lbtTryReset_Click"><i class="fa fa-home" aria-hidden="true"></i> <%: traduci("TryReset") %> <i class="fa fa-refresh" aria-hidden="true"></i></asp:LinkButton>
            </div>
            <div class="col-12">
                <asp:UpdateProgress ID="UpdateProgressDisplay" runat="server">
                    <ProgressTemplate>
                        <div class="btn btn-lg btn-warning btn-block text-center textBig">
                            <i class="fa fa-download" aria-hidden="true"></i><%: traduci("TaskRunning") %> <i class="fa fa-circle-o-notch fa-spin" aria-hidden="true"></i>
                        </div>
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </div>
        </div>
    </div>
    <div class="card-footer">

        <div class="row">
            <div class="col-6 text-left">
                <b>User</b>:
                <asp:Label runat="server" ID="lblUserName" />
            </div>
            <div class="col-6 text-right">
                <b><%:traduci("LastError") %></b>: <%: LastErrorCode %>
            </div>
        </div>
    </div>
</div>
