<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Sales_AddEditTemplate, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <script type="text/javascript" language="javascript">
        function Upload(Id) {
            var array = Id.split('TxBx_LeadActivitySubject');
            var Attachment = document.getElementById(array[0] + 'Attachment');
            var HF_PostType = document.getElementById(array[0] + 'HF_PostType');
            if (Attachment.value != "") {
                HF_PostType.value = "1"
                __doPostBack('dummy', '');
                //$object("_PageRequestManager")._doPostBack( "dummy", "" );
                return false;
            }
            else {
                //alert("Click Browse button and select a file to upload.");
                HF_PostType.value = "0"
                //return false;
            }
        }

    </script>
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <%-- <EM:TabContainer ID="TC_LeadDetail" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_Detail" runat="server" HeaderText=''>
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab0" runat="server" Style="display: none;" />

                            <asp:Panel ID="Pnl_TabContent0" runat="server">--%>

                <div class="row" id="divAddEditTemplate" runat="server">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <asp:Literal ID="ltlTemplateAdEdit" runat="server" Text="<%$ Resources:Content,Lync144%>" EnableViewState="false" />
                                </h3>
                            </div>
                            <div class="body">
                                <div id="Tbl_Detail" runat="server">
                                    <div id="Tbl_Edit" runat="server">

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                *
                                                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,String273%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_Name" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RFV_Name" runat="server" ControlToValidate="TxBx_Name"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="Lead"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>


                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal45" runat="server" Text="<%$ Resources:Content,GN0000597%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <div class="form-group">
                                                    <asp:TextBox ID="TxBx_LeadDescription" TextMode="MultiLine" CssClass="col-xs-12" Rows="5" runat="server"></asp:TextBox>
                                                </div>
                                            </div>
                                        </div>



                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                                                    ValidationGroup="Lead" HeaderText="<%$ Resources:Content,EM000001%>" />

                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_Save" ValidationGroup="Lead" runat="server" Text="<%$ Resources:Content,GN0000281%>" SkinID="defaultButton" />

                                                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" SkinID="defaultButton" />

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row" id="DivActivities" runat="server" visible="false">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3><%= Resources.Content.strActivities%>  </h3>
                            </div>
                            <div class="body">
                                <asp:Panel ID="Pnl_ActivityListing" runat="server">
                                    <div class="row Div_OpsRow" id="Table1" runat="server">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3><%= Resources.Content.GN00001320%>  </h3>
                                                </div>
                                                <div class="body">

                                                    <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_AddTask" runat="server"
                                                        Text="<%$ Resources:Content,Newtask%>"
                                                        SkinID="defaultButton" />

                                                    <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_AddPhoneCall" runat="server"
                                                        Text="<%$ Resources:Content,Newphonecall%>"
                                                        SkinID="defaultButton" />


                                                    <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_AddAppointment" runat="server"
                                                        Text="<%$ Resources:Content,Newappointment%>"
                                                        SkinID="defaultButton" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                       

                                    <asp:GridView CssClass="table table-bordered table-hover table-responsive table-striped" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                        ID="GV_List" AllowPaging="false" AllowSorting="false" runat="server" AutoGenerateColumns="False">
                                        <AlternatingRowStyle CssClass="altRow" />
                                        <Columns>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000371%>" SortExpression="ActivitySubject"
                                                HeaderStyle-CssClass="col-xs-6">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="Lb_Subject" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ActivitySubject")%>'
                                                        CommandArgument='<%# Eval("LeadActivityTemplateId")%>' CommandName="ShowDetail"></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000673%>"
                                                HeaderStyle-CssClass="col-xs-1">
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_ActivityType" runat="server"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>"
                                                HeaderStyle-CssClass="col-xs-1">
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_Status" runat="server"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0001300%>"
                                                HeaderStyle-CssClass="col-xs-1">
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_Priority" runat="server"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1">
                                                <ItemTemplate>
                                                    <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="LBtn_Remove" runat="server" Text="<%$Resources:Content,GN0000278 %>"
                                                        CommandArgument='<%# Eval("LeadActivityTemplateId")%>' CommandName="RemoveActivity"></asp:LinkButton>
                                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" TargetControlID="LBtn_Remove"></EM:ConfirmButtonExtender>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerTemplate>
                                            <EM:Pager ID="Pager1" runat="server" />
                                        </PagerTemplate>
                                    </asp:GridView>
                                </asp:Panel>
                                <asp:Panel ID="Pnl_Activity" runat="server" Visible="false">
                                    <div id="Table2" runat="server">
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,String273%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                  <asp:Literal ID="ltrTemplateName" runat="server"  EnableViewState="false" />
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                     <asp:Literal ID="Literal52" runat="server" Text="<%$ Resources:Content,GN0000371%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_LeadActivitySubject" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_LeadActivitySubject"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="Activity"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                        <asp:Literal ID="Literal53" runat="server" Text="<%$ Resources:Content,GN0000597%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-10 col-xs-12">
                                                <div class="form-group">
                                                    <asp:TextBox ID="TxBx_LeadActivityDescription" TextMode="MultiLine" CssClass="col-xs-11" Rows="5" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TxBx_LeadActivityDescription"
                                                        Display="None" SetFocusOnError="True" ValidationGroup="Activity"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" id="TR_AttendesRequired" runat="server">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                      <asp:Literal ID="Literal62" runat="server" Text="<%$ Resources:Content,AttendeesRequired%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <div class="form-group">
                                                    <asp:TextBox ID="TxBx_LeadAttendesRequired" TextMode="MultiLine" CssClass="col-xs-12" Rows="5" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TxBx_LeadAttendesRequired"
                                                        Display="None" SetFocusOnError="True" ValidationGroup="Activity"></asp:RequiredFieldValidator>
                                                    <asp:Literal ID="Ltl_Help1" runat="server" Text="Comma separated list of Name or Email."></asp:Literal>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" id="TR_AttendesOptional" runat="server">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal63" runat="server" Text="<%$ Resources:Content,AttendeesOptional%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <div class="form-group">
                                                    <asp:TextBox ID="TxBx_LeadAttendesOptional" TextMode="MultiLine" CssClass="col-xs-12" Rows="5" runat="server"></asp:TextBox>
                                                    <asp:Literal ID="Literal64" runat="server" Text="Comma separated list of Name or Email."></asp:Literal>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" id="TR_Location" runat="server">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal65" runat="server" Text="<%$ Resources:Content,GN0001223%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_LeadActivityLocation" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                      <asp:Literal ID="Literal54" runat="server" Text="<%$ Resources:Content,SPT002811%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_LeadActivityOwner" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" id="TR_CallFrom" runat="server">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                         <asp:Literal ID="Literal67" runat="server" Text="<%$ Resources:Content,Callfrom%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_CallFrom" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TxBx_CallFrom"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="Activity"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ErrorMessage="<%$ Resources:Content,DGN1110070%>"
                                                            ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_CallFrom"
                                                            Display="None" SetFocusOnError="True" ValidationExpression="^([+]?[\s0-9()-]{5,20})$"
                                                            ValidationGroup="Activity"></asp:RegularExpressionValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" id="TR_CallTo" runat="server">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                            <asp:Literal ID="Literal60" runat="server" Text="<%$ Resources:Content,Callto%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_CallTo" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TxBx_CallTo"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="Activity"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ErrorMessage="<%$ Resources:Content,DGN1110070%>"
                                                            ID="RegularExpressionValidator11" runat="server" ControlToValidate="TxBx_CallTo"
                                                            Display="None" SetFocusOnError="True" ValidationExpression="^([+]?[\s0-9()-]{5,20})$"
                                                            ValidationGroup="Activity"></asp:RegularExpressionValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row" runat="server" id="TR_Direction">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                        <asp:Literal ID="Literal66" runat="server" Text="<%$ Resources:Content,Calldirection%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_Direction" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" runat="server" id="TR_Outcome">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                          <asp:Literal ID="Literal68" runat="server" Text="<%$ Resources:Content,Calloutcome%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_Outcome" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                         <asp:Literal ID="Literal55" runat="server" Text="<%$ Resources:Content,String385%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_LeadActivityStatus" runat="server" Enabled="false"></asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                       <asp:Literal ID="Literal56" runat="server" Text="<%$ Resources:Content,GN0001300%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_LeadActivityPriority" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                        <asp:Literal ID="Literal57" runat="server" Text="<%$ Resources:Content,OCS007%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_LeadActivityDuration" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                         <asp:Literal ID="Literal58" runat="server" Text="<%$ Resources:Content,GN0000722%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-1 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_LeadActivityDueDate" runat="server"></asp:TextBox>
                                                         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_LeadActivityDueDate"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="Activity"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>

                                            </div>
                                            <div class="col-sm-3 col-xs-12">
                                                <div class="form-line">
                                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,strDaysAfter%>" EnableViewState="false" />
                                                </div>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_LeadActivityDueDateTime" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                             <asp:Literal ID="Literal59" runat="server" Text="<%$ Resources:Content,GN00001337%>" EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div>
                                                        <input id="Attachment" type="file" runat="server" size="50" />

                                                    </div>
                                                    <asp:HiddenField ID="HF_PostType" runat="server" Value="-1" />
                                                    <%--<div id="Div_NoAttachedFiles" runat="server" style="color: blue">No attachments.</div>--%>
                                                </div>
                                            </div>
                                            <div class="col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <asp:Button CssClass="btn btn-primary waves-effect" SkinID="goButton" ID="Btn_Upload" runat="server" Text="<%$ Resources:Content,DGN1110451%>" />
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                            </div>
                                            <div class="col-sm-10 col-xs-12">
                                                <div class="form-group">
                                                    <asp:GridView ID="GV_Attachment" HorizontalAlign="center" runat="server"
                                                        AutoGenerateColumns="False" CssClass="table table-bordered table-hover table-responsive table-striped" GridLines="None" AllowPaging="false">
                                                        <Columns>
                                                            <asp:TemplateField HeaderStyle-CssClass="col-xs-9" HeaderText="<%$ Resources:Content,DGN1110452%>" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <div id="Div_FileName" runat="server">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderStyle-CssClass="col-xs-3" HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-HorizontalAlign="Left">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" CommandName="Download" ID="LB_Download" runat="server" Text="Download"></asp:LinkButton>
                                                                    <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" CommandName="Remove" ID="LB_Remove" runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" runat="server" visible="false">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN0001308%>  </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:GridView CssClass="table table-bordered table-hover table-responsive table-striped" BorderStyle="None" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                                    ID="GV_Notes" runat="server" AutoGenerateColumns="false" AllowPaging="false">
                                                                    <Columns>

                                                                        <asp:TemplateField>
                                                                            <ItemTemplate>
                                                                                <div class="comment user">
                                                                                    <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>
                                                                                </div>
                                                                            </ItemTemplate>

                                                                            <AlternatingItemTemplate>
                                                                                <div class="comment user">
                                                                                    <div id="Div_Notes" runat="server" class="commentMessageUser"></div>
                                                                                    <div id="Div1" class="commentMessageUser">
                                                                                        <i>
                                                                                            <asp:Label ID="Td_Employee" runat="server" />
                                                                                            -
                                                                                <asp:Label ID="Td_Date" runat="server" /></i>
                                                                                    </div>
                                                                                </div>
                                                                            </AlternatingItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%> " HeaderStyle-Width="15%">
                                                                            <ItemTemplate>

                                                                                <asp:LinkButton CssClass="btn btn-primary waves-effect" ID="LB_Edit" runat="server" Text="<%$ Resources:Content,GN0000276%>" CommandName="Edit_Notes" SkinID="linkButtonStarted" />
                                                                                <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000377%>"
                                                                                    SkinID="linkButtonDelete" 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 class="row" runat="server" visible="false">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN00001336%>  </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:TextBox ID="TxBx_Notes" CssClass="col-xs-12" Rows="5" TextMode="MultiLine"
                                                                        runat="server"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" SkinID="saveButton" ValidationGroup="save" ID="Btn_AddNote" runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <%-- Validation Logic START--%>
                                            <asp:ValidationSummary ShowMessageBox="true" ShowSummary="false" ID="ValidationSummary1" 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 class="row">
                                            <div class="col-xs-12">
                                                <asp:ValidationSummary ShowMessageBox="true" ShowSummary="false" ID="ValidationSummary2" HeaderText='<%$ Resources:Content,EM000001 %>'
                                                    runat="server" ValidationGroup="Activity" />
                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_SaveActivity" runat="server" SkinID="saveButton" Text="<%$ Resources:Content,GN0000281%>" ValidationGroup="Activity" />

                                                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_CancelActivity" runat="server" SkinID="cancelButton" Text="<%$ Resources:Content,GN0000572%>" CausesValidation="false" />

                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                    </div>
                </div>

                <%--</asp:Panel>


                        </ContentTemplate>
                    </EM:TabPanel>

                </EM:TabContainer>--%>
            </div>
        </div>
    </div>
</asp:Content>

