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

<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">Om organisasjonen</h1>

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

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

    <div id="essentialInfo" class="skjema-admin__mb-40">
        <div class="mb-5" id="divLicenseKey" runat="server">
            <asp:Label ID="Label1912" CssClass="skjema-admin__page__label skjema-admin__page__label--small" runat="server">
                Lisensnøkkel *
            </asp:Label>
            <asp:TextBox Enabled="False" CssClass="skjema-admin__page__text" ID="txtLicenseKey" runat="server" MaxLength="300" />
            <asp:Label 
                ID="lblInvalidLicenseKey" 
                ForeColor="Red" 
                CssClass="skjema-admin__page__label" runat="server" />
            <asp:RequiredFieldValidator 
                ID="RequiredFieldValidator2" 
                ForeColor="Red" 
                runat="server" 
                Display="Dynamic" 
                ControlToValidate="txtLicenseKey" 
                ErrorMessage="Du må angi en lisensnøkkel." />
        </div>

        <div class="mb-5">
            <asp:Label ID="Label1" CssClass="skjema-admin__page__label skjema-admin__page__label--small" runat="server">
                Navn *
            </asp:Label>
       
            <asp:TextBox ID="txtName" CssClass="skjema-admin__page__text" runat="server" MaxLength="300"/>
            <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="mb-5">
            <asp:Label ID="Label18" CssClass="skjema-admin__page__label skjema-admin__page__label--small" runat="server">
                Brukernavn *
            </asp:Label>
  
            <asp:TextBox Enabled="False" CssClass="skjema-admin__page__text" ID="txtUsername" runat="server" MaxLength="300" />
            <asp:HyperLink ID="Hyperlink17" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
        </div>
        
        <div class="mb-5">
            <asp:Label
                ID="Label10"
                CssClass="skjema-admin__page__label skjema-admin__page__label--small"
                runat="server">
                Organisasjons-nummer
            </asp:Label>
        
            <asp:TextBox
                ID="txtOrgNo"
                CssClass="skjema-admin__page__text"
                runat="server"
                MaxLength="300">
            </asp:TextBox>
            <asp:HyperLink ID="HyperLink13" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
        </div>

<%--        <div class="skjema-admin__fixed-grid__row mb-3">
            <div class="skjema-admin__fixed-grid__col-140">
                <asp:Label ID="Label111" CssClass="skjema-admin__page__label" runat="server">
                    E-postadresse for varsling av feil ved forsendelser *
                </asp:Label>
            </div>
            <div class="skjema-admin__fixed-grid__col">
                <asp:TextBox ID="txtEmailAddressAbortedProcess" CssClass="skjema-admin__page__text" runat="server" MaxLength="200" />
                <div>
                    Flere adresser skilles med komma. 
                </div>
                <asp:HyperLink ID="Hyperlink18" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
                <asp:RequiredFieldValidator ForeColor="Red" ID="Requiredfieldvalidator10" runat="server" Display="Dynamic" ControlToValidate="txtEmailAddressAbortedProcess" ErrorMessage="Du må angi hvilken e-postadresse som skal varsles dersom forsendelser feiler." />
            </div>
        </div>--%>
    </div>

    <div runat="server" id="divNormalUser" class="skjema-admin__mb-70">
        <h2 class="skjema-admin__underline-title">
            Faste opplysninger til PDF
        </h2>

        <div class="mb-5">
            <asp:Label
                ID="Label2"
                CssClass="skjema-admin__page__label skjema-admin__page__label--small"
                runat="server">
            Adresse 1
            </asp:Label>
            
            <asp:TextBox
                ID="txtAddress1"
                runat="server"
                CssClass="skjema-admin__page__text"
                MaxLength="300">
            </asp:TextBox>
            <asp:HyperLink ID="Hyperlink1" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
        </div>

        <div class="mb-5">
            <asp:Label
                ID="Label4"
                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 mb-5">
            <div class="skjema-admin__fixed-grid__col-110 skjema-admin__mr-20">
                <asp:Label
                    ID="Label5"
                    CssClass="skjema-admin__page__label skjema-admin__page__label--small"
                    runat="server">
                    Postnummer
                </asp:Label>
        
                <asp:TextBox
                    ID="txtZip"
                    CssClass="skjema-admin__page__text"
                    runat="server"
                    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">
                    Stedsnavn
                </asp:Label>
       
                <asp:TextBox
                    ID="txtCity"
                    CssClass="skjema-admin__page__text"
                    runat="server"
                    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 mb-5">
            <div class="skjema-admin__fixed-grid__col-220">
                <asp:Label
                    ID="Label7"
                    CssClass="skjema-admin__page__label skjema-admin__page__label--small"
                    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>

<%--            <div class="skjema-admin__fixed-grid__row mb-3">
                <div class="skjema-admin__fixed-grid__col-140">
                    <asp:Label
                        ID="Label8"
                        CssClass="skjema-admin__page__label"
                        runat="server">
                    Telefaks
                    </asp:Label>
                </div>
                <div class="skjema-admin__fixed-grid__col">
                    <asp:TextBox
                        ID="txtTelefax"
                        CssClass="skjema-admin__page__text"
                        runat="server"
                        MaxLength="300">
                    </asp:TextBox>
                </div>
            </div>--%>

        <div class="mb-5">
            <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:TextBox>
            <asp:HyperLink ID="Hyperlink8" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
        </div>

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

            <%--<div class="skjema-admin__fixed-grid__row mb-3">
                <div class="skjema-admin__fixed-grid__col-140">

                    <asp:Label
                        ID="lblFrontPage"
                        CssClass="skjema-admin__page__label"
                        runat="server">Kommunebanner bildeurl
                    </asp:Label>
                </div>

                <div class="skjema-admin__fixed-grid__col">
                    <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>--%>

            <%--<div class="skjema-admin__fixed-grid__row mb-3">
                <div class="skjema-admin__fixed-grid__col-140">
                    <asp:Label
                        ID="lblCssUrl"
                        CssClass="skjema-admin__page__label"
                        runat="server">
                    URL til CSS
                    </asp:Label>
                </div>
                <div class="skjema-admin__fixed-grid__col">
                    <asp:TextBox
                        ID="txtCssUrl"
                        CssClass="skjema-admin__page__text"
                        runat="server"
                        MaxLength="400">
                    </asp:TextBox>
                </div>
            </div>--%>

            <%--<div class="skjema-admin__fixed-grid__row mb-3">
                <div class="skjema-admin__fixed-grid__col-140">
                    <asp:Label
                        ID="Label39"
                        CssClass="skjema-admin__page__label"
                        runat="server">
                    Driftsmodell
                    </asp:Label>
                </div>
                <div class="skjema-admin__fixed-grid__col">
                    <asp:DropDownList
                        ID="ddlOperationModel"
                        CssClass="skjema-admin__page__text"
                        runat="server">
                        <asp:ListItem Value="0">A - Full ASP hosting</asp:ListItem>
                        <asp:ListItem Value="1">A + B - Full ASP hosting og lokal viewer</asp:ListItem>
                        <asp:ListItem Value="2">B - Lokal viewer</asp:ListItem>
                        <asp:ListItem Value="3">C - Full lokal installasjon</asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>--%>

            <%--<div class="skjema-admin__fixed-grid__row mb-3">
                <div class="skjema-admin__fixed-grid__col-140">
                    <asp:Label
                        ID="lblIsTest"
                        CssClass="skjema-admin__page__label"
                        runat="server">
                    Er test
                    </asp:Label>
                </div>
                <div class="skjema-admin__fixed-grid__col">
                    <asp:CheckBox
                        ID="cbIsTest"
                        CssClass="skjema-admin__page__tick"
                        runat="server"></asp:CheckBox>
                    <asp:HyperLink ID="Hyperlink12" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
                </div>
            </div>--%>
        </div>

        <div id="skjemakatalog">
        <%--    <h2 class="skjema-admin__section-title mb-5">Skjemakatalog
            </h2>

            <div class="skjema-admin__page__field">
                <asp:Label
                    ID="Label26"
                    class="skjema-admin__page__label"
                    runat="server">
                    Skjemakatalog URL
                </asp:Label>
                <asp:TextBox
                    ID="txtTemplateRepositoryUrl"
                    CssClass="skjema-admin__page__text"
                    runat="server"
                    MaxLength="300">
                </asp:TextBox>
            </div>

            <div class="skjema-admin__page__field">
                <asp:Label
                    ID="Label27"
                    CssClass="skjema-admin__page__label"
                    runat="server">
                    Skjemakatalog brukernavn
                </asp:Label>
                <asp:TextBox
                    ID="txtTemplateRepositoryUsername"
                    CssClass="skjema-admin__page__text"
                    runat="server"
                    MaxLength="300">
                </asp:TextBox>
            </div>

            <div class="skjema-admin__page__field">
                <asp:Label
                    ID="Label28"
                    CssClass="skjema-admin__page__label"
                    runat="server">
                    Skjemakatalog passord
                </asp:Label>
                <asp:TextBox
                    ID="txtTemplateRepositoryPassword"
                    CssClass="skjema-admin__page__text"
                    runat="server"
                    MaxLength="300">
                </asp:TextBox>
                <asp:HyperLink ID="Hyperlink32" 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">
                    Skjemakatalog token
                </asp:Label>
                <asp:TextBox
                    ID="txtSyncToken"
                    Enabled="false"
                    CssClass="skjema-admin__page__text"
                    runat="server"
                    MaxLength="300">
                </asp:TextBox>
                <asp:HyperLink ID="Hyperlink19" runat="server" Target="_blank" Visible="False">Help</asp:HyperLink>
            </div>--%>
        <%--</div>--%>
    </div>

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