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

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

    <h1 class="skjema-admin__page-title">
        Opprett XSL
    </h1>

    <p class="mb-4">
	    Fra denne siden kan du opprette et XSL objekt. Velg XSL filen du ønsker å laste 
	    opp og gi XSL objektet et navn.
    </p>

    <div class="skjema-admin__page__field">
        <asp:label  id="Label1"  CssClass="skjema-admin__page__label" runat="server"> XSL fil *</asp:label>
        <INPUT  id="flXsl" type="file" runat="server" size="26" />
        <asp:hyperlink id="HyperLink7" runat="server" Target="_blank" Visible="False">Help</asp:hyperlink>
        <asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" Display="Dynamic" ErrorMessage="Du må angi XSL filen (.xsl) du ønsker å laste opp." ControlToValidate="flXsl" />
    </div>

    <div class="skjema-admin__page__field">
        <asp:label id="Label2" CssClass="skjema-admin__page__label" runat="server">Navn *</asp:label>
        <asp:textbox id="txtName" CssClass="skjema-admin__page__text" runat="server" />
        <asp:hyperlink id="Hyperlink1" runat="server" Target="_blank" Visible="False">Help</asp:hyperlink>
        <asp:requiredfieldvalidator 
            id="RequiredFieldValidator1" 
            Display="Dynamic"
            runat="server" 
            ErrorMessage="Du må angi et navn." 
            ControlToValidate="txtName">
        </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" 
            CssClass="skjema-admin__page__text"
            TextMode="MultiLine" 
            Height="80px">
		</asp:TextBox>
    </div>

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

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