<%@ Page language="c#" Codebehind="List.aspx.cs" AutoEventWireup="True" Inherits="eDocument.Server.Administrator.Xsl.List"  MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <h1 class="skjema-admin__page-title">
        XSL filer
    </h1>

    <p class="mb-5">
	    Denne siden gir deg en oversikt over de XSL filne du har lastet opp. 
    </p>

    <asp:Button 
        ID="btnCreate" 
        CssClass="skjema-admin__button skjema-admin__button--primary mb-4"
        runat="server" 
        Text="OPPRETT"
        OnClick="btnCreate_OnClick" />

    <asp:datagrid 
        id="dgXsl" 
        runat="server" 
        AutoGenerateColumns="False" 
        Width="100%" 
        Border="0"
        CssClass="skjema-admin__table"
        HeaderStyle-CssClass="HeaderStyle"
	    ItemStyle-CssClass="ItemStyle" 
        AlternatingItemStyle-CssClass="AlternatingItemStyle" 
        AllowSorting="False">
	    <Columns>
		    <asp:BoundColumn DataField="XslID" Visible="False"></asp:BoundColumn>
		    <asp:BoundColumn DataField="Name" SortExpression="Name ASC" HeaderText="Navn"></asp:BoundColumn>
		    <asp:BoundColumn DataField="Comment" HeaderText="Kommentar"></asp:BoundColumn>
		    <asp:BoundColumn DataField="CreatedOn" SortExpression="CreatedOn ASC" HeaderText="Opprettet"></asp:BoundColumn>
		    <asp:ButtonColumn Text="Detaljer" CommandName="Details"></asp:ButtonColumn>
		    <asp:ButtonColumn Text="Rediger" CommandName="Edit"></asp:ButtonColumn>
		    <asp:ButtonColumn Text="Slett" CommandName="Delete"></asp:ButtonColumn>
	    </Columns>

    </asp:datagrid><asp:label id="lblMessage" runat="server" ForeColor="Red"></asp:label>
</asp:Content>