<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_System_ThemeSettings, 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="body">
                <ajax:UpdatePanel ID="UP_Themes" runat="server">
                    <ContentTemplate>
                        <EM:TabContainer ID="TC_Themes" runat="server" OnClientActiveTabChanged="loadTabPanel">
                            <EM:TabPanel ID="Tab_Themes" runat="server" HeaderText="<%$ Resources:Content,M0143%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab0" runat="server" Style="display: none" />
                                    <asp:Panel ID="Pnl_Tab0" runat="server">
                                        <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN00001320%>  </h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button ID="Btn_AddTheme" CausesValidation="false" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,M0144 %>' />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <asp:GridView CssClass="table table-bordered table-striped table-hover table-responsive" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                            ID="GV_List" runat="server" AutoGenerateColumns="False">
                                            <Columns>
                                                <asp:BoundField DataField="ThemeName" HeaderText="<%$ Resources:Content, M0145%>" HeaderStyle-CssClass="col-xs-6" />
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN000171%>' HeaderStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lbl_IsDefaultTheme" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN000195%>' HeaderStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lbl_IsEnabled" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>' HeaderStyle-CssClass="col-xs-4">
                                                    <ItemTemplate>
                                                        <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="LB_SetDefault" Text='<%$ Resources:Content,GN000166%>' SkinID="linkButtondefault"
                                                            CommandName="SetDefault" runat="server" CausesValidation="false" />
                                                        <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" SkinID="linkButtondisable" ID="LB_EnableDisable" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ThemeId") %>'
                                                            CommandName="Disable" runat="server" Text="<%$ Resources:Content,GN00001025%>" CausesValidation="false" />
                                                        <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="LBtn_Remove" SkinID="linkButtonRemove" CommandName="Remove" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ThemeId") %>'
                                                            runat="server" Text="<%$ Resources:Content,GN0000278%>" CausesValidation="false" />
                                                        <EM:ConfirmButtonExtender ID="ConfirmButtonExtender_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                            TargetControlID="LBtn_Remove" runat="server">
                                                        </EM:ConfirmButtonExtender>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>

                                        </asp:GridView>
                                        <br />
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Ltrl_Allow" runat="server" Text='<%$ Resources:Content,GN003%>' /></td>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <asp:CheckBox ID="CB_AllowThemeChanging" runat="server" Text=" " />
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_Update" CausesValidation="false" runat="server" SkinID="goButton" Text="<%$ Resources:Content,GN0000654%>" /><asp:HiddenField ID="HF_ThemeId" runat="server" />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_AddTheme" runat="server" HeaderText="<%$ Resources:Content,M0144%>" Enabled="false">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab1" runat="server" Style="display: none" />
                                    <asp:Panel ID="Pnl_Tab1" runat="server" DefaultButton="Btn_Save" Visible="false">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <img src="../../App_Themes/Default/Images/icons/help.png" />&nbsp;&nbsp;
                                                    <asp:Literal ID="Ltr_ThemeHelp" runat="server" Text='<%$ Resources:Content,DEV1113%>'></asp:Literal>

                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                *
                                                    <asp:Literal ID="Ltr_ThemeName" runat="server" Text='<%$ Resources:Content,M0145%>'></asp:Literal>
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="Txbx_ThemeName" runat="server" MaxLength="20" ></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="RFV_ThemeName" runat="server" ControlToValidate="Txbx_ThemeName" Display="None" SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                                        <asp:RegularExpressionValidator ID="REV_ThemeName" runat="server" ControlToValidate="Txbx_ThemeName" Display="None" SetFocusOnError="true" ValidationExpression="^([a-zA-Z]+[a-zA-Z0-9]{3,19})$" ErrorMessage="Invalid theme name"></asp:RegularExpressionValidator>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-6 col-xs-12">
                                                                <label>
                                                                    <asp:Label ID="characters_starting" runat="server" Text='<%$ Resources:Content,CharactersStarting%>'></asp:Label></label>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Ltr_Enabled" runat="server" Text='<%$ Resources:Content,GN000195%>'></asp:Literal>
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:CheckBox Text=" " ID="CB_IsEnabled" runat="server" Checked="True" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Ltr_SetDefault" runat="server" Text='<%$ Resources:Content,GN000166%>'></asp:Literal>
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <asp:CheckBox Text=" " ID="CB_SetDefault" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button ID="Btn_Save" runat="server" SkinID="goButton" Text="<%$ Resources:Content,GN0000281%>" CssClass="btn btn-primary waves-effect btnAction" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                        <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001 %>' ID="ValidationSummary1"
                            runat="server" ShowMessageBox="True" ShowSummary="False" />

                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>
</asp:Content>

