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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">

    <h1 class="skjema-admin__page-title">
        Rediger kategori
    </h1>

    <p class="mb-5">
        Fra denne siden kan du redigere en kategori. 
        Gjør de ønskede endringer og klikk på "Oppdater" knappen når du er ferdig.
    </p>

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

        <asp:TextBox 
            ID="txtName" 
            runat="server" 
            CssClass="skjema-admin__page__text"
            MaxLength="300">
        </asp:TextBox>

        <asp:HyperLink ID="HyperLink7" runat="server" Target="j" Visible="False">Hjelp</asp:HyperLink>

        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Du må angi et navn" ControlToValidate="txtName"
            Display="Dynamic"></asp:RequiredFieldValidator>
    </div>

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

        <asp:TextBox 
            ID="txtCode" 
            runat="server" 
            CssClass="skjema-admin__page__text"
            MaxLength="300" 
            Visible="True">
        </asp:TextBox>

        <asp:HyperLink ID="Hyperlink1" runat="server" Target="j" Visible="False">Hjelp</asp:HyperLink>

        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Du må angi en kode" ControlToValidate="txtCode"
            Display="Dynamic" Visible="False"></asp:RequiredFieldValidator>
    </div>

    <div class="skjema-admin__page__field">

        <asp:Label 
            ID="Label4" 
            runat="server" 
            class="skjema-admin__page__label"
            Visible="False">
            Ledetekst
        </asp:Label>

        <asp:TextBox 
            ID="txtCaption" 
            class="skjema-admin__page__text"
            runat="server" 
            MaxLength="300" 
            Visible="False">
        </asp:TextBox>

        <asp:HyperLink ID="Hyperlink2" runat="server" Target="j" Visible="False">Hjelp</asp:HyperLink>

        <asp:RequiredFieldValidator ID="Requiredfieldvalidator3" runat="server" ErrorMessage="Du må angi en ledetekst"
            ControlToValidate="txtCaption" Display="Dynamic" Visible="False"></asp:RequiredFieldValidator>
    </div>

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label5" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Bilde på skjemaoversikt
        </asp:Label>

        <asp:TextBox 
            ID="txtImageUrl" 
            CssClass="skjema-admin__page__text"
            runat="server" 
            MaxLength="300">
        </asp:TextBox>

        <asp:HyperLink ID="Hyperlink3" runat="server" Target="j" Visible="False">Hjelp</asp:HyperLink>

        <br />

        Oppgi url til en bilde-fil, eller velg et ikon fra 
        <a href="https://prokomresources.prokomcdn.no/client-grunt/04-common/budicon2/Outline/outline.html" target="_blank">Budicon</a>, f.eks budicon-school. 
    </div>

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

        <asp:TextBox 
            ID="txtDescription" 
            CssClass="skjema-admin__page__text"
            runat="server" 
            TextMode="MultiLine" 
            Height="50px">
        </asp:TextBox>
    </div>

    <div>
        <asp:Button 
            ID="btnUpdate" 
            CssClass="skjema-admin__button skjema-admin__button--primary"
            runat="server" 
            Text="Oppdater" 
            OnClick="btnUpdate_Click">
        </asp:Button>
    </div>

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