<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Admin_SharePoint_EditServerGroup, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <%--<div class="header">
                <h3>
                    <%= Resources.Content.L00186%>                                                                                                                                 
                </h3>
            </div>--%>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.L00186%>                                                                                                                                 
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *
                <asp:Literal ID="Div6" runat="server" Text='<%$ Resources:Content,GN0000971 %>' EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Name" runat="server" MaxLength="350"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_Name"
                                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Div1" runat="server" Text='<%$ Resources:Content,DGN1110096 %>'
                                            EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_Provider" runat="server" Enabled="False">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal9" runat="server" Text='<%$Resources:Content,M0105%> ' EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_ADDomains" Enabled="false" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *
                <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,DGN1110437%> "
                    EnableViewState="false"></asp:Literal>:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_DefResellerLDAPURL" MaxLength="150" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TxBx_DefResellerLDAPURL"
                                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                <asp:RegularExpressionValidator ID="REV_LDAP" runat="server" Display="None" ControlToValidate="TxBx_DefResellerLDAPURL"
                                                    SetFocusOnError="true" Enabled="false"  ValidationExpression="<%$Resources:Content,LDAPValidationExpression%>"
                                                    ErrorMessage="<%$Resources:Content,DEV1054%>"></asp:RegularExpressionValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row" style="display: none">
                                    <div class="col-sm-3 col-xs-12 row-label">

                                        <asp:Literal ID="Div2" runat="server" Text='<%$ Resources:Content,GN0000973 %>' EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:ListBox ID="RBL_FillStyle" runat="server">
                                                <asp:ListItem Text='<%$ Resources:Content,GN0000974%>' Value="1" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text='<%$ Resources:Content,GN0000975%>' Value="2"></asp:ListItem>
                                            </asp:ListBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="row" style="display: none">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal43" runat="server" Text='<%$ Resources:Content,GN0000976 %>'
                                            EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:ListBox ID="RBL_Purpose" Enabled="false" runat="server">
                                                <asp:ListItem Text='<%$ Resources:Content,GN0000009%>' Value="1" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text='<%$ Resources:Content,GN0000010%>' Value="2"></asp:ListItem>
                                                <asp:ListItem Text='<%$ Resources:Content,GN0000977%>' Value="0"></asp:ListItem>
                                            </asp:ListBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="row" id="TR_AutoProvisioning" runat="server">
                                    <div class="col-sm-3 col-xs-12 row-label">

                                        <asp:Literal ID="Div4" runat="server" Text='<%$ Resources:Content,GN0000978 %>' EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group checkbox">
                                            <asp:CheckBox ID="ChBx_AutoProvision" runat="server" Checked="True" Text=" " />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Div5" runat="server" Text='<%$ Resources:Content,GN000195 %>' EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group checkbox">
                                            <asp:CheckBox ID="ChBx_IsEnabled" runat="server" Checked="True" Text=" " />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal18" runat="server" Text='<%$ Resources:Content,String0001 %>'
                                            EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-9 col-xs-12">
                                        <div class="form-group checkbox">
                                            <asp:CheckBox ID="CB_OverRideCredentials" AutoPostBack="true" runat="server" Checked="False" Text=" " />
                                            <asp:Literal ID="Literal1800" runat="server" Text='<%$ Resources:Content,String0002 %>'
                                                EnableViewState="false" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12" id="Tbl_Credentials" runat="server" visible="false">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.String12%>                                                                                                                                 
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *&nbsp;<asp:Literal ID="Literal15" runat="server" Text="<%$Resources:Content,SPFarmAdmin%> "
                                            EnableViewState="false"></asp:Literal>:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_DomainAdminlogin" runat="server" MaxLength="100"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RFV_DomainAdminlogin" runat="server" ControlToValidate="TxBx_DomainAdminlogin"
                                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                <asp:RegularExpressionValidator ID="REV_DomainAdminLogin" runat="server" ControlToValidate="TxBx_DomainAdminlogin"
                                                    Display="None" ErrorMessage="Enter admin name only without domain" ValidationExpression="^_?[a-zA-Z][a-zA-Z0-9-._]+$"></asp:RegularExpressionValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal16" runat="server" Text="<%$Resources:Content,GN0000569%> "
                                            EnableViewState="false"></asp:Literal>:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_DomAdminpassword" TextMode="Password" runat="server" MaxLength="100"></asp:TextBox>
                                            </div>
                                            <%--<br />
                                            <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />--%>
                                        </div>
                                    </div>
                                    <div class="col-sm-5 col-xs-12">
                                        <asp:Label ID="Literal3" runat="server" Text="<%$ Resources:Content,GN00001530%>"
                                            EnableViewState="false"></asp:Label>
                                    </div>
                                </div>
                                <%--<div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal17" runat="server" Text="<%$Resources:Content,GN0001196%>" EnableViewState="false"></asp:Literal>:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_CPass" TextMode="Password" runat="server" MaxLength="100"></asp:TextBox>
                                                <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToCompare="TxBx_DomAdminpassword"
                                                    ErrorMessage="<%$ Resources:Content,DGN1110005 %>" ControlToValidate="TxBx_CPass"
                                                    Display="None"></asp:CompareValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>--%>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_Save" SkinID="saveButton" runat="server" OnClick="Btn_Save_Click"
                            Text='<%$ Resources:Content,GN0000281 %>' CssClass="btn btn-primary btnAction" />
                        <asp:Button ID="Button1" CausesValidation="false" runat="server" Text='<%$ Resources:Content,GN0000572 %>'
                            SkinID="cancelButton" CssClass="btn btn-primary" />
                        <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001 %>' ID="ValidationSummary2"
                            runat="server" ShowMessageBox="True" ShowSummary="False" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
