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

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

    <p class="mb-4">
	    Denne siden gir en oversikt over de organisasjonene du har opprettet. 
    </p>

    <asp:datagrid 
        id="dgConsumers" 
        runat="server" 
        AutoGenerateColumns="False" 
        Width="100%" 
        HeaderStyle-CssClass="HeaderStyle"
	    ItemStyle-CssClass="ItemStyle" 
        AlternatingItemStyle-CssClass="AlternatingItemStyle" 
        CssClass="skjema-admin__table"
        Border="0"
        AllowSorting="False">

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

	    <Columns>
		    <asp:BoundColumn Visible="False" DataField="ConsumerID" HeaderText="Organisasjonens Id"></asp:BoundColumn>
		    <asp:BoundColumn DataField="Name" SortExpression="Name ASC" HeaderText="Navn"></asp:BoundColumn>
		    <asp:BoundColumn DataField="Username" HeaderText="Brukernavn"></asp:BoundColumn>
		    <asp:BoundColumn DataField="Comment" HeaderText="Kommentar" Visible="False"></asp:BoundColumn>
		    <asp:BoundColumn DataField="CreatedOn" HeaderText="Opprettet"></asp:BoundColumn>
		    <asp:ButtonColumn Text="Detaljer" CommandName="Details" Visible="False"></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>