<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="eDocument.Server.Administrator.User.Home"  MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <style>
        table {
            border: none;
        }
        td { 
            padding: 10px;
            border: none;
        }
        th {
            border: none;
        }
    </style>

    <h1 class="skjema-admin__page-title">
        Dashboard
    </h1>
    
    <div id="dashTop" runat="server" Visible="False">
        <div class="mb-4">
            <asp:HyperLink 
                runat="server" 
                ID="lnkSuperHome" 
                Visible="False" 
                NavigateUrl="~/User/HomeSuperUser.aspx" 
                Text="Gå til super-admin home">
            </asp:HyperLink>

            <a href="#">Last ned designer.</a>&nbsp;
            <a href="#">Last ned mottak.</a>
        </div>

        <div class="skjema-admin__mb-30 d-flex">
            <asp:TextBox CssClass="skjema-admin__form__input mr-3" runat="server" ID="txtSearch"></asp:TextBox>
            <asp:Button CssClass="skjema-admin__button skjema-admin__button--secondary" runat="server" id="btnSearch" Text="Søk" OnClick="btnSearch_OnClick"/>
        </div>
    </div>

    <asp:Panel runat="server">
        <div class="card-columns">
            <asp:Panel 
                id="pnlVapourCol"
                runat="server" 
                Visible="False"
                CssClass="card">
                <asp:Panel CssClass="skjema-admin__dashboard__panel" 
                    runat="server" 
                    ID="pnlVapour" 
                    Height="100%" 
                    Visible="False">

                    <div class="skjema-admin__dashboard__panel-title-container">
                        <h3 class="skjema-admin__dashboard__panel-title">
                            Mottak
                        </h3>

                        <asp:Panel 
                            runat="server"
                            ID="pnlVapourStatus" 
                            CssClass="skjema-admin__dashboard__status-icon">
                        </asp:Panel>
                    </div>
                    
                    <div class="skjema-admin__dashboard__exclamation-sentence" runat="server" id="divVapourError" Visible="False">
                        <span class="skjema-admin__dashboard__exclamation">
                            !
                        </span>
                        <span class="skjema-admin__dashboard__exclamation-text">
                            <asp:Label runat="server" id="lblVapourErrorMessage" /> 
                        </span>
                    </div>

                    <div class="skjema-admin__mb-30" runat="server" id="divVapourOk">
                        <asp:Label runat="server" id="lblVapourOkMessage" /> 
                    </div>

                    <asp:HyperLink 
                        class="skjema-admin__dashboard__arrow-anchor"
                        runat="server" 
                        NavigateUrl="~/VapourClients/List.aspx">
                        Innstillinger for mottak
                    </asp:HyperLink>
                </asp:Panel>
            </asp:Panel>

            <asp:Panel 
                ID="pnlAbortedCol" 
                runat="server" 
                Visible="False"
                CssClass="card">
                <asp:Panel 
                    runat="server" 
                    ID="pnlAborted" 
                    CssClass="skjema-admin__dashboard__panel" 
                    Visible="False">

                    <div class="skjema-admin__dashboard__panel-title-container">
                        <h3 class="skjema-admin__dashboard__panel-title">
                            Innsendinger med feil
                        </h3>

                        <asp:Panel 
                            runat="server"
                            ID="pnlAbortedStatus" 
                            CssClass="skjema-admin__dashboard__status-icon">
                        </asp:Panel>
                    </div>

                    <div class="skjema-admin__mb-30">
                        <asp:Label runat="server" id="lblNoAbortedMessage" />
                    </div>
                    
                    <div class="skjema-admin__dashboard__exclamation-sentence mb-4" runat="server" id="divAbortedExists" Visible="False">
                        <span class="skjema-admin__dashboard__exclamation">
                            !
                        </span>
                        <span class="skjema-admin__dashboard__exclamation-text">
                            <asp:Label runat="server" id="lblAbortedExists" /> 
                        </span>
                    </div>

                    <asp:Panel runat="server" ID="lnkGotoAbortedPanel" CssClass="d-flex align-items-center" Visible="false">
                        <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>
                        <asp:HyperLink 
                            id="lnkGotoAborted" 
                            class="skjema-admin__dashboard__arrow-anchor"
                            Visible="False" 
                            runat="server" 
                            NavigateUrl="~/AbortedProcess/List.aspx">
                            Se innsendinger med feil
                        </asp:HyperLink>
                    </asp:Panel>

                    <asp:Panel 
                        runat="server" 
                        ID="lnkGotoMissingPanel" 
                        CssClass="d-flex align-items-center"
                        Visible="false">

                        <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>

                        <asp:HyperLink 
                            id="lnkGotoMissing"
                            class="skjema-admin__dashboard__arrow-anchor"
                            Visible="False" 
                            runat="server" 
                            NavigateUrl="~/InstanceWithNoProcess/List.aspx">
                            Se innsendinger med mangler
                        </asp:HyperLink>
                    </asp:Panel>
                </asp:Panel>
            </asp:Panel>

            <asp:Panel 
                id="pnlTemplatesCol"
                runat="server" 
                Visible="False"
                CssClass="card">
                <asp:Panel 
                    runat="server" 
                    CssClass="skjema-admin__dashboard__panel" 
                    ID="pnlTemplates" 
                    Visible="False">

                    <div class="skjema-admin__dashboard__panel-title-container">
                        <h3 class="skjema-admin__dashboard__panel-title">
                            Skjema
                        </h3>

                        <asp:Panel 
                            runat="server"
                            ID="pnlTemplatesStatus" 
                            CssClass="skjema-admin__dashboard__status-icon">
                        </asp:Panel>
                    </div>

                    <asp:Panel runat="server" ID="pnlHasTemplates" Visible="False">
                        <div class="skjema-admin__mb-20">
                            Antall aktiverte skjema: <b><asp:Label runat="server" id="lblTotalActiveTemplateCount" /></b>
                        </div>

<%--                        <div class="skjema-admin__mb-20">
                            <asp:Label runat="server" id="lblOwnTemplatesCount" />
                        </div>
                        
                        <div class="skjema-admin__mb-20">
                            <asp:Label runat="server" id="lblSubscribedTemplatesCount" />
                        </div>--%>
                        
                        <div class="skjema-admin__mb-20">
                            <asp:Label runat="server" id="lblTemplateOk" />
                        </div>
                        
                        <div class="skjema-admin__dashboard__exclamation-sentence" runat="server" id="divTemplateMissingProcessing" Visible="False">
                            <span class="skjema-admin__dashboard__exclamation">
                                !
                            </span>
                            <span class="skjema-admin__dashboard__exclamation-text">
                                <asp:Label runat="server" id="lblTemplatesMissingProcessingError" />
                            </span>
                        </div>
                        
                        <div class="skjema-admin__dashboard__exclamation-sentence" runat="server" id="divTemplateMissingValues" Visible="False">
                            <span class="skjema-admin__dashboard__exclamation">
                                !
                            </span>
                            <span class="skjema-admin__dashboard__exclamation-text">
                                <asp:Label runat="server" id="lblTemplatesMissingValuesError" />
                            </span>
                        </div>

                        <div class="d-flex align-items-center">
                            <br/>
                            <br/>
                            <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>
                            <asp:HyperLink 
                                runat="server" 
                                class="skjema-admin__dashboard__arrow-anchor"
                                NavigateUrl="~/eDocumentTemplate/List.aspx">
                                Se skjemaoversikt
                            </asp:HyperLink>
                        </div>
                    </asp:Panel>

                    <asp:Panel runat="server" id="pnlNoTemplates" Visible="False">
                        <div class="skjema-admin__mb-30">
                            Ingen skjema er koblet opp.
                        </div>
                        
                        <div class="skjema-admin__mb-20">
                            <div class="d-flex align-items-center">
                                <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>
                                <asp:HyperLink 
                                    class="skjema-admin__dashboard__arrow-anchor"
                                    runat="server" 
                                    NavigateUrl="~/eDocumentTemplate/Create.aspx">
                                    Opprett skjema
                                </asp:HyperLink>
                            </div>
                        </div>

                        <div>
                            <div class="d-flex align-items-center">
                                <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>
                                <asp:HyperLink 
                                    class="skjema-admin__dashboard__arrow-anchor"
                                    runat="server" 
                                    NavigateUrl="~/Subscription/Find.aspx">
                                    Finn skjema
                                </asp:HyperLink>
                            </div>
                        </div>
                        <%--<asp:HyperLink runat="server" NavigateUrl="~/eDocumentTemplate/Create.aspx">Last ned designer</asp:HyperLink>--%>
                    </asp:Panel>

                    <asp:Panel runat="server" id="pnlNoActiveTemplates" Visible="False">
                        <div class="skjema-admin__mb-30">
                            Ingen skjema er aktive.
                        </div>
              
                        <div class="d-flex align-items-center">
                            <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>
                            <asp:HyperLink 
                                class="skjema-admin__dashboard__arrow-anchor"
                                runat="server" 
                                NavigateUrl="~/eDocumentTemplate/List.aspx">
                                Gå til skjema
                            </asp:HyperLink>
                        </div>
                        <%--<asp:HyperLink runat="server" NavigateUrl="~/eDocumentTemplate/Create.aspx">Last ned designer</asp:HyperLink>--%>
                    </asp:Panel>
                </asp:Panel>
            </asp:Panel>

            <asp:Panel 
                ID="pnlGdprCol"
                runat="server" 
                Visible="False"
                CssClass="card">

                <asp:Panel 
                    runat="server" 
                    CssClass="skjema-admin__dashboard__panel" 
                    ID="pnlGdpr"  
                    Visible="False">

                    <div class="skjema-admin__dashboard__panel-title-container">
                        <h3 class="skjema-admin__dashboard__panel-title">
                            GDPR
                        </h3>

                        <asp:Panel 
                            runat="server"
                            ID="pnlGdprStatus" 
                            CssClass="skjema-admin__dashboard__status-icon">
                        </asp:Panel>
                    </div>
                            
                    <table class="skjema-admin__mb-30" border="1px">
                        <tr>
                            <td>
                                Lagrede skjema slettes etter:
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblGdprSaved"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Innsendte skjema slettes etter:
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblGdprSubmitted"/>
                            </td>
                        </tr>
                    </table>

        <%--                            <h4>Kryptering</h4>
                    <ul>
                        <li>
                            <asp:Label runat="server" id="lblEncryptedSavedMessage"></asp:Label>
                        </li>
                        <li>
                            <asp:Label runat="server" id="lblEncryptedSubmittedMessage"></asp:Label>
                        </li>
                    </ul>
                    <h4>Sletting</h4>
                    <ul>
                        <li>
                            <asp:Label runat="server" id="lblDeletedSavedMessage"></asp:Label>
                        </li>
                        <li>
                            <asp:Label runat="server" id="lblDeletedSubmittedMessage"></asp:Label>
                        </li>
                    </ul>--%>

                    <div class="d-flex align-items-center">
                        <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>
                        <asp:HyperLink 
                            id="lnkEditDeleteProfile" 
                            class="skjema-admin__dashboard__arrow-anchor"
                            Visible="True" 
                            runat="server" 
                            NavigateUrl="~/Consumer/DeleteProfile.aspx">
                            Rediger sletteprofil
                        </asp:HyperLink>
                    </div>
                </asp:Panel>
            </asp:Panel>

            <asp:Panel 
                runat="server" 
                ID="pnlInstancesStatCol"
                Visible="False"
                CssClass="card">

                <asp:Panel 
                    runat="server" 
                    CssClass="skjema-admin__dashboard__panel"
                    ID="pnlInstancesStat"  
                    Visible="False">

                    <div class="skjema-admin__dashboard__panel-title-container">
                        <h3 class="skjema-admin__dashboard__panel-title">
                            Innsendinger siste 30 dager
                        </h3>

                        <asp:Panel 
                            runat="server"
                            ID="pnlInstancesStatStatus" 
                            CssClass="skjema-admin__dashboard__status-icon">
                        </asp:Panel>
                    </div>

                    <div class="skjema-admin__mb-30">
                        <asp:Label runat="server" ID="lblSubmittedLastThirtyDaysCount"></asp:Label>
                    </div>

                    <asp:GridView 
                        AutoGenerateColumns="False" 
                        runat="server" 
                        CssClass="skjema-admin__mb-20"
                        id="gridSubmittedPerTemplate">
                        <Columns>
                            <asp:HyperLinkField Visible="True" DataNavigateUrlFormatString="~/eDocumentTemplate/Edit.aspx?eDocumentTemplateID={0}"
                                                DataNavigateUrlFields="TemplateId" HeaderText="Skjema" DataTextField="TemplateName" />
                            <asp:BoundField Visible="True" DataField="InstanceCount" HeaderText="Antall"></asp:BoundField>
                        </Columns>
                    </asp:GridView>
                    
                    <div class="skjema-admin__mb-30">
                        <asp:Label runat="server" id="lblSubmittedLastThirtyDaysClippedMessage" Visible="True"></asp:Label>
                    </div>
                    
                    <div class="d-flex align-items-center">
                        <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>
                        <asp:HyperLink 
                            Visible="True" 
                            runat="server" 
                            class="skjema-admin__dashboard__arrow-anchor"
                            NavigateUrl="~/Tjenestetorget.Administrator/Search.aspx">
                            Se fullstendig oversikt i rapporter
                        </asp:HyperLink>
                    </div>
                </asp:Panel>
            </asp:Panel>

            <asp:Panel 
                ID="pnlOrganizationCol"
                runat="server" 
                Visible="False"
                CssClass="card">

                <asp:Panel 
                    runat="server" 
                    CssClass="skjema-admin__dashboard__panel"
                    ID="pnlOrganization"  
                    Visible="False">

                    <div class="skjema-admin__dashboard__panel-title-container">
                        <h3 class="skjema-admin__dashboard__panel-title">
                            Organisasjon og brukere
                        </h3>

                        <asp:Panel 
                            runat="server"
                            ID="pnlOrganizationStatus" 
                            CssClass="skjema-admin__dashboard__status-icon">
                        </asp:Panel>
                    </div>

                    <div class="skjema-admin__mb-20">
                        <asp:Label runat="server" id="lblActiveUsers"></asp:Label>
                    </div>
                    
                    <div class="skjema-admin__dashboard__exclamation-sentence" runat="server" Visible="False" id="divPendingInvitations">
                        <span class="skjema-admin__dashboard__exclamation">
                            !
                        </span>
                        <span class="skjema-admin__dashboard__exclamation-text">
                            <asp:Label runat="server" id="lblPendingInvitations"></asp:Label>
                        </span>
                        <br/>
                        <br/>
                    </div>

                    <asp:Panel 
                        runat="server"
                        Visible="True" 
                        ID="lnkGotoPendingInvitationsWrapper"
                        CssClass="d-flex align-items-center skjema-admin__mb-20">

                        <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>
                        <asp:HyperLink 
                            Visible="True" 
                            class="skjema-admin__dashboard__arrow-anchor"
                            ID="lnkGotoPendingInvitations" 
                            runat="server" 
                            NavigateUrl="~/Consumer/PendingInvitations.aspx">
                            Se invitasjoner og forespørsler
                        </asp:HyperLink>
                    </asp:Panel>

<%--                    <div class="d-flex align-items-center skjema-admin__mb-20">
                        <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>

                        <asp:HyperLink 
                            Visible="True" 
                            class="skjema-admin__dashboard__arrow-anchor"
                            ID="lnkGotoOrg" 
                            runat="server">
                            Gå til organisasjonsdetaljer
                        </asp:HyperLink>
                    </div>--%>

                    <div class="d-flex align-items-center skjema-admin__mb-20">
                        <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>
                        <asp:HyperLink 
                            Visible="True" 
                            ID="lnkGotoUsers" 
                            class="skjema-admin__dashboard__arrow-anchor"
                            runat="server" 
                            NavigateUrl="~/User/List.aspx">
                            Se brukere
                        </asp:HyperLink>
                    </div>
                    
                    <div class="d-flex align-items-center">
                        <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>
                        <asp:HyperLink 
                            Visible="True" 
                            ID="lnkInviteUser" 
                            class="skjema-admin__dashboard__arrow-anchor"
                            runat="server" 
                            NavigateUrl="~/User/Invite.aspx">
                            Inviter ny bruker
                        </asp:HyperLink>
                    </div>

                    <%--pending invitations--%>
                    <%--adresse satt--%>
                    <%--logo satt--%>
                </asp:Panel>
            </asp:Panel>

            <asp:Panel ID="pnlSettingsAndOptionsCol" runat="server" Visible="False" CssClass="card">
                <asp:Panel 
                    runat="server" 
                    CssClass="skjema-admin__dashboard__panel"
                    ID="pnlSettingsAndOptions"  
                    Visible="False">

                    <div class="skjema-admin__dashboard__panel-title-container">
                        <h3 class="skjema-admin__dashboard__panel-title">
                            Innstillinger og opsjoner
                        </h3>

                        <asp:Panel 
                            runat="server"
                            ID="pnlSettingsAndOptionsStatus" 
                            CssClass="skjema-admin__dashboard__status-icon">
                        </asp:Panel>
                    </div>
                    
                    <div class="skjema-admin__dashboard__exclamation-sentence" runat="server" id="divSettingsAndOptionsErrorAbortedMailNotSet" Visible="False">
                        <span class="skjema-admin__dashboard__exclamation">
                            !
                        </span>
                        <span class="skjema-admin__dashboard__exclamation-text">
                            E-postadresse for varsling ved avbrutte prosesser er ikke satt.
                        </span>
                    </div>
                    
                    <div class="skjema-admin__dashboard__exclamation-sentence" runat="server" id="divSettingsAndOptionsErrorLogoNotSet" Visible="False">
                        <span class="skjema-admin__dashboard__exclamation">
                            !
                        </span>
                        <span class="skjema-admin__dashboard__exclamation-text">
                            URL til logo er ikke satt.
                        </span>
                    </div>

                    <div class="skjema-admin__dashboard__exclamation-sentence" runat="server" id="divSettingsAndOptionsErrorSmtpNotSet" Visible="False">
                        <span class="skjema-admin__dashboard__exclamation">
                            !
                        </span>
                        <span class="skjema-admin__dashboard__exclamation-text">
                            E-postserver (SMTP) er ikke satt.
                        </span>
                    </div>

                    <div class="skjema-admin__mb-20" runat="server" id="divSettingsAndOptionsOk" Visible="False">
                        Alle nødvendige innstillinger er konfigurert.
                    </div>
                    
                    <br/>
                    <div class="d-flex align-items-center skjema-admin__mb-20">
                        <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>
                        <asp:HyperLink 
                            Visible="True" 
                            ID="HyperLink3" 
                            class="skjema-admin__dashboard__arrow-anchor"
                            runat="server" 
                            NavigateUrl="~/Consumer/SettingsAndOptions.aspx?return=~/User/Home.aspx">
                            Se innstillinger og opsjoner
                        </asp:HyperLink>
                    </div>
                </asp:Panel>
            </asp:Panel>

            <asp:Panel 
                ID="pnlTemplateRepositoryCol"
                runat="server" 
                CssClass="card" 
                Visible="False">

                <asp:Panel 
                    runat="server" 
                    CssClass="skjema-admin__dashboard__panel"
                    ID="pnlTemplateRepository"  
                    Visible="False">

                    <div class="skjema-admin__dashboard__panel-title-container">
                        <h3 class="skjema-admin__dashboard__panel-title">
                            Skjemakatalog
                        </h3>

                        <asp:Panel 
                            runat="server"
                            ID="pnlTemplateRepositoryStatus" 
                            CssClass="skjema-admin__dashboard__status-icon">
                        </asp:Panel>
                    </div>

                    <div class="skjema-admin__mb-20">
                        <asp:Label runat="server" ID="lblTemplateRepositoryInfo"></asp:Label>
                    </div>
                 
                    <div class="skjema-admin__mb-20">
                        <asp:Label runat="server" ID="lblSyncMessage"></asp:Label>
                    </div>
                
                    <div class="skjema-admin__mb-30">
                        <asp:Label runat="server" ID="lblSyncError"></asp:Label>
                    </div>
                 
                    <asp:LinkButton 
                        CssClass="skjema-admin__button skjema-admin__button--secondary"
                        OnClick="lnkSync_OnClick" 
                        Visible="True" 
                        ID="lnkSync" 
                        runat="server">
                        Kjør synkronisering
                    </asp:LinkButton>
                </asp:Panel>
            </asp:Panel>

            <asp:Panel 
                ID="pnlLicenseInfoCol"
                runat="server" 
                CssClass="card" 
                Visible="False">

                <asp:Panel 
                    runat="server" 
                    CssClass="skjema-admin__dashboard__panel"
                    ID="pnlLicenseInfo"  
                    Visible="False">

                    <div class="skjema-admin__dashboard__panel-title-container">
                        <h3 class="skjema-admin__dashboard__panel-title">
                            Lisens
                        </h3>

                        <asp:Panel 
                            runat="server"
                            ID="pnlLicenseInfoStatus" 
                            CssClass="skjema-admin__dashboard__status-icon">
                        </asp:Panel>
                    </div>

                    <div class="skjema-admin__mb-20">
                        <asp:Label id="lblLicenseMessage" runat="server"/>
                    </div>

                    <div class="skjema-admin__mb-30">
                        <asp:Label id="lblLicenseDetails" runat="server"/>
                    </div>

                    <%--lisens-type --%>
                    <%--limits, brukt kvote--%>
                    <%--link - oppgrader lisens --%>                           
                    <%--<asp:HyperLink Visible="True" ID="lnkSetNewLicense" runat="server" NavigateUrl="~/Consumer/UpdateLicense.aspx">Sett ny lisensnøkkel</asp:HyperLink><br/>--%>
                    
                    <asp:Panel ID="pnlEnterLicenseKey" runat="server" Visible="False">
                        Oppgi lisensnøkkel: <br/>
                        <asp:TextBox runat="server" id="txtEnterLicenseKey" Width="300px" /><br/>
                        <br/>
                        <div class="skjema-admin__mb-20">
                            <asp:Label runat="server" id="lblEnterLicenseKeyError" ForeColor="Red"></asp:Label>
                        </div>
                        <asp:Button runat="server" id="btnSaveLicenseKey" Text="OK" OnClick="btnSaveLicenseKey_OnClick" /><br/>
                    </asp:Panel>

                    <asp:Panel 
                        ID="lnkRequestNewLicenseWrapper"
                        runat="server" 
                        CssClass="d-flex align-items-center" 
                        Visible="False" >
                        <span class="budicon budicon-arrow-right skjema-admin__dashboard__arrow-icon"></span>
                        <asp:HyperLink 
                            Visible="False" 
                            class="skjema-admin__dashboard__arrow-anchor"
                            ID="lnkRequestNewLicense" 
                            runat="server" 
                            NavigateUrl="~/Consumer/RequestNewLicense.aspx">
                            Oppgrader lisens
                        </asp:HyperLink>
                    </asp:Panel>
                </asp:Panel>
            </asp:Panel>

            <asp:Panel runat="server">
                <asp:Panel runat="server" ID="pnlIntegrasjoner">
                    <%--idporten --%>
                    <%--brreg --%>
                    <%--dsf --%>
                </asp:Panel>
            </asp:Panel>
        </div>
    </asp:Panel>

    <asp:Panel ID="pnlConfirmSync" Visible="False" runat="server" CssClass="skjema-admin__modal" data-jscomponent="modal">
        <div class="skjema-admin__modal__window">

            <button class="skjema-admin__modal__close" type="button" data-jscomponent="modalClose"></button>

            <asp:Label CssClass="skjema-admin__page__label" Text="Synkronisering utført." runat="server" />

            <div>
                <asp:Button CssClass="skjema-admin__button skjema-admin__button--primary" runat="server" ID="btnConfirmSync" OnClick="btnConfirmSync_OnClick" Text="OK" />
            </div>
        </div>
    </asp:Panel>
    <asp:Panel ID="pnlSyncFailed" Visible="False" runat="server" CssClass="skjema-admin__modal" data-jscomponent="modal">
        <div class="skjema-admin__modal__window">

            <button class="skjema-admin__modal__close" type="button" data-jscomponent="modalClose"></button>

            <asp:Label CssClass="skjema-admin__page__label" ID="lblSyncErrorMessage" Text="" runat="server" />

            <div>
                <asp:Button CssClass="skjema-admin__button skjema-admin__button--primary" runat="server" ID="btnConfirmSyncFailed" OnClick="btnConfirmSyncFailed_OnClick" Text="OK" />
            </div>
        </div>
    </asp:Panel>
</asp:Content>