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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <h1>Søk</h1>
    <asp:TextBox runat="server" ID="txtSearch"></asp:TextBox><asp:Button runat="server" id="btnSearch" Text="Søk" OnClick="btnSearch_OnClick"/>
    
    <br/>
    <br/>
    
    <h3>Skjema</h3>
    <asp:GridView runat="server" id="gridTemplates" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField DataField="FormId" HeaderText="Id"/>
            <asp:BoundField DataField="Name" HeaderText="Navn"/>
            <asp:HyperLinkField Text="Detaljer" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="~/eDocumentTemplate/Edit.aspx?eDocumentTemplateID={0}" />
        </Columns>
    </asp:GridView>
    <asp:Label runat="server" id="lblNoForms" Visible="False" Text="Ingen treff i skjema"/>
    
    <br/>
    <br/>
    <h3>Brukere</h3>
    <asp:GridView runat="server" id="gridUsers" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField DataField="UserName" HeaderText="Brukernavn"/>
            <asp:BoundField DataField="Email" HeaderText="E-post"/>
            <asp:BoundField DataField="DisplayName" HeaderText="Navn"/>
            <asp:HyperLinkField Text="Rediger" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="~/User/Edit.aspx?id={0}" />
        </Columns>
    </asp:GridView>
    <asp:Label runat="server" id="lblNoUsers" Visible="False" Text="Ingen treff i brukere"/>

</asp:Content>