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

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

<%--<%@ Register Src="~/PCC/VPS/CC/VHDLocations.ascx" TagName="VHDLocations" TagPrefix="EM" %>--%>  <%--Old Implementation--%>

<%@ Register Src="~/PCC/VPS/CC/VMLocations.ascx" TagName="VMLocations" TagPrefix="EM" %>
<%--New Implementation--%>

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">


    <div class="col-xs-12" id="Div_AddServer" runat="server">

        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,HVServer01 %>' EnableViewState="false">
                    </asp:Literal>
                </h3>
            </div>
            <div class="body">

                <table>
                    <tr>
                        <td class="height-39px">
                            <div class="productStepButtonContainer">
                            </div>
                        </td>
                    </tr>
                </table>

                <div class="products-step">
                    <span id="div_s1" runat="server" class="label label-success">
                        <asp:Literal ID="Literal48" runat="server" Text='<%$ Resources:Content, GN0000895 %>' EnableViewState="false" />

                    </span>
                    <span id="div_s2" runat="server" class="label label-default" visible="false">
                        <asp:Literal ID="Div3" runat="server" Text='<%$ Resources:Content, GN0000896 %>' EnableViewState="false" />
                    </span>

                </div>

                <asp:Wizard Width="100%" ID="Wizard1" runat="server" CancelButtonType="Button" CancelDestinationPageUrl="~/PCC/VPS/ServerGroups.aspx"
                    DisplayCancelButton="True" DisplaySideBar="false" ActiveStepIndex="0">
                    <CancelButtonStyle CssClass="btn btn-primary waves-effect" />
                    <FinishCompleteButtonStyle CssClass="btn btn-primary waves-effect" />
                    <StepPreviousButtonStyle CssClass="btn btn-primary waves-effect" />
                    <StepNextButtonStyle CssClass="btn btn-primary waves-effect" />
                    <StartNextButtonStyle CssClass="btn btn-primary waves-effect" />
                    <FinishPreviousButtonStyle CssClass="btn btn-primary waves-effect" />
                    <WizardSteps>

                        <asp:WizardStep ID="wsAddServer" runat="server" Title="Step 1">
                            <asp:Panel ID="Pnl_add" runat="server" DefaultButton="Btn_Save">


                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal39" runat="server" Text='<%$ Resources:Content,GN000195 %>' EnableViewState="false"></asp:Literal>:
                                    </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" id="Div_ReplicationSettings" runat="server" visible="false">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content,DGN1110499 %>' EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <asp:RadioButton ID="rdbActive"  data-label="Active"  runat="server" Text='<%$ Resources:Content,strActive %>' GroupName="ReplicationSettings" Checked="true" />&nbsp;&nbsp;
                                        <asp:RadioButton ID="rdbReplica"  data-label="Replica"  runat="server" Text='<%$ Resources:Content,strReplica %>' GroupName="ReplicationSettings" />
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        * 
                                                <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,DGN1110019 %>' 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_ReferenceId"  data-label="Reference Id"  runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_ReferenceId"
                                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>

                                            </div>

                                        </div>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <asp:Literal ID="Literal10" runat="server" Text='<%$ Resources:Content,HVServer0661 %>' EnableViewState="false"></asp:Literal>

                                        <%--                                                    <asp:RequiredFieldValidator ID="RFV_ReferenceId" runat="server"
                                                        Display="None" ControlToValidate="TxBx_ReferenceId" SetFocusOnError="True"></asp:RequiredFieldValidator>--%>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *&nbsp;<asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,SPT002376%>" 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_IPAddress"  data-label="IP Address"  Text="" runat="server" MaxLength="50" onblur=""></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RFV_IPAddress" runat="server" ControlToValidate="TxBx_IPAddress"
                                            SetFocusOnError="True" ValidationGroup="AddServer"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="TxBx_IPAddress"
                                            Display="None" SetFocusOnError="True" ErrorMessage="<%$ Resources:Content,String176 %>"
                                            ValidationExpression="<%$ Resources:Content,ValidateIP%>" ValidationGroup="AddServer" />
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal2413" runat="server" Text="<%$ Resources:Content,WebConsoleURL%>" 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_VMConsoleUrl"  data-label="VM Console Url"  runat="server"></asp:TextBox>
                                            </div>
                                        </div>

                                    </div>
                                    <div class="col-sm-1 col-xs-12">
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content, strNoofVMsallowedonthisserver%>' EnableViewState="false"></asp:Literal>:   
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="txtNoofVMsallowedonthisserver"  data-label="No of VMs allowed on this server"  runat="server" CssClass="CommonPropertiesForTextBox"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ValidationGroup="AddServer" ControlToValidate="txtNoofVMsallowedonthisserver"
                                            Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ControlToValidate="txtNoofVMsallowedonthisserver" runat="server"
                                            ErrorMessage='<%$ Resources:Content, strOnlyNumbersAllowed%>' ValidationExpression="\d+">
                                        </asp:RegularExpressionValidator>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal15" runat="server" Text='<%$ Resources:Content, strRAMthatcanbeallocatedtoVMs%>' EnableViewState="false"></asp:Literal>:                               
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="txtMaxRAM"  data-label="Max RAM"  runat="server" CssClass="CommonPropertiesForTextBox"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-1 col-xs-12">
                                        GB
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ValidationGroup="AddServer" ControlToValidate="txtMaxRAM"
                                                        Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegEVForInteger" ControlToValidate="txtMaxRAM" runat="server"
                                            ErrorMessage='<%$ Resources:Content, strOnlyNumbersAllowed%>' ValidationExpression="\d+">
                                        </asp:RegularExpressionValidator>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content, HVServer10%>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="txtMaxVirtualProcessors"  data-label="Max Virtual Processors"  runat="server" CssClass="CommonPropertiesForTextBox"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ValidationGroup="AddServer" ControlToValidate="txtMaxVirtualProcessors"
                                            Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtMaxVirtualProcessors" runat="server"
                                            ErrorMessage='<%$ Resources:Content, strOnlyNumbersAllowed%>' ValidationExpression="\d+">
                                        </asp:RegularExpressionValidator>
                                    </div>
                                </div>

                                <div class="row" id="Tr_GuardedFabric" runat="server" visible="false">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content, GuardedFabric%>' EnableViewState="false"></asp:Literal>:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="Ddl_KeyProtectors"  data-label="Key Protectors"  runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>

                                <div class="row" id="tabServerCredentials" runat="server" visible="false">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Literal57" runat="server" Text='<%$ Resources:Content,GN09090 %>' 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="Literal35" 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_Username"  data-label="User name"  runat="server"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ValidationGroup="AddServer" ControlToValidate="TxBx_Username" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>

                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        *
                                                <asp:Literal ID="Literal37" 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_Password"  data-label="Password" data-secure="1"  runat="server" TextMode="Password"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" ControlToValidate="TxBx_Password"
                                                            Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>


                                                    </div>
                                                    <%--<div class="col-sm-3 col-xs-12">
                                                        <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_ConfirmPassword" TextMode="Password" runat="server"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <asp:RequiredFieldValidator ID="rRFV_ConfirmPassword" runat="server" ControlToValidate="TxBx_ConfirmPassword"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="AddServer"></asp:RequiredFieldValidator>
                                                        <asp:CompareValidator ID="CV_ConfirmPassword" runat="server" Display="None" ControlToCompare="TxBx_Password"
                                                            ControlToValidate="TxBx_ConfirmPassword" ErrorMessage="<%$ Resources:Content,DGN1110005 %>" ValidationGroup="AddServer"></asp:CompareValidator>
                                                    </div>
                                                </div>--%>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <%--  <div class="row" id="trVHDLocationsControl" runat="server" visible="false">
                                    <div class="col-xs-12">
                                        <EM:VHDLocations ID="VHDLocationsServer" runat="server" ServerID="-1" />
                                    </div>
                                </div>--%>

                                <div class="col-xs-12" id="trVMLocationsControl" runat="server" visible="false">
                                    <EM:VMLocations ID="VMLocationsServer" runat="server" ServerID="-1" />
                                </div>

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

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

                            </asp:Panel>

                        </asp:WizardStep>
                        <asp:WizardStep ID="wsHVNSettings" runat="server" Title="Step 2">

                            <div id="TR_HVNSettings" runat="server" visible="false">

                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal19" runat="server" Text='<%$ Resources:Content,strNICForHVN %>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <asp:DropDownList ID="ddl_HVNNIC"  data-label="HVN NIC"  runat="server"></asp:DropDownList>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal23" runat="server" Text='<%$ Resources:Content,HVServer21 %>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:Label ID="Lbl_Switch"   runat="server"></asp:Label>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal20" runat="server" Text='<%$ Resources:Content,strNICIP %>' 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_NICIP"  data-label="NIC IP"  runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RFVNICIP" runat="server" ControlToValidate="TxBx_NICIP"
                                            Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TxBx_NICIP"
                                            Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>"
                                            ValidationExpression="<%$ Resources:Content,ValidateIP%>" />
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal21" runat="server" Text='<%$ Resources:Content,strPrefixLength %>' EnableViewState="false"></asp:Literal>: 
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="ddl_PrefixLength"  data-label="Prefix Length"  runat="server"></asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </asp:WizardStep>

                    </WizardSteps>
                    <StartNavigationTemplate>
                    </StartNavigationTemplate>
                </asp:Wizard>

            </div>
        </div>
    </div>
</asp:Content>
