<%@ control language="VB" autoeventwireup="false" inherits="Template_ResourcesQuota, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>


<div class="card">
    <div class="body">
        <div class="row">
            <div class="col-xs-12">
                <asp:Label ID="Lbl_ResourceError" runat="server" ForeColor="red" Font-Bold="true"
                    Text="<%$ Resources:Content,String1043%>" Visible="false"></asp:Label>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12" id="Div_Resources" runat="server">
                <asp:GridView ID="GV_Resources" runat="server" AllowPaging="false" CssClass="table table-bordered table-striped table-hover"
                    AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>"
                    PageSize="500">

                    <Columns>
                        <asp:TemplateField HeaderText="<%$ Resources:Content,L0060%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                            <ItemTemplate>
                                <%# Eval("ResourceName")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources:Content,SMI763%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                            <ItemTemplate>
                                <%# Eval("OldAllocation")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources:Content,SMI764%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                            <ItemTemplate>
                                <%# Eval("NewAllocation")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="col-xs-12" id="Div_ResourcesSH" runat="server">
                <asp:GridView ID="GV_ResourcesSH" runat="server" AllowPaging="false" CssClass="table table-bordered table-striped table-hover"
                    AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>"
                    PageSize="500">

                    <Columns>
                        <asp:TemplateField HeaderText="<%$ Resources:Content,L0060%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                            <ItemTemplate>
                                <%# Eval("ResourceID") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources:Content,DEV1002%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                            <ItemTemplate>
                                <%# Eval("TotalResources")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources:Content,DEV1003%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                            <ItemTemplate>
                                <%# Eval("UsedResources")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources:Content,DEV1004%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                            <ItemTemplate>
                                <%# Eval("AvailableResources")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources:Content,DEV1005%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                            <ItemTemplate>
                                <%# Eval("RequestedResources")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12">
                <asp:Button ID="Lbtn_Close" runat="server" Text="<%$ Resources:Content,GN0000858%>" ValidationGroup="addDomain" class="btn btn-primary waves-effect" />
            </div>
        </div>
    </div>
</div>
