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

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

    <p class="mb-5">
        Fra denne siden kan du opprette en kategori. Alle skjemaer tilhører en 
				kategori. De obligatoriske feltene er merket med *.
    </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" 
            CssClass="skjema-admin__page__text"
            runat="server">
        </asp:TextBox>

        <asp:HyperLink ID="HyperLink7" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Du må angi kategoriens navn."
            ControlToValidate="txtName" Display="Dynamic"></asp:RequiredFieldValidator>
    </div>

    <div class="skjema-admin__page__field">

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

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

        <asp:HyperLink ID="Hyperlink1" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
        <asp:RequiredFieldValidator ID="Requiredfieldvalidator2" runat="server" ErrorMessage="You must specify a code."
            ControlToValidate="txtCode" Display="Dynamic" Visible="True"></asp:RequiredFieldValidator>

    </div>

    <div class="skjema-admin__page__field">

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

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

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

        <asp:RequiredFieldValidator ID="Requiredfieldvalidator3" runat="server" ErrorMessage="You must specify a caption."
            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">
        </asp:TextBox>

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

        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" runat="server">Beskrivelse</asp:Label>
        <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Height="50px" Width="500px"></asp:TextBox>

    </div>

    <div class="skjema-admin__page__field">
        <asp:Button ID="btnCreate" runat="server" Text="Opprett" OnClick="btnCreate_Click"></asp:Button>
    </div>

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