<%@ control language="VB" autoeventwireup="false" inherits="RCC_VPS_CC_ModifyVMHostName, MachSol.MachPanel.Web" %>
<asp:MultiView ID="mvVMHostName" runat="server" ActiveViewIndex="0">
   
    <%--<asp:View ID="vShow" runat="server">
        
        <div class="col-sm-4 col-xs-12">
            <asp:Label ID="lblVMHostName" runat="server" class="display-block"></asp:Label>&nbsp;&nbsp;
        </div>
        <div class="col-sm-4 col-xs-12">
            <asp:Button ID="btnChange" runat="server" CssClass="btn btn-primary" Text="<%$ Resources:Content, GN0000385 %>" />
            <div class="clear-both">
            </div>
        </div>      
    </asp:View>--%>

    <asp:View ID="vModify" runat="server">
       
        <div class="col-sm-3 col-xs-12">
            <div class="form-group">
                <div class="form-line">
                    <asp:TextBox ID="txtVMHostName" CssClass="HostName" runat="server" data-required-msg="<%$ Resources:Content, strHostNameIsRequired %>" data-rebort-msg="<%$ Resources:Content, strVMMustBeReborted %>" ></asp:TextBox>
                </div>
            </div>
            <asp:RequiredFieldValidator ID="rfvVMName" runat="server" Text="*" ErrorMessage="Net BIOS Name is required."
                ControlToValidate="txtVMHostName" Display="None" ValidationGroup="VMName"></asp:RequiredFieldValidator>
        </div>
        <div class="col-sm-4 col-xs-12">
            <asp:Button ID="btnModify" runat="server" CssClass="btn btn-primary btnAction" ValidationGroup="VMName"
                Text="<%$ Resources:Content, GN0000385 %>" OnClientClick='if ($(".HostName").val().trim() == "") { alert($(".HostName").data("required-msg")); return false; } return confirm($(".HostName").data("rebort-msg"));'></asp:Button>
            <%--<asp:Button ID="btnCancel" runat="server" CssClass="btn btn-primary" CausesValidation="false" Text="<%$ Resources:Content, GN0000572 %>" class="width-90px" />--%>
        </div>        
    </asp:View>
</asp:MultiView>
<asp:ValidationSummary ID="VS_ModifyVMName" ValidationGroup="VMName" DisplayMode="BulletList"
    ShowSummary="false" ShowMessageBox="true" HeaderText="<%$ Resources:Content,SMI750%>"
    runat="server" />
