<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="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.EditRDSServerGroup%>                                                                                                                                 
                                </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>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_Name"
                                            Display="None" ValidationGroup="EditServerGroup" SetFocusOnError="True" ErrorMessage="<%$ Resources:Content,GroupNameRequired %>"></asp:RequiredFieldValidator>
                                    </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" runat="server" visible="false">
                                    <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_ParentLDAP" MaxLength="150" runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_ParentLDAP"
                                            Display="None" SetFocusOnError="True" ErrorMessage="<%$Resources:Content,LDAPURLRequired%>"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_ParentLDAP"
                                            SetFocusOnError="true" Enabled="false" ValidationExpression="<%$Resources:Content,LDAPValidationExpression%>"
                                            ErrorMessage="<%$Resources:Content,DEV1054%>"></asp:RegularExpressionValidator>
                                    </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,OverrideDomainCredentials %>'
                                            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 id="Tbl_Credentials" runat="server" visible="false">
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            *&nbsp;<asp:Literal ID="Literal15" runat="server" Text="<%$Resources:Content,USM0061%> "
                                                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>
                                                </div>
                                            </div>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxBx_DomainAdminlogin"
                                                Display="None" ValidationGroup="EditServerGroup" SetFocusOnError="True" ErrorMessage="<%$ Resources: Content,USM0067 %>"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="REV_DomainAdminLogin" runat="server" ControlToValidate="TxBx_DomainAdminlogin"
                                                ErrorMessage="Enter admin name only without domain" ValidationExpression="^_?[a-zA-Z][a-zA-Z0-9-._]+$"></asp:RegularExpressionValidator>
                                        </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>
                                            </div>
                                            <%--<br />
                                            <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />--%>
                                        </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,ConfirmPassword%>" 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>
                                                </div>
                                            </div>
                                            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TxBx_DomAdminpassword"
                                                ErrorMessage="<%$ Resources:Content,DGN1110005 %>" ControlToValidate="TxBx_CPass"
                                                ValidationGroup="EditServerGroup"></asp:CompareValidator>
                                        </div>
                                    </div>--%>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_Save" SkinID="saveButton" runat="server" OnClick="Btn_Save_Click"
                                            ValidationGroup="EditServerGroup" CausesValidation="true"
                                            Text='<%$ Resources:Content,GN0000281 %>' CssClass="btn btn-primary btnAction" />
                                        <asp:Button ID="Btn_Cancel" 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="false" ShowSummary="false" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
