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

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

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.LeadViews%>  </h3>
            </div>
            <div class="body">
                <ajax:UpdatePanel ID="UP_Summary" runat="server" UpdateMode="Conditional" RenderMode="Inline">
                    <ContentTemplate>
                        <div class="row Div_OpsRow" id="Tbl_Operations" 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_AddView" runat="server" SkinID="defaultButton" Text="<%$ Resources:Content,AddView%>" />

                                    </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" DataKeyNames="LeadViewId">
                            <Columns>
                                <asp:TemplateField HeaderText="<%$ Resources:Content, strName %>">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="LBL_Name" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.ViewName")%>'></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField
                                    HeaderText="<%$ Resources:Content, DGN1110415 %>" HeaderStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <asp:Label ID="LBL_Contacts" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField
                                    HeaderText="<%$ Resources:Content, strSubscribers %>" HeaderStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="LBL_Subscribers" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField
                                    HeaderText="<%$ Resources:Content, GN0000673 %>" HeaderStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="LBL_Type" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-3">
                                    <ItemTemplate>

                                        <asp:LinkButton CssClass="btn btn-primary waves-effect" ID="LBtn_Edit" runat="server" Text="<%$Resources:Content,strEdit %>"
                                            CommandArgument='<%# Eval("LeadViewId")%>' CommandName="EditView"></asp:LinkButton>
                                        <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="LBtn_Clone" runat="server" Text="<%$Resources:Content,DGN1110198 %>"
                                            CommandArgument='<%# Eval("LeadViewId")%>' CommandName="CloneView"></asp:LinkButton>
                                        <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="LBtn_Remove" runat="server" Text="<%$Resources:Content,GN0000278 %>"
                                            CommandArgument='<%# Eval("LeadViewId")%>' CommandName="RemoveView"></asp:LinkButton>
                                        <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" TargetControlID="LBtn_Remove"></EM:ConfirmButtonExtender>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>

                        </asp:GridView>

                        <div class="row" id="Tbl_ViewAddEdit" runat="server" visible="false">
                            <div class="col-xs-12">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Literal ID="Ltl_ViewAddEditTitle" runat="server" Text="<%$ Resources:Content,AddView%>" EnableViewState="false"></asp:Literal>
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                        <asp:Literal ID="Literal39" runat="server" Text="<%$ Resources:Content,GN000170%>"
                                                            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" MaxLength="200" Width="300px"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_Name"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="AddEditView"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                        <asp:Literal ID="Literal1" 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_Desc" TextMode="MultiLine" Rows="10" CssClass="col-xs-12" runat="server" MaxLength="1000"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_Desc"
                                                        Display="None" SetFocusOnError="True" ValidationGroup="AddEditView"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                *
                                                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN0000673%>"
                                                            EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:RadioButtonList ID="RBL_Type" runat="server">
                                                        <asp:ListItem Text="<%$ Resources:Content,DGN1110595%>" Value="0" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0311%>" Value="1"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" id="Td_Conditions" runat="server">
                                            <div class="col-xs-12">
                                                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_GroupAnd" runat="server" Text="<%$ Resources:Content,Groupand%>" SkinID="defaultButton" />
                                                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_GroupOr" runat="server" Text="<%$ Resources:Content,Groupor%>" SkinID="defaultButton" />
                                            </div>
                                            <div class="col-xs-12">
                                                <asp:GridView ID="GV_Conditions" CssClass="table table-bordered table-hover table-responsive table-striped"
                                                    EmptyDataText="<%$ Resources:Content, GN00001375 %>" runat="server" AutoGenerateColumns="false" AllowPaging="false" ShowHeader="false">
                                                    <Columns>
                                                        <asp:TemplateField ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <asp:CheckBox CssClass="option-menu" ID="CB_SelectCondition" runat="server" Text=" " />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_ConditionType" runat="server">
                                                                </asp:Label>
                                                                <asp:Literal runat="server">&nbsp;&nbsp;&nbsp;</asp:Literal>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ItemStyle-CssClass="col-xs-6">
                                                            <ItemTemplate>
                                                                <asp:LinkButton CssClass="btn btn-primary waves-effect" ID="LB_AddCondition" runat="server" Text="<%$ Resources:Content,Addcondition%>" CausesValidation="false"
                                                                    CommandName="AddCondition" CommandArgument='<%# Container.DataItemIndex %>'></asp:LinkButton>
                                                                <asp:Label ID="Lbl_Condition" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ItemStyle-CssClass="col-xs-4">
                                                            <ItemTemplate>
                                                                <asp:LinkButton CssClass="btn btn-primary waves-effect" ID="LB_ChangeCondition" runat="server" CommandName="ChangeCondition" CommandArgument='<%# Container.DataItemIndex %>'></asp:LinkButton>

                                                                <asp:Literal ID="Literal3" runat="server">&nbsp;&nbsp;&nbsp;</asp:Literal>
                                                                <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="LB_UnGroup" runat="server" CausesValidation="false" Text="<%$ Resources:Content,Un-group%>"
                                                                    CommandName="UnGroup" CommandArgument='<%# Container.DataItemIndex %>' />
                                                                <asp:Literal ID="Literal4" runat="server">&nbsp;&nbsp;&nbsp;</asp:Literal>
                                                                <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="LB_Delete" runat="server" CausesValidation="false" Text="<%$ Resources:Content,GN0000377%>"
                                                                    SkinID="linkButtonDelete" CommandName="DeleteCondition" CommandArgument='<%# Container.DataItemIndex %>' />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                        <div id="Td_AddCondition" runat="server" visible="false">
                                            <div class="row">
                                                <div class="col-sm-2 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_SelectField" AutoPostBack="true" runat="server">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_Condition" AutoPostBack="true" runat="server"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4 col-xs-12" id="div_TxBx_Condition" runat="server">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_Condition" runat="server" Width="300px" Visible="false"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4 col-xs-12" id="div_DDL_SelectValue" runat="server">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_SelectValue" runat="server" Visible="false"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-sm-4 col-xs-12" id="div_LBx_SelectValue" runat="server">
                                                    <div class="form-group">
                                                        <asp:ListBox ID="LBx_SelectValue" runat="server" SelectionMode="Multiple" Visible="false" CssClass="ms"></asp:ListBox>
                                                    </div>
                                                </div>
                                                <div class="col-sm-2 col-xs-12">
                                                    <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_SaveCondition" SkinID="defaultButton" runat="server" Text="<%$ Resources:Content,GN0000281%>" />

                                                    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_CancelCondition" SkinID="cancelButton" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                                                    ValidationGroup="AddEditView" HeaderText="<%$ Resources:Content,EM000001%>" />

                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_Save" ValidationGroup="AddEditView" CausesValidation="true"
                                                    SkinID="saveButton" runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                                                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Cancel" runat="server" CausesValidation="False" SkinID="cancelButton"
                                                    Text="<%$ Resources:Content,GN0000572%>" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>
</asp:Content>

