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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">

    <h1 class="skjema-admin__page-title">
        Oversikt over slettede skjemaer

    </h1>

    <p class="mb-5">
        Denne siden gir en oversikt over de skjemaene du har slettet. 
    </p>

    <asp:DataGrid 
        ID="dgTemplates" 
        runat="server" 
        AutoGenerateColumns="False" 
        Width="100%" 
        Border="0"
        CssClass="skjema-admin__table"
        AllowSorting="True">

        <AlternatingItemStyle CssClass="AlternatingItemStyle"></AlternatingItemStyle>
        <ItemStyle CssClass="ItemStyle"></ItemStyle>
        <HeaderStyle CssClass="HeaderStyle"></HeaderStyle>

        <Columns>
            <asp:BoundColumn DataField="eDocumentTemplateID" Visible="False" HeaderText="Skjema ID"></asp:BoundColumn>
            <asp:BoundColumn DataField="ShortName" HeaderText="Form ID" SortExpression="ShortName ASC"></asp:BoundColumn>
            <asp:BoundColumn Visible="False" DataField="SignMode"></asp:BoundColumn>
            <asp:BoundColumn Visible="False" DataField="SignObject"></asp:BoundColumn>
            <asp:BoundColumn HeaderText="SignMode" Visible="False"></asp:BoundColumn>
            <asp:BoundColumn HeaderText="SignObject" Visible="False"></asp:BoundColumn>
            <asp:BoundColumn DataField="Name" SortExpression="Name ASC" HeaderText="Navn"></asp:BoundColumn>
            <asp:BoundColumn DataField="Comment" HeaderText="Kommentar" SortExpression="Comment ASC"></asp:BoundColumn>
            <asp:BoundColumn DataField="CreatedOn" SortExpression="CreatedOn ASC" HeaderText="Opprettet"></asp:BoundColumn>
            <asp:BoundColumn DataField="IsPublished" SortExpression="IsPublished ASC" HeaderText="Publisert" Visible="False"></asp:BoundColumn>
            <asp:HyperLinkColumn Text="Detaljer" DataNavigateUrlField="eDocumentTemplateID" DataNavigateUrlFormatString="~/eDocumentTemplate/Details.aspx?eDocumentTemplateID={0}" />
            <asp:HyperLinkColumn Text="Rediger" DataNavigateUrlField="eDocumentTemplateID" DataNavigateUrlFormatString="~/eDocumentTemplate/Edit.aspx?eDocumentTemplateID={0}" />
            <asp:HyperLinkColumn Text="Gjenopprett" DataNavigateUrlField="eDocumentTemplateID" DataNavigateUrlFormatString="~/eDocumentTemplate/Restore.aspx?eDocumentTemplateID={0}&return=~/eDocumentTemplate/Deleted.aspx" />
        </Columns>
    </asp:DataGrid><asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>

</asp:Content>
