<%@ control language="VB" autoeventwireup="false" inherits="RCC_Network_ServiceDirector_Workflows_UCCSPSubscriptionQuantityUpdate, MachSol.MachPanel.Web" %>

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

<div class="row">
    <div class="col-sm-3 col-xs-12 row-label">
        <label>
            *<asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,DGN1110609%>" />:
        </label>
    </div>
    <div class="col-sm-4 col-xs-12">
        <div class="form-group">
            <asp:DropDownList ID="Ddl_Subscriptions" runat="server" AutoPostBack="true"></asp:DropDownList>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-sm-3 col-xs-12 row-label">
        <label>
            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,M0091%>" />:
        </label>
    </div>
    <div class="col-sm-9 col-xs-12">
        <table class="table table-bordered table-striped table-hover">
            <asp:Repeater ID="Rep_Subscriptions" runat="server">
                <HeaderTemplate>
                    <tr>
                        <th class="col-xs-5">
                            <asp:Literal ID="Ltrl_SubsNameHeading" runat="Server" Text="<%$ Resources:Content,DGN1110287%>"></asp:Literal>
                        </th>
                        <th class="col-xs-5">
                            <asp:Literal ID="Ltrl_OfferNameHeading" runat="Server" Text="<%$ Resources:Content,strOfferName%>"></asp:Literal>
                        </th>
                        <th class="col-xs-2">
                            <asp:Literal ID="Ltrl_QuantityHeading" runat="Server" Text="<%$ Resources:Content,String35%>"></asp:Literal>
                        </th>
                    </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <asp:HiddenField ID="HF_SubsId" runat="server" />
                        <asp:HiddenField ID="HF_SubsQuantity" runat="server" />
                        <asp:HiddenField ID="HF_HasAddOns" runat="server" />
                        <asp:HiddenField ID="HF_OfferId" runat="server" />
                        <asp:HiddenField ID="HF_MSOfferId" runat="server" />
                        <td class="col-xs-5">
                            <asp:Label ID="Lbl_SubscriptionName" runat="server"></asp:Label><br />
                            <asp:Label ID="Lbl_NCETag" runat="server" Visible="false" Text="NCE" CssClass="csp-subs-tag"></asp:Label>
                            <asp:Label ID="Lbl_NCETrialTag" runat="server" Visible="false" Text="<%$ Resources:Content, GN00001544 %>" CssClass="csp-subs-tag"></asp:Label>
                            <asp:Label ID="Lbl_NCEBilling" runat="server" Visible="false" CssClass="csp-subs-tag"></asp:Label>
                        </td>
                        <td class="col-xs-5">
                            <asp:Label ID="Lbl_OfferName" runat="server"></asp:Label>
                        </td>
                        <td class="col-xs-2">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Quantity" runat="server" onchange="this.value == 0 ? this.value = '' : this.value;"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RFV_SubsQuantity" runat="server" ControlToValidate="TxBx_Quantity" Display="Dynamic" ErrorMessage="<%$ Resources:Content,strCSPSubsQtyIsMandatory %>" SetFocusOnError="true" ValidationGroup ="AddWorkflow"></asp:RequiredFieldValidator>
                            <AjaxToolkit:FilteredTextBoxExtender ID="FTE_Quantity" runat="server" FilterType="Numbers"
                                TargetControlID="TxBx_Quantity">
                            </AjaxToolkit:FilteredTextBoxExtender>
                        </td>

                    </tr>
                    <tr id="TR_SubsAddOns" runat="server">
                        <td colspan="5" class="child-listing">
                            <table class="table table-striped table-hover">
                                <asp:Repeater ID="Rep_Addon" runat="server" Visible="false" OnItemDataBound="Rep_Addon_ItemDataBound">
                                    <ItemTemplate>
                                        <tr>
                                            <td class="child-listing-first-col col-xs-5">
                                                <asp:Label ID="Lbl_SubscriptionName" runat="server"></asp:Label>
                                                <asp:HiddenField ID="HF_SubsId" runat="server" />
                                                <asp:HiddenField ID="HF_SubsQuantity" runat="server" />
                                            </td>
                                            <td class="col-xs-5">
                                                <asp:Label ID="Lbl_OfferName" runat="server"></asp:Label>
                                            </td>
                                            <td class="col-xs-2">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_Quantity" runat="server" onchange="this.value == 0 ? this.value = '' : this.value;"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <asp:RequiredFieldValidator ID="RFV_SubsQuantity" runat="server" ControlToValidate="TxBx_Quantity" Display="Dynamic" ErrorMessage="<%$ Resources:Content,strCSPSubsQtyIsMandatory %>" SetFocusOnError="true" ValidationGroup ="AddWorkflow"></asp:RequiredFieldValidator>
                                                <AjaxToolkit:FilteredTextBoxExtender ID="FTE_Quantity" runat="server" FilterType="Numbers"
                                                    TargetControlID="TxBx_Quantity">
                                                </AjaxToolkit:FilteredTextBoxExtender>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
</div>
