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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <h1>Ny-registrerte organisasjoner</h1>

    <asp:GridView 
        ID="grid" 
        runat="server" 
        AutoGenerateColumns="False" 
        Width="100%" 
        CssClass="skjema-admin__table mb-4"
        Border="0"
        HeaderStyle-CssClass="HeaderStyle"
        ItemStyle-CssClass="ItemStyle" 
        AllowSorting="False">
        <Columns>
            <asp:HyperLinkField HeaderText="Organisasjon" DataTextField="CustomerName" DataNavigateUrlFields="CustomerId" DataNavigateUrlFormatString="~/Consumer/Update.aspx?ConsumerID={0}" />
            <asp:BoundField HeaderText="Opprettet av" DataField="CreatedByUserMail" />
            <asp:BoundField HeaderText="Dato" DataField="CreatedOn" />
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton runat="server" CommandName="Verify" ID="btnVerify" Text="Verifiser" OnCommand="btnVerify_OnCommand" CommandArgument='<%#Bind("CustomerId") %>'>Godkjenn</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <%--<asp:ButtonField Text="Slett" CommandName="Delete"  />--%>
        </Columns>
    </asp:GridView>
</asp:Content>