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

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

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">

    <asp:Panel ID="Pnl_add" runat="server" DefaultButton="Btn_Add">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.DGN1110503%>                                                                                                                                 
                    </h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                    <asp:Literal ID="Literal41" runat="server" Text="<%$ Resources:Content,SMI724%>" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_RoleName" runat="server" MaxLength="100"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TxBx_RoleName"
                                        Display="None" SetFocusOnError="True" ValidationGroup="EditClientDetail"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *
                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,DGN1110504%>" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:TextBox ID="TxBx_Description" Rows="5" runat="server" TextMode="MultiLine" MaxLength="500"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_Description"
                                    Display="None" SetFocusOnError="True" ValidationGroup="EditClientDetail"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                    <div class="row" id="trSubReseller" runat="server">

                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,strIssubreseller%>" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:CheckBox ID="chkIsSubReseller" runat="server" AutoPostBack="true" Text=" " />

                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,ReadOnly%>" />:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:CheckBox ID="chkIsReadOnly" runat="server" Text="<%$ Resources:Content,ReadOnlyText%>" />

                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                                ValidationGroup="EditClientDetail" HeaderText="<%$ Resources:Content,EM000001%>" />
                            <asp:Button ID="Btn_Add" ValidationGroup="EditClientDetail" CausesValidation="true"
                                SkinID="saveButton" runat="server" Text="<%$ Resources:Content,GN0000281%>" CssClass="btn btn-primary btnAction" />
                            <asp:Button ID="Btn_Back" CausesValidation="false" SkinID="cancelButton" runat="server"
                                Text="<%$ Resources:Content,GN0000572%>" PostBackUrl="~/RCC/System/roles.aspx" CssClass="btn btn-primary" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <%= Resources.Content.FeaturesAccess%>                                                                                                                                 
                                    </h3>
                                </div>
                                <div class="body">

                                    <div class="row">
                                        <div class="col-sm-6 col-xs-12">
                                            <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
                                                <asp:Repeater ID="Repeater1" runat="server">
                                                    <ItemTemplate>
                                                        <div id="Div_CB_GroupName" runat="server">
                                                            <div class="panel panel-primary" id='<%# String.Format("rep1_group_permissions_panel_{0}", Container.ItemIndex)%>'>
                                                                <div class="panel-heading" id='<%# String.Format("rep1_group_permissions_heading_{0}", Container.ItemIndex)%>'>
                                                                    <h4 class="panel-title">
                                                                        <a role="button" id='<%# String.Format("rep1_toggle_permissions_{0}", Container.ItemIndex)%>' data-toggle="collapse" data-parent="#accordion" href='<%# String.Format("#rep1_group_permissions_body_{0}", Container.ItemIndex)%>' aria-expanded="false" aria-controls='<%# String.Format("rep1_group_permissions_body_{0}", Container.ItemIndex)%>' class="collapsed">
                                                                            <asp:Label ID="Lbl_GroupName" runat="server" />
                                                                        </a>
                                                                    </h4>
                                                                </div>
                                                                <div id='<%# String.Format("rep1_group_permissions_body_{0}", Container.ItemIndex)%>' class="panel-collapse collapse" role="tabpanel" aria-labelledby='<%# String.Format("rep1_group_permissions_heading_{0}", Container.ItemIndex)%>' aria-expanded="false" style="height: 0px;">
                                                                    <div class="panel-body">
                                                                        <asp:CheckBox ID="CB_SelectAll" runat="server" />
                                                                        <div id="Div_Data" runat="server">
                                                                            <div class="m-t-5"></div>

                                                                            <%--  <asp:CheckBoxList ID="CBL_Features" runat="server" Class="table hide-disabled-items" />--%>
                                                                            <asp:Repeater ID="Rep_Feature" runat="server" OnItemDataBound="Rep_Feature_ItemDataBound">
                                                                                <ItemTemplate>
                                                                                    <div>
                                                                                        <asp:CheckBox ID="ChBx_Feature" runat="server" />
                                                                                    </div>
                                                                                </ItemTemplate>
                                                                            </asp:Repeater>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="m-t-5"></div>
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </div>
                                        </div>

                                        <div class="col-sm-6 col-xs-12">
                                            <div class="panel-group" id="accordion1" role="tablist" aria-multiselectable="true">
                                                <asp:Repeater ID="Rep_FeaturesGroup" runat="server">
                                                    <ItemTemplate>
                                                        <div id="Div_CB_GroupName" runat="server">
                                                            <div class="panel panel-primary" <%# String.Format("rep2_group_permissions_panel_{0}", Container.ItemIndex)%>>
                                                                <div class="panel-heading" id='<%# String.Format("rep1_group_permissions_heading_{0}", Container.ItemIndex)%>'>
                                                                    <h4 class="panel-title">
                                                                        <a role="button" id='<%# String.Format("rep2_toggle_permissions_{0}", Container.ItemIndex)%>' data-toggle="collapse" data-parent="#accordion1" href='<%# String.Format("#rep2_group_permissions_body_{0}", Container.ItemIndex)%>' aria-expanded="false" aria-controls='<%# String.Format("rep2_group_permissions_body_{0}", Container.ItemIndex)%>' class="collapsed">
                                                                            <asp:Label ID="Lbl_GroupName" runat="server" />
                                                                        </a>
                                                                    </h4>
                                                                </div>
                                                                <div id='<%# String.Format("rep2_group_permissions_body_{0}", Container.ItemIndex)%>' class="panel-collapse collapse" role="tabpanel" aria-labelledby='<%# String.Format("rep2_group_permissions_heading_{0}", Container.ItemIndex)%>' aria-expanded="false" style="height: 0px;">
                                                                    <div class="panel-body">
                                                                        <asp:CheckBox ID="CB_SelectAll" runat="server" />
                                                                        <div id="Div_Data" runat="server">
                                                                            <div class="m-t-5"></div>
                                                                            <%-- <asp:CheckBoxList ID="CBL_Features" runat="server" Class="table hide-disabled-items" />--%>
                                                                            <asp:Repeater ID="Rep_Feature" runat="server" OnItemDataBound="Rep_Feature_ItemDataBound">
                                                                                <ItemTemplate>
                                                                                    <div>
                                                                                        <asp:CheckBox ID="ChBx_Feature" runat="server" />
                                                                                    </div>
                                                                                </ItemTemplate>
                                                                            </asp:Repeater>

                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="m-t-5">
                                                            </div>
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>

</asp:Content>
