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

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

    <p class="mb-5">
        Fra denne siden kan du opprette et viewer objekt. 
        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" 
            MaxLength="300">
        </asp:TextBox>

        <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" 
            CssClass="skjema-admin__page__text"
            runat="server" 
            MaxLength="300">
        </asp:TextBox>

        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Du må angi hvilken URL Vieweren befinner seg på."
            ControlToValidate="txtUrl" 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" 
            CssClass="skjema-admin__page__text"
            runat="server" 
            TextMode="MultiLine" 
            Height="50px">
        </asp:TextBox>
    </div>

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