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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <div>
        Er du sikker på at du vil slette skjemaet <asp:HyperLink runat="server" ID="lnkTemplate"></asp:HyperLink>?<br/>
        <br/>        
		<asp:label id="lblMessage" runat="server" ForeColor="Red" Text="Dette skjemaet er i bruk av følgende abonnementer. Disse abonnementene vil bli SLETTET dersom du fortsetter."></asp:label><br/>
        <br/>
        <asp:GridView runat="server" ID="gridSubscriptions" AutoGenerateColumns="False">
            <Columns>
                <asp:HyperLinkField DataTextField="SubscribedByConsumerName" HeaderText="Organisasjon" DataNavigateUrlFields="ConsumerID" DataNavigateUrlFormatString="~/Consumer/Details.aspx?ConsumerID={0}" />
                <asp:BoundField DataField="SubscribedByConsumerUserName"/>
                <asp:BoundField HeaderText="Opprettet" DataField="CreatedOn"/>
                <asp:BoundField HeaderText="Fra dato" DataField="FromDate"/>
                <asp:BoundField HeaderText="Til dato" DataField="ToDate"/>
                <asp:HyperLinkField Text="Detaljer" DataNavigateUrlFields="SubscriptionID" DataNavigateUrlFormatString="~/Subscription/Details.aspx?SubscriptionID={0}" />
            </Columns>

        </asp:GridView>
        <asp:Label runat="server" ID="lblNotInUse" Text="Dette skjemaet er ikke i bruk av noen abonnementer."></asp:Label><br/>
        <br/>
        <asp:Button runat="server" Text="Slett" ID="btnDelete" OnClick="btnDelete_OnClick"/>
    </div>
</asp:Content>