<%@ Page Language="c#" CodeBehind="Details.aspx.cs" AutoEventWireup="True" Inherits="eDocument.Server.Administrator.eDocumentTemplateCategory.Details" MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <h1 class="skjema-admin__page-title">
        Detaljer for kategori
    </h1>
     
    <h2 class="skjema-admin__section-title">
        Detaljer
    </h2>

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label1" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Navn
        </asp:Label>

        <asp:Label ID="lblName" runat="server">
        </asp:Label>

        <asp:HyperLink ID="HyperLink7" runat="server" Target="_blank" Visible="False">
            Help
        </asp:HyperLink>
    </div>

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label2" 
            CssClass="skjema-admin__page__label"
            runat="server" 
            Visible="True">
            Kortnavn
        </asp:Label>

        <asp:Label ID="lblCode" runat="server" Visible="True"></asp:Label>
        <asp:HyperLink ID="Hyperlink1" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
    </div>

    <div class="skjema-admin__page__field">

        <asp:Label 
            ID="Label5" 
            CssClass="skjema-admin__page__label"
            runat="server" 
            Visible="False">
            Caption
        </asp:Label>

        <asp:Label ID="lblCaption" runat="server" Visible="False"></asp:Label>
        <asp:HyperLink ID="Hyperlink2" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
    </div>

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label7" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Bilde URL
        </asp:Label>

        <asp:Label ID="lblImageUrl" runat="server"></asp:Label>
        <asp:HyperLink ID="Hyperlink3" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
    </div>

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label3" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Beskrivelse
        </asp:Label>

        <asp:Label ID="lblDescription" runat="server"></asp:Label>
    </div>

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label4" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Opprettet
        </asp:Label>

        <asp:Label ID="lblCreatedOn" runat="server"></asp:Label>
    </div>

    <div class="mb-5">
        <asp:Button ID="btnEdit" 
            runat="server" 
            Text="Rediger" 
            CssClass="skjema-admin__button skjema-admin__button--primary"
            OnClick="btnEdit_Click">
        </asp:Button>
    </div>

    <p>
        <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
    </p>

    <h2 class="skjema-admin__section-title mt-5">
        Skjemaer
    </h2>

    <asp:DataGrid 
        ID="dgTemplates" 
        runat="server" 
        AutoGenerateColumns="False"
        CssClass="skjema-admin__table"
        Border="0"
        Width="100%" 
        HeaderStyle-CssClass="HeaderStyle"
        ItemStyle-CssClass="ItemStyle" 
        AlternatingItemStyle-CssClass="AlternatingItemStyle" 
        AllowSorting="False">
        <Columns>
            <asp:BoundColumn Visible="True" DataField="Id" HeaderText="Skjerma ID"></asp:BoundColumn>
            <asp:BoundColumn DataField="FormId" HeaderText="Kortnavn"></asp:BoundColumn>
            <asp:BoundColumn SortExpression="Name ASC" DataField="Name" HeaderText="Navn"></asp:BoundColumn>
            <asp:BoundColumn DataField="Comment" HeaderText="Kommentar"></asp:BoundColumn>
            <asp:BoundColumn DataField="CustomerId" Visible="False" HeaderText="ConsumerID"></asp:BoundColumn>
            <asp:BoundColumn SortExpression="CreatedOn ASC" DataField="CreatedOn" HeaderText="Opprettet"></asp:BoundColumn>
            <asp:BoundColumn SortExpression="IsPublished ASC" DataField="IsPublished" HeaderText="Publisert"></asp:BoundColumn>
            <asp:ButtonColumn Text="Detaljer" CommandName="Details"></asp:ButtonColumn>
            <asp:ButtonColumn Text="Rediger" CommandName="Edit"></asp:ButtonColumn>
            <asp:ButtonColumn Text="Slett" CommandName="Delete" Visible="False"></asp:ButtonColumn>
        </Columns>
    </asp:DataGrid>

    <asp:Label ID="lblNoEDocumentTemplatesMessage" runat="server" Visible="False">
        Ingen skjemaer
    </asp:Label>
</asp:Content>
