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

<asp:Content ID="content1" ContentPlaceHolderID="Main" runat="server">
    <table>
        <tr>
            <td>
               <x:Breadcrumb runat="server" />
            </td>
        </tr>
    </table>
    <br>
    <asp:Panel ID="pnlHeading" runat="server" Width="100%">
        <h4>
        </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%">
        <table>
            <tr>
                <td>
                    <asp:Label ID="lblCategoryName" runat="server">Navn: </asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtCategoryName" runat="server" Width="200"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic"
                        ControlToValidate="txtCategoryName" ErrorMessage="Du må angi et navn.">
                    </asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblUrlToImage" runat="server">Url til bilde: </asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtImageUrl" runat="server" Width="200"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblRecHeight" runat="server">Anbefalt høyde: &nbsp; 49 px</asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblRecWidth" runat="server">og bredde: &nbsp; 96 px</asp:Label>
                </td>
            </tr>
        </table>
        <br>
        <table>
            <tr>
                <td>
                    Beskrivelse
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Rows="10" Columns="50">
                    </asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    <a href="Main.aspx">&lt;&lt;Tilbake</a>
                </td>
                <td align="right">
                    <asp:LinkButton ID="lnkBtnSave" runat="server" onclick="lnkBtnSave_Click">[Lagre]</asp:LinkButton></td>
            </tr>
            <tr>
                <td align="right" colspan="2">
                    <asp:LinkButton ID="lnkBtnResetCategory" runat="server" CausesValidation="False" onclick="lnkBtnResetCategory_Click">[Sett tilbake til standardverdier]</asp:LinkButton></td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
