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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <h1 class="skjema-admin__page-title">
        Rediger viewer
    </h1>
    
    <p class="mb-5">
        Fra denne siden kan du redigere et viewer objekt. 
        Gjør de ønskede endringer og klikk "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" 
            CssClass="skjema-admin__page__text"
            runat="server" 
            MaxLength="300">
        </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 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">
            URL
        </asp:Label>

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

        <asp:HyperLink ID="Hyperlink1" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Du må angi hvilken URL Viewren befinner seg på."
            ControlToValidate="txtUrl" Display="Dynamic"></asp:RequiredFieldValidator>
    </div>

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

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

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

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