<%@ Page Language="c#" Codebehind="ReadMore.aspx.cs" AutoEventWireup="True" Inherits="Tjenestetorget.Administrator.ReadMore"
    MasterPageFile="~/Kundeadministrator.master" %>

<asp:Content ID="content1" ContentPlaceHolderID="Main" runat="server">
    <asp:Panel>
        <table>
            <tr>
                <td>
                    <x:Breadcrumb runat="server"/>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <br>
    <asp:Panel ID="pnlHeading" runat="server" Width="100%">
        <h4>
            <asp:Label ID="lblTemplateName" runat="server" Visible="False"></asp:Label></h4>
    </asp:Panel>
    <asp:Panel ID="pnlMessage" runat="server">
        <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
    </asp:Panel>
    <asp:Panel ID="pnlContent" runat="server" Width="100%">
        <br>
        <table>
            <tr>
                <td>
                    <asp:Label ID="lblLinkName" runat="server">Navn på lenke: </asp:Label></td>
                <td>
                    <asp:TextBox ID="txtLinkName" runat="server" Width="200px">
                    </asp:TextBox>
                    <asp:Label ID="lblMissingName" Visible="False" runat="server" ForeColor="Red">Du må angi et navn.</asp:Label></td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblUrl" runat="server">Url: </asp:Label></td>
                <td>
                    <asp:TextBox ID="txtUrl" runat="server" Width="500px">
                    </asp:TextBox></td>
                <td>
                    <asp:Label ID="lblInvalidUriFormat" Visible="False" runat="server" ForeColor="Red">URL'en har et ugyldig format.</asp:Label>
                    <asp:Label ID="lblMissingUrl" Visible="False" runat="server" ForeColor="Red">Du må angi en URL.</asp:Label></td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td align="right">
                    <asp:LinkButton ID="lnkBtnSaveReadMoreLink" runat="server">[Lagre]</asp:LinkButton></td>
            </tr>
        </table>
        <br>
        <asp:DataGrid ID="dgReadMoresOnEDocumentTemplate" Width="90%" runat="server" DataSource="<%# eDocumentDataSet %>"
            DataMember="ReadMoreOnSubscriptionListItem" AlternatingItemStyle-BackColor="White"
            ItemStyle-BackColor="Gainsboro" AutoGenerateColumns="False" DataKeyField="ReadMoreID"
            GridLines="Horizontal">
            <AlternatingItemStyle BackColor="White"></AlternatingItemStyle>
            <ItemStyle BackColor="Gainsboro"></ItemStyle>
            <HeaderStyle Font-Size="X-Small" Font-Bold="True"></HeaderStyle>
            <Columns>
                <asp:BoundColumn DataField="Caption" HeaderText="Navn p&#229; lenke" ItemStyle-Width="200px">
                </asp:BoundColumn>
                <asp:BoundColumn DataField="Url" HeaderText="Url" ItemStyle-Width="500px" ItemStyle-CssClass="urlcol">
                </asp:BoundColumn>
                <asp:BoundColumn DataField="Sequence" HeaderText="Sekvens" Visible="False"></asp:BoundColumn>
                <asp:TemplateColumn HeaderText="" ItemStyle-Width="20px">
                    <ItemTemplate>
                        <asp:ImageButton runat="server" ImageUrl="images/icons/flyttned.gif" CommandName="MoveDown"
                            CausesValidation="False" AlternateText="Flytt ned" Width="14px" Height="14px"></asp:ImageButton>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="" ItemStyle-Width="20px">
                    <ItemTemplate>
                        <asp:ImageButton runat="server" ImageUrl="images/icons/flyttopp.gif" CommandName="MoveUp"
                            CausesValidation="False" AlternateText="Flytt opp" Width="14px" Height="14px"></asp:ImageButton>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:EditCommandColumn ItemStyle-Width="40px" ButtonType="LinkButton" UpdateText="<img src='images/icons/lagre.gif' border='0'/>"
                    CancelText="<img src='images/icons/avbryt.gif' border='0'/>" EditText="<img src='images/icons/endre.gif' border='0'/>">
                </asp:EditCommandColumn>
                <asp:TemplateColumn HeaderText="" ItemStyle-Width="20px">
                    <ItemTemplate>
                        <asp:ImageButton runat="server" ImageUrl="images/icons/slett.gif" CommandName="Delete"
                            CausesValidation="False" AlternateText="Slett" Width="14px" Height="14px"></asp:ImageButton>
                    </ItemTemplate>
                </asp:TemplateColumn>
            </Columns>
        </asp:DataGrid>
        <a href="Main.aspx">&lt;&lt;Tilbake</a>
    </asp:Panel>
</asp:Content>
