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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <h1 class="skjema-admin__page-title">
        Behandle forespørsel om tilgang for bruker
    </h1>
        
    <div id="divMaxUsers" runat="server" Visible="False" style="color:red">
        <asp:Label runat="server" id="lblMaxAdminUsersReached">Du har nådd maksimalt antall brukere for denne lisensen:</asp:Label> <asp:Label runat="server" ID="lblMaxUserCount"></asp:Label>&nbsp;<asp:HyperLink runat="server" NavigateUrl="~/Consumer/RequestNewLicense.aspx?focus=quota-adminusers">Gå hit for å be om endringer i lisensen.</asp:HyperLink><br/>
        <br/>
    </div>    
    <br/>
    <div class="skjema-admin__page__field">
        <label class="skjema-admin__page__label">
            E-post
        </label>

        <asp:Label
            id="lblEmail" 
            CssClass="skjema-admin__page__text"
            runat="server" 
            MaxLength="300">
        </asp:Label>
    </div>
        
    <div class="skjema-admin__page__field">
        <label class="skjema-admin__page__label">
            Rettigheter
        </label>

        <asp:CheckBox CssClass="skjema-admin__page__tick" runat="server" id="chkSuper" Text="Super-bruker"/><br/>
        <asp:CheckBox CssClass="skjema-admin__page__tick" runat="server" id="chkDesigner" Text="Skjema-redaktør"/><br/>
        <asp:CheckBox CssClass="skjema-admin__page__tick" runat="server" id="chkFeltverdier" Text="Feltverdier"/><br/>
        <asp:CheckBox CssClass="skjema-admin__page__tick" runat="server" id="chkIntegration" Text="Integrasjon og drift"/><br/>
        <asp:CheckBox CssClass="skjema-admin__page__tick" runat="server" id="chkCase" Text="Saksbehandler"/><br/>
        
        <asp:Label runat="server" ID="lblRequireChecks" ForeColor="Red" Visible="False" Text="Du må velge minst én rettighet fra listen."></asp:Label>
    </div>
    
    <asp:button 
        id="btnReject" 
        runat="server" 
        CssClass="skjema-admin__button skjema-admin__button--primary"
        Text="Avslå forespørsel om invitasjon" 
        onclick="btnReject_Click">
    </asp:button>    
    
    <br/>
    <br/>

    <asp:button 
        id="btnAccept" 
        runat="server" 
        CssClass="skjema-admin__button skjema-admin__button--primary"
        Text="Aksepter forespørsel om invitasjon" 
        onclick="btnAccept_Click">
    </asp:button>
    
    <br/>
    <asp:Label runat="server" ID="lblInviteStatus"></asp:Label>
    <asp:HyperLink runat="server" id="lnkLicenseCase" Visible="False" NavigateUrl="~/Consumer/RequestNewLicense.aspx?focus=quota-caseusers">Klikk her for å be om endringer i lisensen.</asp:HyperLink>
    <asp:HyperLink runat="server" id="lnkLicenseForms" Visible="False" NavigateUrl="~/Consumer/RequestNewLicense.aspx?focus=quota-formusers">Klikk her for å be om endringer i lisensen.</asp:HyperLink>
</asp:Content>