<%@ control language="VB" autoeventwireup="false" inherits="RCC_VPS_CC_AddHDD, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<div class="row">
    <asp:Repeater ID="repHDD" runat="server">
        <%--<HeaderTemplate>
            <div class="col-xs-12">
                <h5>
                    <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources: Content,HVServer35 %>'></asp:Literal></h5>
            </div>
        </HeaderTemplate>--%>
        <ItemTemplate>
            <div class="row col-xs-12">

                <div class="col-sm-3 col-xs-12 row-label">
                    <label>
                        *<asp:Literal ID="ltlDiskName" runat="server" Text='<%$ Resources: Content,HVServer88 %>'></asp:Literal>
                    </label>
                </div>

                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="txtDiskName" runat="server" Text=""></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RFV2" runat="server" ControlToValidate="txtDiskName"
                                Display="None" ValidationGroup="VPSHosting"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row col-xs-12">
                <div class="col-sm-3 col-xs-12 row-label">
                    <label>
                        *<asp:Literal ID="liHardDisk" runat="server" Text='<%$ Resources: Content,HVServer34 %>'></asp:Literal>
                    </label>
                    <asp:RequiredFieldValidator ID="RFV1" runat="server" ControlToValidate="TxBx_HardDiskSize"
                        Display="None" ValidationGroup="VPSHosting"></asp:RequiredFieldValidator>
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_HardDiskSize" runat="server"   MaxLength="5"></asp:TextBox>

                            <EM:FilteredTextBoxExtender ID="FTBE_TxBx_HardDiskSize" runat="server" TargetControlID="TxBx_HardDiskSize"
                                FilterType="Custom, Numbers" />

                        </div>
                    </div>
                </div>
                <div class="col-sm-4 col-xs-12">
                    <asp:DropDownList ID="ddl_FreeDiskByType" runat="server" OnSelectedIndexChanged="ddl_FreeDiskByType_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                </div>
                <div class="col-sm-2 col-xs-12">
                    <asp:Label ID="Lbl_DiskSpace" runat="server" Visible="false"></asp:Label>
                </div>
            </div>

            <div class="row col-xs-12">
                <div class="col-sm-3 col-xs-12 row-label">
                    <label>
                        <asp:Literal ID="ltlDiskType" runat="server" Text='<%$ Resources: Content,HVServer36 %>'></asp:Literal>
                    </label>
                </div>
                <div class="col-sm-8 col-xs-12">
                    <asp:RadioButton ID="rdbFixed" runat="server" Text='<%$ Resources: Content,strFixedSize %>' GroupName="DiskType" />
                    <asp:RadioButton ID="rdbDynamic" runat="server" Checked="true" Text='<%$ Resources: Content,strDynamicExpanding %>' GroupName="DiskType" />
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>


    <div class="col-xs-12 ">
        <asp:Button ID="lbtnCreate" runat="server" Text='<%$ Resources: Content,GN0000281 %>' CssClass="btn btn-primary btnAction" 
            OnClientClick="return confirm('VM must be re-booted for the changes to take effect, are you sure to continue?');"></asp:Button>  <%--OnClientClick='<%# "return confirm(" & Resources.Content.strIfMachineIsOnItWillbeOff & ");" %>'--%>

        <asp:Button ID="lbtnEdit" runat="server" Text='<%$ Resources: Content,GN0000281 %>'
            CssClass="btn btn-primary btnAction" Visible="false" OnClientClick="return confirm('VM must be re-booted for the changes to take effect, are you sure to continue?');"></asp:Button>

        <asp:Button ID="btnCancel" runat="server" Text='<%$ Resources: Content,GN0000572 %>' CssClass="btn btn-primary"></asp:Button>
            
       <%-- <%# "SetDefaultValue(this,&#39;" & Resources.Content.strIfMachineIsOnItWillbeOff & "&#39;)"%>--%>
    </div>
</div>
