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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%--<%@ Register Src="~/PCC/VPS/CC/VHDLocations.ascx" TagName="VHDLocations" TagPrefix="EM" %>--%>
<%@ Register Src="~/PCC/VPS/CC/VMLocations.ascx" TagName="VMLocations" TagPrefix="EM" %>
<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">

    <style type="text/css">
        .CommonPropertiesForTextBox { /* Please Write the Common properties for the TextBoxes Controls e.g hight,width etc in this class.*/
            width: 225px;
        }
    </style>

    <div class="col-xs-12" id="Div_Edit" runat="server">
        <div class="row">
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <h3>
                            <asp:Literal
                                ID="ad" runat="server" Text='<%$ Resources:Content,DEV1025 %>' EnableViewState="false"></asp:Literal></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_ServerGroupName" data-label="Server Group Name" runat="server" MaxLength="350" CssClass="CommonPropertiesForTextBox"></asp:TextBox>
                                    </div>
                                </div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator29" runat="server" ControlToValidate="TxBx_ServerGroupName"
                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="LI_Provider" runat="server" Text='<%$ Resources:Content,DGN1110096 %>' EnableViewState="false" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <asp:DropDownList ID="DDL_Provider" data-label="Provider"  runat="server" Enabled="false" Width="233">
                                </asp:DropDownList>
                            </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">
                                <asp:DropDownList ID="DDL_ADDomains" data-label="AD Domains"  Enabled="false" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DDL_ADDomains_SelectedIndexChanged" Width="233">
                                    <asp:ListItem Text='<%$ Resources:Content,HVServer05 %>' Value="-1"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content,strStorageConfiguration %>' EnableViewState="false" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <asp:RadioButton ID="rdbStandAlone" data-label="StandAlone"  runat="server" Text='<%$ Resources:Content,strStandAlone %>' GroupName="StorageConfiguration" Enabled="false" Checked="true" AutoPostBack="true" />&nbsp;&nbsp;
                                <asp:RadioButton ID="rdbCluster" data-label="Cluster"  runat="server" Text='<%$ Resources:Content,strCluster %>' GroupName="StorageConfiguration" Enabled="false" AutoPostBack="true" />
                            </div>
                        </div>

                        <div class="row" id="TR_Clustered" runat="server" visible="false">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *
                            <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,SMI0218%>" EnableViewState="false" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ClusterName" data-label="Cluster Name"  runat="server" MaxLength="100" CssClass="CommonPropertiesForTextBox"></asp:TextBox>
                                    </div>
                                </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">
                                <asp:CheckBox ID="ChBx_AutoProvision" data-label="Auto Provision"  Text=" " runat="server" Checked="True" />
                            </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">
                                <asp:CheckBox ID="ChBx_IsEnabled" data-label="Enabled"  Text=" " runat="server" Checked="True" />
                            </div>
                        </div>

                        <%-- <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *
                            <asp:Literal ID="LTL_VMStore" runat="server" Text='<%$ Resources:Content,HVServer17 %>' 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_VMStore" runat="server" Text="C:\VMStore" MaxLength="500" CssClass="CommonPropertiesForTextBox"></asp:TextBox>
                                    </div>
                                </div>
                                <asp:RequiredFieldValidator ID="RFV_TxBx_VMStore" runat="server" ControlToValidate="TxBx_VMStore"
                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                * 
                                                <asp:Literal ID="Literal24" runat="server" Text='<%$ Resources:Content,ArchiveDeletedVHD %>' EnableViewState="false"></asp:Literal>:
                            </div>
                            <div class="col-sm-4">
                                <asp:DropDownList ID="DDL_ArchiveDays" runat="server">
                                    <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                    <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                    <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                    <asp:ListItem Text="30" Value="30"></asp:ListItem>
                                    <asp:ListItem Text="60" Value="60"></asp:ListItem>
                                    <asp:ListItem Text="90" Value="90"></asp:ListItem>
                                    <asp:ListItem Text="180" Value="180"></asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <div class="col-sm-1">
                                <asp:Literal ID="Literal25" runat="server" Text='<%$ Resources:Content,SPT0010056 %>' EnableViewState="false"></asp:Literal>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                * 
                                                <asp:Literal ID="Literal26" runat="server" Text='<%$ Resources:Content,DeletedVHDspath %>' 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_VHDArchive" runat="server" Text="C:\VHDArchive" MaxLength="500"></asp:TextBox>
                                    </div>
                                </div>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TxBx_VHDArchive"
                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            </div>
                        </div>--%>
                        <div class="row" id="Tr_KeyProtectors" runat="server" visible="false">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,GuardedFabric %>' EnableViewState="false"></asp:Literal>:
                            </div>
                            <div class="col-sm-4">
                                <asp:DropDownList ID="Ddl_KeyProtectors" data-label="Key Protectors"  runat="server">
                                </asp:DropDownList>
                            </div>

                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal13" runat="server" Text='<%$ Resources:Content,strAddCusotmerIdasPrefixinVMName %>' EnableViewState="false" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <asp:CheckBox ID="chkAddCustomerIDInVMName" data-label="Add Customer ID In VMName"  Text=" " runat="server" Checked="false" />
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal27" runat="server" Text='<%$ Resources:Content,strUseCustomerNameAsVMName %>' EnableViewState="false" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <asp:CheckBox ID="ChkUseCustomerNameAsVMName"  data-label="Use Customer Name As VMName"  runat="server" Checked="false" Text=" " />
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal29" runat="server" Text='<%$ Resources:Content,ReplicationEnabled %>' EnableViewState="false" />:
                            </div>
                            <div class="col-sm-8 col-xs-12">
                                <asp:CheckBox ID="ChBx_ReplicationEnabled"  data-label="Replication Enabled"  Text=' ' runat="server" Checked="False" AutoPostBack="true" />
                            </div>
                        </div>

                        <div class="row" id="TR_OverrideCredentials" runat="server" visible="false">
                            <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-1 col-xs-12">
                                <asp:CheckBox ID="Chbx_OverrideCredentials"  data-label="Override Credentials"  AutoPostBack="true" Text=" " runat="server" Checked="False" />
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <asp:Literal ID="Literal1800" runat="server" Text='<%$ Resources:Content,String0002 %>'
                                    EnableViewState="false" />
                            </div>
                        </div>

                        <div class="row" id="tabCredentials" runat="server" visible="false">
                            <div class="col-xs-12">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Literal
                                                ID="Literal1" runat="server" Text='<%$ Resources:Content,GN0001195 %>' EnableViewState="false"></asp:Literal></h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                *
                                <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,SPT002816 %>' 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_Domain_Username"  data-label="Domain Username"  runat="server" CssClass="CommonPropertiesForTextBox"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_Domain_Username"
                                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                <asp:RegularExpressionValidator ID="REV_DomainUserName" runat="server" ControlToValidate="TxBx_Domain_Username"
                                                    Display="None" ErrorMessage="Enter user 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="Literal5" 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_Domain_Password" data-label="Domain Password" data-secure="1" runat="server" TextMode="Password" CssClass="CommonPropertiesForTextBox"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                &nbsp;&nbsp;<asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN00001530%>"
                                                    EnableViewState="false"></asp:Literal>
                                                <%--<br />
                                                <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />--%>
                                            </div>
                                        </div>

                                        <%--<div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal6" 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_Domain_ConfirmPassword" TextMode="Password" runat="server" CssClass="CommonPropertiesForTextBox"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <asp:CompareValidator ID="CV_Domain_ConfirmPassword" runat="server" Display="None"
                                                    ControlToCompare="TxBx_Domain_Password" ControlToValidate="TxBx_Domain_ConfirmPassword"
                                                    ErrorMessage="<%$ Resources:Content,DGN1110005 %>"></asp:CompareValidator>
                                            </div>
                                        </div>--%>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-xs-12" id="Div_ReplicationEnabled" runat="server" visible="false">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Literal ID="Literal30" runat="server" Text='<%$ Resources:Content,ReplicationSettings %>' EnableViewState="false"></asp:Literal>
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,M0105 %>' EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <asp:DropDownList ID="DDL_ADDomainsReplica" data-label="AD Domains Replica" runat="server" AutoPostBack="true" Width="300">
                                                    <asp:ListItem Text='<%$ Resources:Content,HVServer05 %>' Value="-1"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content,strStorageConfiguration %>' EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <asp:RadioButton ID="rdbReplicaStandAlone" data-label="Replica StandAlone" runat="server" Text='<%$ Resources:Content,strStandAlone %>' GroupName="ReplicaConfiguration" Checked="true" AutoPostBack="true" />&nbsp;&nbsp;
                                                <asp:RadioButton ID="rdbReplicaCluster" data-label="Replica Cluster" runat="server" Text='<%$ Resources:Content,strCluster %>' GroupName="ReplicaConfiguration" Enabled="false" AutoPostBack="true" />
                                            </div>
                                        </div>
                                        <div class="row" id="TR_ReplicaClustered" runat="server" visible="false">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                * <asp:Literal ID="Literal24" runat="server" Text='<%$ Resources:Content,SMI0218 %>' EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_ReplicaClusterName" data-label="Replica Cluster Name" runat="server" MaxLength="100"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <asp:RequiredFieldValidator ID="rfvReplicaClusterName" runat="server" ControlToValidate="TxBx_ReplicaClusterName"
                                                    Display="None" SetFocusOnError="True" Enabled="false"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-xs-12">
                                <EM:VMLocations ID="VMLocationsServerGroup" runat="server" ServerID="0" />
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Button ID="Btn_Save" runat="server" CausesValidation="true" CssClass="btn btn-primary waves-effect btnAction"
                                    Text='<%$ Resources:Content,GN0000281 %>' />
                                <asp:Button ID="Btn_Cancel" runat="server" CssClass="btn btn-primary waves-effect" Text='<%$ Resources:Content,GN0000572 %>'
                                    CausesValidation="false" />
                            </div>
                        </div>

                    </div>
                </div>
            </div>

            <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001 %>' ID="ValidationSummary1"
                runat="server" ShowMessageBox="True" ShowSummary="False" />
        </div>
    </div>
</asp:Content>
