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

<div class="row">

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.GN0001308%>      <%--Operations--%>                                                                                                                             
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12" >
                        <div class="notes-list">
                            <asp:SqlDataSource ID="DS_AllNotes" runat="server"></asp:SqlDataSource>
                            <asp:GridView DataSourceID="DS_AllNotes" CssClass="table table-bordered table-striped table-hover"
                                EmptyDataText="<%$ Resources:Content, GN00001375 %>" ID="GV_AllNotes" runat="server"
                                AutoGenerateColumns="false" AllowPaging="false">
                                <Columns>
                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-10" ItemStyle-CssClass="col-xs-10" HeaderText="<%$ Resources:Content,GN00001336%>">
                                        <ItemTemplate>

                                            <div id="Div_Notes" runat="server" class="commentMessageTech"></div>
                                            <div id="Div1" class="commentMessageTech">
                                                <i>
                                                    <asp:Label ID="Td_Employee" runat="server" />
                                                    -
                                            <asp:Label ID="Td_Date" runat="server" /></i>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LB_Edit" CssClass="btn btn-primary" runat="server" Text="<%$ Resources:Content,GN0000276%>" CommandName="Edit_Notes" />
                                            <asp:LinkButton ID="LB_Delete" CssClass="btn btn-primary btnAction" runat="server" Text="<%$ Resources:Content,GN0000377%>"
                                                CommandName="Delete_Notes" />
                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                TargetControlID="LB_Delete" runat="server">
                                            </EM:ConfirmButtonExtender>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>
<br />
<div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.GN00001336%>      <%--Operations--%>                                                                                                                             
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="form-group">
                                <asp:TextBox ID="TxBx_Notes" Height="100px" CssClass="col-xs-12" TextMode="MultiLine" runat="server"></asp:TextBox>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <div class="form-group">
                            <asp:Button ValidationGroup="save" ID="Btn_Add" runat="server" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" />
                            <%-- Validation Logic START--%>
                            <asp:ValidationSummary ShowMessageBox="true" ShowSummary="false" ID="VS" HeaderText='<%$ Resources:Content,EM000001 %>'
                                runat="server" ValidationGroup="save" />
                            <asp:RequiredFieldValidator Display="None" ID="RFV_Notes" ControlToValidate="TxBx_Notes"
                                runat="server" ErrorMessage='Forget to enter notes?' ValidationGroup="save" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <%-- Validation Logic END--%>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
