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

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

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

        <input 
            id="flXftBinary" 
            type="file" 
            name="fleDocumentBinary" 
            runat="server">

        <%--<asp:HyperLink ID="Hyperlink2" runat="server" Target="_blank">
            Help
        </asp:HyperLink>--%>

        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="flXftBinary" ErrorMessage="You must specify the Xft file (.xft) to upload.">
        </asp:RequiredFieldValidator>
    </div>

    <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" 
            MaxLength="300">
        </asp:TextBox>

<%--        <asp:HyperLink ID="HyperLink7" runat="server" Target="_blank">
            Help
        </asp:HyperLink>--%>

        <asp:RequiredFieldValidator 
            ID="RequiredFieldValidator1" 
            runat="server" 
            ErrorMessage="You must specify a name."
            ControlToValidate="txtName" 
            Display="Dynamic">
        </asp:RequiredFieldValidator>
    </div>

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

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

    <asp:Button 
        ID="btnCreate" 
        CssClass="skjema-admin__button skjema-admin__button--primary"
        runat="server" 
        Text="Opprett" 
        OnClick="btnCreate_Click">
    </asp:Button>

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