<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CreateAdConsumer.aspx.cs" Inherits="eDocument.Server.Administrator.Consumer.CreateAdConsumer" MasterPageFile="~/Site.Anon.Master" %>
<%@ Register Src="AdditionalModules.ascx" TagName="AdditionalModules" TagPrefix="uc2" %>

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

    <p class="mb-4">
        Fra denne siden kan du opprette en organisasjon.
    </p>

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

        <asp:TextBox 
            CssClass="skjema-admin__page__text"
            ID="txtName" 
            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" 
            Display="Dynamic" 
            ControlToValidate="txtName"
            ErrorMessage="Du må angi et navn.">
        </asp:RequiredFieldValidator>
    </div>

    <div class="skjema-admin__page__field">

        <asp:Label 
            ID="Label18" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Organisasjonens brukernavn *
        </asp:Label>

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

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

        <asp:RequiredFieldValidator 
            ID="Requiredfieldvalidator2" 
            runat="server" 
            Display="Dynamic" 
            ControlToValidate="txtUsername"
            ErrorMessage="Du må angi et brukernavn.">
        </asp:RequiredFieldValidator>

        <asp:RegularExpressionValidator 
            ID="RegularExpressionValidator1" 
            runat="server" 
            ControlToValidate="txtUsername" 
            ErrorMessage="Organisasjonens brukernavn blir en del av url-en til skjema, og kan bestå av a-z og tegnet -." 
            ForeColor="Red" 
            ValidationExpression="^[a-zA-Z-]*$">
        </asp:RegularExpressionValidator>
    </div>

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

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

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

    <div class="skjema-admin__page__field">
        <asp:Label 
            CssClass="skjema-admin__page__label"
            ID="lblAddress1" 
            runat="server">
            Adresse 1
        </asp:Label>

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

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

    <div class="skjema-admin__page__field">

        <asp:Label 
            ID="lblAddress2" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Adresse 2
        </asp:Label>

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

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

    <div class="skjema-admin__page__field">

        <asp:Label 
            ID="lblZip" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Postnummer
        </asp:Label>

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

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

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

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

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

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

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

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

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label9" 
            CssClass="skjema-admin__page__label"
            runat="server">
            E-post adresse
        </asp:Label>

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

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

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="lblUrl" 
            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:HyperLink ID="Hyperlink9" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
    </div>

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

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

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

    <div class="skjema-admin__page__field">

        <asp:Label 
            ID="Label15" 
            CssClass="skjema-admin__page__label"
            runat="server">
            Enhetsregisteret brukernavn
        </asp:Label>

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

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

    <div class="skjema-admin__page__field">
        <asp:Label 
            ID="Label16"
            CssClass="skjema-admin__page__label"
            runat="server">
            Enhetsregisteret passord
        </asp:Label>

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

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

    <div class="skjema-admin__page__field">

        <asp:Label 
            ID="Label12" 
            CssClass="skjema-admin__page__label"
            runat="server">
            DSF brukernavn
        </asp:Label>

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

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

    <div class="skjema-admin__page__field">

        <asp:Label 
            ID="Label13" 
            CssClass="skjema-admin__page__label"
            runat="server">
            DSF passord
        </asp:Label>

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

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

    <div class="skjema-admin__page__field">

        <asp:Label 
            ID="Label14" 
            CssClass="skjema-admin__page__label"
            runat="server">
            DSF test
        </asp:Label>

        <asp:CheckBox 
            ID="cbDsfIsTest" 
            CssClass="skjema-admin__page__tick"
            runat="server">
        </asp:CheckBox>

        <asp:HyperLink ID="Hyperlink26" 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" 
            CssClass="skjema-admin__page__text"
            runat="server" 
            Height="160px" 
            TextMode="MultiLine">
        </asp:TextBox>
    </div>

    <div class="skjema-admin__page__field">

        <label class="skjema-admin__page__label">
            Tillegsmoduler
        </label>

        <uc2:AdditionalModules id="additionalModules" runat="server" />
    </div>

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

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