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

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    
    <div class="skjema-admin__page-pre-title">
        Organisasjon og brukere
    </div>

    <h1 class="skjema-admin__page-title mt-0">
        Opprett organisasjon
    </h1>



<%--    <p class="mb-4">
        Opprett en ny organisasjon.
    </p>--%>

    <h2 class="skjema-admin__underline-title">
        Om organisasjonen
    </h2>

    <div runat="server" id="divOnPremiseLicenseKey">
        <h3>Lisensinfo</h3>
        <div class="skjema-admin__page__field">
            <asp:Label ID="Label10" CssClass="skjema-admin__page__label skjema-admin__page__label--small" runat="server">
                Lisensnøkkel *
            </asp:Label>
            <asp:TextBox CssClass="skjema-admin__page__text" ID="txtLicenseKey"  runat="server" MaxLength="300"/>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4"  runat="server" ForeColor="Red" Display="Dynamic"  ControlToValidate="txtLicenseKey" ErrorMessage="Du må oppgi lisensnøkkel."/>
        </div>
    </div>

    <div class="skjema-admin__page__field">
        <asp:Label ID="Label1" CssClass="skjema-admin__page__label skjema-admin__page__label--small" runat="server">
            Navn på organisasjon *
        </asp:Label>
        <asp:TextBox CssClass="skjema-admin__page__text" ID="txtName"  runat="server" MaxLength="300" /> 
        <asp:HyperLink ID="HyperLink7" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
        <asp:RequiredFieldValidator  ID="RequiredFieldValidator1"  runat="server" ForeColor="Red" Display="Dynamic" ControlToValidate="txtName" ErrorMessage="Du må angi et navn." />
    </div>

    <div class="skjema-admin__page__field">
        <asp:Label ID="Label18" CssClass="skjema-admin__page__label skjema-admin__page__label--small" runat="server">
             Brukernavn *
        </asp:Label>
        <asp:TextBox  ID="txtUsername" CssClass="skjema-admin__page__text" runat="server" MaxLength="300" />
        <asp:HyperLink ID="Hyperlink17" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
        <asp:RequiredFieldValidator  ForeColor="Red" ID="Requiredfieldvalidator2" runat="server" Display="Dynamic" ControlToValidate="txtUsername" ErrorMessage="Du må angi et brukernavn." />
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1"  runat="server" ControlToValidate="txtUsername" Display="Dynamic"  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-]*$"/>
    </div>
    
    <div class="skjema-admin__page__field">
        <asp:Label ID="Label4" CssClass="skjema-admin__page__label skjema-admin__page__label--small" runat="server">
            Organisasjonsnummer
        </asp:Label>
        <asp:TextBox ID="txtOrgNo" CssClass="skjema-admin__page__text" runat="server"  MaxLength="9"/>
        <asp:HyperLink ID="HyperLink20" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
    </div>

    <div runat="server" id="divNormalUser">
        <h2 class="skjema-admin__underline-title">
            Faste opplysninger til PDF
        </h2>
        <div class="skjema-admin__page__field">
            <asp:Label 
                CssClass="skjema-admin__page__label skjema-admin__page__label--small"
                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 skjema-admin__page__label--small"
                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 skjema-admin__fixed-grid__row">

            <div class="skjema-admin__fixed-grid__col-110 skjema-admin__mr-20">
                <asp:Label 
                    ID="lblZip" 
                    CssClass="skjema-admin__page__label skjema-admin__page__label--small"
                    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__fixed-grid__col-330">
                <asp:Label 
                    ID="Label6" 
                    CssClass="skjema-admin__page__label skjema-admin__page__label--small"
                    runat="server">
                    Poststed
                </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>

        <div class="skjema-admin__page__field skjema-admin__fixed-grid__row">
            <div class="skjema-admin__fixed-grid__col-220">
                <asp:Label 
                    ID="Label7" 
                    CssClass="skjema-admin__page__label skjema-admin__page__label--small"
                    runat="server">
                    Telefonnummer
                </asp:Label>
                <asp:TextBox ID="txtTelephone" CssClass="skjema-admin__page__text" runat="server"  MaxLength="300" />
                <asp:HyperLink ID="Hyperlink5" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
            </div>
        </div>

        <div class="skjema-admin__page__field">
            <asp:Label ID="Label9" CssClass="skjema-admin__page__label skjema-admin__page__label--small" runat="server" >
                E-postadresse
            </asp:Label>
            <asp:TextBox ID="txtEmailAddress" CssClass="skjema-admin__page__text" runat="server" MaxLength="300" />
            <asp:HyperLink ID="Hyperlink8" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
        </div>

        <div class="skjema-admin__page__field">
            <asp:Label ID="lblUrl2" CssClass="skjema-admin__page__label skjema-admin__page__label--small" runat="server">
                Nettside
            </asp:Label>
            <asp:TextBox ID="txtUrl" CssClass="skjema-admin__page__text" runat="server" MaxLength="300"/>
            <asp:HyperLink ID="Hyperlink9" 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" runat="server" id="divComment">
            <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" />
        </div>--%>
    </div> <%--end of div for normal user (not useradmin) --%>

    <div class="mb-5 skjema-admin__mt-70">
        <asp:Button 
            ID="btnCreate"
            CssClass="skjema-admin__button skjema-admin__button--primary mb-5"
            runat="server" 
            Text="Lagre organisasjon" 
            OnClick="btnCreate_Click">
        </asp:Button>
    </div>


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