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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI" TagPrefix="cc1" %>
<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">

        <div class="row" id="Pnl_TemplateListing" runat="server">
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <h3><%= Resources.Content.strCustomeTiles%></h3>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_AddCustomeTile" runat="server" Text="<%$ Resources:Content,strAddCustomeTile%>" />
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:GridView ID="GV_CustomeTiles" DataKeyNames="Id" CssClass="table table-bordered table-striped table-hover" runat="server"
                                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' AllowPaging="true" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,strName%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_Name" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.Name")%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                      
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,strShowToReseller%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_ShowOnRcc" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText='<%$ Resources:Content,strShowToCustomer%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_ShowOnCCC" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText='<%$ Resources:Content,strShowTostaff%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_ShowOnStaff" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText='<%$ Resources:Content,strShowTo4th%>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_ShowOn4th" runat="server" />
                                            </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" Text='<%$ Resources:Content,GN0000276%>' class="btn btn-primary waves-effect" CommandName="EditRow" runat="server" />
                                                <asp:LinkButton ID="LB_Delete" Text='<%$ Resources:Content,GN0000278%>' class="btn btn-primary waves-effect btnAction" CommandName="DeleteRow" runat="server" />
                                                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                    TargetControlID="LB_Delete" runat="server">
                                                </EM:ConfirmButtonExtender>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="row" id="Pnl_AddEditCustomTiles" runat="server" visible="false">
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <h3>
                            <asp:Literal ID="Ltr_Heading" runat="server" Text='<%$ Resources:Content, strAddUpdateCustomTile%>' EnableViewState="false" /></h3>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content, strName%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-6 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Name" MaxLength="100" runat="server" Text="" data-label="Name"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="Rfv_4" runat="server" ControlToValidate="TxBx_Name"
                                            Display="None" SetFocusOnError="True" ValidationGroup="Template"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <%-- <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>
                                    *<asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content, strIconPath%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-6 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_IconPath" runat="server" Text=""></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_IconPath"
                                            Display="None" SetFocusOnError="True" ValidationGroup="Template"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>--%>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <asp:Literal ID="Literal23" runat="server" Text="<%$ Resources:Content,strIconPath%>" />:
                            </div>
                            <div class="col-sm-8 col-xs-12">
                                <div class="form-group">
                                    <asp:RadioButtonList ID="Rbl_LoginBG" runat="server" AutoPostBack="true" RepeatColumns="2" data-label="Icon Path Option">
                                        <asp:ListItem Text="<%$ Resources:Content,ImageUrl%>" Value="0" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="<%$ Resources:Content,UploadImage%>" Value="1"></asp:ListItem>
                                    </asp:RadioButtonList>
                                    <div id="Div_BackgroundUrl" runat="server">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_IconPath" MaxLength="200" runat="server" data-label="Image URL"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div id="Div_UploadBackground" runat="server" visible="false">
                                        <div class="fileupload fileupload-new" data-provides="fileupload">
                                            <span class="btn btn-primary btn-file">
                                                <span class="fileupload-new"><%= Resources.Content.SelectBGImage%></span>
                                                <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                                <asp:FileUpload ID="Bg_Upload" runat="server" />
                                            </span>
                                            <span class="thumbnail hide"></span>
                                            <span class="fileupload-preview"></span>
                                            <a href="#" class="close fileupload-exists font-40 col-deep-purple" data-dismiss="fileupload" style="float: none">×</a>
                                        </div>
                                        <asp:Image ID="Image_BackgroundImage" runat="server" Width="96" Height="96" Visible="false" />
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>*<asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content, strURL%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-6 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_HtmlLink" runat="server" Text="" MaxLength="200" data-label="Tile URL"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_HtmlLink"
                                            Display="None" SetFocusOnError="True" ValidationGroup="Template"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="divShowToReseller" runat="server">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content, strShowToReseller%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:CheckBox ID="Cb_ShowToReseller" runat="server" Text=" " Checked="false" data-label="Show to Reseller" />
                                </div>
                            </div>
                        </div>
                        <div class="row" id="divShowToCustomer" runat="server">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content, strShowToCustomer%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:CheckBox ID="Cb_ShowToCustomer" runat="server" Text=" " Checked="false" data-label="Show to Customer" />
                                </div>
                            </div>
                        </div>

                        <div class="row" id="divShowToStaff" runat="server">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content, strShowToStaff%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:CheckBox ID="Cb_ShowToStaff" runat="server" Text=" " Checked="false" data-label="Show to Staff User" />
                                </div>
                            </div>
                        </div>

                        <div class="row" runat="server">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal8" runat="server" Text='<%$ Resources:Content, strShowTo4th%>' EnableViewState="false" />:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:CheckBox ID="Cb_Show4thLevel" runat="server" Text=" " Checked="false" data-label="Show on 4th level" />
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="Template" DisplayMode="BulletList"
                                    ShowSummary="false" ShowMessageBox="true" HeaderText="<%$ Resources:Content,EM000001%>" runat="server" />
                                <asp:Button ID="Btn_Save" class="btn btn-primary waves-effect btnAction" ValidationGroup="Template" runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                                <asp:Button ID="Btn_Cancel" class="btn btn-primary waves-effect" CausesValidation="false" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


    </div>
</asp:Content>

