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

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

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


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

        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,HVServer04 %>' 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>

                <%--<div class="col-xs-12"></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">
                            <%--<div class="col-xs-12">--%>
                            <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" runat="server" Text=" " 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="Literal7" 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>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RFV_ReferenceId" runat="server" ControlToValidate="TxBx_ReferenceId"
                                            Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <asp:Literal ID="Literal10" runat="server" Text='<%$ Resources:Content,HVServer0661 %>' EnableViewState="false"></asp:Literal>
                                    </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"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RFV_IPAddress" runat="server" ControlToValidate="TxBx_IPAddress"
                                            Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="TxBx_IPAddress"
                                            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="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="Literal1" 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" runat="server" CssClass="CommonPropertiesForTextBox"></asp:TextBox>
                                            </div>
                                        </div>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ValidationGroup="VHDLocation" 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>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ValidationGroup="VHDLocation" 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 class="col-sm-1 col-xs-12">
                                        GB
                                    </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="VHDLocation" 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  row-label">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_Username" data-label="User name"  runat="server"></asp:TextBox>

                                                            </div>
                                                        </div>
                                                    </div>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ControlToValidate="TxBx_Username"
                                                        Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                </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" runat="server" TextMode="Password"></asp:TextBox>

                                                            </div>
                                                        </div>
                                                        <br />
                                                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN00001530%>"
                                                            EnableViewState="false"></asp:Literal>
                                                    </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>
                                                    </div>
                                                    <asp:CompareValidator ID="CV_ConfirmPassword" runat="server" Display="None" ControlToCompare="TxBx_Password"
                                                        ControlToValidate="TxBx_ConfirmPassword" ErrorMessage="<%$ Resources:Content,DGN1110005 %>"></asp:CompareValidator>
                                                </div>--%>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <%-- <div class="row">
                                    <div class="col-xs-12" id="trVHDLocationsControl" runat="server">
                                        <EM:VMLocations ID="VMLocationsServer" runat="server" />
                                    </div>
                                </div>--%>

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

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

                                    </div>
                                </div>

                                <asp:ValidationSummary ID="ValidationSum_1" runat="server" HeaderText='<%$ Resources:Content,EM000001 %>'
                                    ShowMessageBox="True" ShowSummary="False" />
                            </asp:Panel>
                            <%--</div>--%>
                        </asp:WizardStep>
                        <asp:WizardStep ID="wsHVNSettings" runat="server" Title="Step 2">
                            <%--<div class="col-xs-12">--%>
                            <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" 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" 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">
                                            <div class="form-line">--%>
                                        <asp:DropDownList ID="ddl_PrefixLength" runat="server"></asp:DropDownList>
                                        <%--</div>
                                        </div>--%>
                                        <%--  <asp:RangeValidator ID="RVPrefixLength" runat="server" MinimumValue="1" MaximumValue="32" ErrorMessage='<%$ Resources:Content,strPrefixLenghtpossiblevalueslies1to32 %>' ControlToValidate="TxBx_PrefixLength"></asp:RangeValidator>
                                        <asp:RequiredFieldValidator ID="RFVPrefixLength" runat="server" ControlToValidate="TxBx_PrefixLength"
                                            Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>--%>
                                    </div>
                                </div>

                            </div>

                            <%--</div>--%>
                        </asp:WizardStep>

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


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

</asp:Content>
