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

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

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

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

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

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

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

    <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"
            name="flXsl" />

        <asp:HyperLink ID="HyperLink7" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
    </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="50px">
        </asp:TextBox>
    </div>

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

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