<%@ control language="VB" autoeventwireup="false" inherits="RCC_Exchange_CC_DLGroupActions, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Exchange/CC/AddEditMBTemplate.ascx" TagName="AddEditMBTemplate"
    TagPrefix="UC" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="CC" %>
<CC:UpdatePanelInlineScriptControl ID="UpdatePanelInlineScriptControl1" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {

            $("#" + $(".currentSection").val()).css("display", "block");
            $("a[href='" + $(".currentSection").val() + "']").parent().addClass("current");

            $(".O365-detail-content").not("#" + $(".currentSection").val()).css("display", "none");

            $(".O365-Operations a").click(function (event) {
                event.preventDefault();
                // console.log('add current class to parent');
                $(this).parent().addClass("current");
                //console.log('remove current class from siblings');
                $(this).parent().siblings().removeClass("current");
                var tab = $(this).attr("href").replace(/cc\//gi, '');
                // console.log(tab);
                $(".currentSection").val(tab);
                $(".O365-detail-content").not("#" + tab).css("display", "none");
                $("#" + tab).fadeIn();
                //$(window).scrollTop($('#Pnl_Operations').offset().top);
                // $("#Pnl_Operations").focus()
                return false;
            });

            $(".Rbtn-Show-Role").click(function () {

                $(".select-role").show();
            });

            $(".Rbtn-Hide-Role").click(function () {

                $(".select-role").hide();
            });
            //update();

            setTimeout(function () { $("input[type='checkbox'], input[type='radio']").trigger("change"); /*$("input[type='checkbox']").trigger("click");*/ }, 300);

        });

    </script>
</CC:UpdatePanelInlineScriptControl>

<asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_SrchDL">
    <div class="row">

        <div class="panel-group search-panel" id="AS_DLGroupActions" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_DLGroupActions">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_DLGroupActions" href="#<%= CSB_DLGroupActions.ClientID%>" aria-expanded="true" aria-controls="SH_DLGroupActions">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>
                    <div id="CSB_DLGroupActions" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_DLGroupActions" aria-expanded="false">
                        <div class="row">
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <asp:DropDownList ID="DDL_SrchDLSelect" runat="server">
                                        <asp:ListItem Selected="True" Text="<%$ Resources:Content,GN000170%>" Value="name"></asp:ListItem>
                                        <asp:ListItem Text="<%$ Resources:Content,GN0000652%>" Value="email"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <div class="form-group form-float">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_SrchDLValue" runat="server" MaxLength="200"></asp:TextBox>
                                        <asp:Label ID="Label28" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000387%>" CssClass="form-label"></asp:Label>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xs-12">
                                <div class="form-group form-float">
                                    <asp:Button ID="Btn_SrchDL" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" CausesValidation="false" />
                                    <asp:Button ID="Btn_ClearSearchDL" Visible="false" CssClass="btn btn-primary waves-effect" runat="server" CausesValidation="false"
                                        Text="<%$ Resources:Content,String289 %>" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

<div class="row">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,L0017%>"
                        EnableViewState="false">
                    </asp:Literal>:</h3>
            </div>
            <div class="body" id="Tbl_AllDLs" runat="server">

                <div class="row">
                    <div class="col-xs-12">
                        <EM:AddSelectableSelected ID="UCDLs" runat="server" />
                    </div>
                </div>

                
            </div>
        </div>
        <br />
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,GN00001320%>" EnableViewState="false" />
                </h3>
            </div>
            <div class="body">
                <%--<asp:Button ID="Btn_Disable" runat="server" CssClass="btn btn-primary waves-effect" Text='<%$ Resources:Content,GN00001025%>' />
                <asp:Button ID="Btn_Enable" runat="server" CssClass="btn btn-primary waves-effect" Text='<%$ Resources:Content,GN00001024%>' />--%>
                <asp:Button ID="Btn_Delete" runat="server" CssClass="btn btn-primary waves-effect" Text='<%$ Resources:Content,GN0000278%>' />
                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                    TargetControlID="Btn_Delete" runat="server">
                </EM:ConfirmButtonExtender>
            </div>
        </div>
        <br />
        <div class="row">
            <div class="col-xs-12 ">
                <div class="col-xs-12 col-sm-3 no-padding">
                    <div id="Pnl_Operations" runat="server" class="O365-Operations">
                        <input type="hidden" id="HF_CurrentSection" runat="server" class="currentSection" />
                        <div class="O365-Operations-Links">
                            <ul class="nav-pills nav-stacked">

                                <li><a href="GeneralSettings" id="AP_GeneralSettings" runat="server">
                                    <asp:Literal ID="AD_GeneralSettings" runat="server" Text="<%$ Resources:Content,SM400028%>"
                                        EnableViewState="false" /></a></li>

                                <li><a href="Restrictions" id="AP_Restrictions" runat="server">
                                    <asp:Literal ID="AD_Restrictions" runat="server" Text="<%$ Resources:Content,DGN1110340%>"
                                        EnableViewState="false" /></a></li>

                                <li><a href="ManagedBy" id="AP_ManagedBy" runat="server">
                                    <asp:Literal ID="AD_ManagedBy" runat="server" Text="<%$ Resources:Content,DGN1110410%>"
                                        EnableViewState="false" /></a></li>

                                <li><a href="ListMembers" id="AP_ListMembers" runat="server">
                                    <asp:Literal ID="AD_ListMembers" runat="server" Text="<%$ Resources:Content,AddListMembers%>"
                                        EnableViewState="false" /></a></li>

                                <li><a href="RemoveListMembers" id="AP_RemoveListMembers" runat="server">
                                    <asp:Literal ID="AD_RemoveListMembers" runat="server" Text="<%$ Resources:Content,RemoveListMembers%>"
                                        EnableViewState="false" /></a></li>

                                <li><a href="GrantPermissions" id="AP_GrantPermissions" runat="server">
                                    <asp:Literal ID="AD_GrantPermissions" runat="server" Text="<%$ Resources:Content,GrantPermissions%>"
                                        EnableViewState="false" /></a></li>

                                <li><a href="RemovePermissions" id="AP_RemovePermissions" runat="server">
                                    <asp:Literal ID="AD_RemovePermissions" runat="server" Text="<%$ Resources:Content,RemovePermissions%>"
                                        EnableViewState="false" /></a></li>

                                <li><a href="MessageApproval" id="AP_MessageApproval" runat="server">
                                    <asp:Literal ID="AD_MessageApproval" runat="server" Text="<%$ Resources:Content,MessageApproval%>"
                                        EnableViewState="false" /></a></li>

                                <li><a href="UpdateMembersUsingCSV" id="AP_UpdateMembersUsingCSV" runat="server">
                                    <asp:Literal ID="AD_UpdateMembersUsingCSV" runat="server" Text="<%$ Resources:Content,UpdateMembersUsingCSV%>"
                                        EnableViewState="false" /></a></li>

                            </ul>
                        </div>

                    </div>
                </div>

                <div class="col-xs-12 col-sm-9">

                    <div id="GeneralSettings" class="card O365-detail-content">
                        <div class="panel-body">
                            <asp:Panel ID="Pnl_General" runat="server" DefaultButton="Btn_SaveGeneralInfo">
                                <div class="row">
                                    <div class="col-sm-6 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,DGN1110527%>"
                                                EnableViewState="false">
                                            </asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        <asp:CheckBox ID="CB_AdrBook" runat="server" Text=" " />
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        <asp:Button ID="Btn_SaveGeneralInfo" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                            CssClass="btn btn-primary waves-effect btnAction" CausesValidation="false" />
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-6 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,DGN1110353%>"
                                                EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        <asp:CheckBox ID="ChBx_oOFAutoReply" runat="server" Text=" " />
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        <asp:Button ID="Btn_oOFAutoReply" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                            CssClass="btn btn-primary waves-effect btnAction" CausesValidation="false" />
                                    </div>
                                </div>

                                 <div class="row">
                                    <div class="col-sm-6 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,strHideMemberDL%>"
                                                EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        <asp:CheckBox ID="ChBx_HideMemberDL" runat="server" Text=" " />
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        <asp:Button ID="Btn_HideMemberDL" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                            CssClass="btn btn-primary waves-effect btnAction" CausesValidation="false" />
                                    </div>
                                </div>


                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Literal ID="Literal41" runat="server" Text="<%$ Resources:Content,DGN1110347%>" EnableViewState="false"></asp:Literal>
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:RadioButton ID="RDB_SentReportGMan" runat="server" GroupName="DeliveryReports" Text="<%$ Resources:Content,DGN1110348%>" /><br />
                                                <asp:RadioButton ID="RDB_SentReportOrg" runat="server" GroupName="DeliveryReports" Text="<%$ Resources:Content,DGN1110349%>" /><br />
                                                <asp:RadioButton ID="RDB_DonotSentReport" Checked="true" runat="server" GroupName="DeliveryReports" Text="<%$ Resources:Content,DGN1110350%>" />
                                            </div>
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_DeliveryReports" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                                    CssClass="btn btn-primary waves-effect btnAction" CausesValidation="false" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <%--Box: Limits--%>
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,GN0000112%>" EnableViewState="false"></asp:Literal>
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-sm-6 col-xs-12 row-label">
                                                <label>
                                                    *<asp:Literal ID="Literal42" runat="server" Text="<%$ Resources:Content,DGN1110351%>"
                                                        EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_MaxMsgSizeValue" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-2 col-xs-12">
                                                <asp:CheckBox ID="CB_MaxMsgSize" runat="server" Text="<%$ Resources:Content,GN0000908%>" />
                                                <asp:Label ID="Lbl_MaxMsgSizeValue" runat="server" ForeColor="red" Visible="false">*</asp:Label>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_MaxMsgSize" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                                    CssClass="btn btn-primary waves-effect btnAction" CausesValidation="false" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <%--Box: Membership Approval--%>
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,MembershipApproval%>" EnableViewState="false"></asp:Literal>
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Ltrl_MemberJoinRestriction" runat="server" Text="<%$ Resources:Content,MemberJoinRestriction %>"></asp:Literal>:
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <asp:RadioButtonList ID="RBL_MJR" runat="server">
                                                    <asp:ListItem Text="<%$Resources:Content,JoinOpenRestriction %>" Value="Open"></asp:ListItem>
                                                    <asp:ListItem Text="<%$Resources:Content,JoinClosedRestriction %>" Value="Closed" Selected="true"></asp:ListItem>
                                                    <asp:ListItem Text="<%$Resources:Content,JoinApprovalRequired %>" Value="ApprovalRequired"></asp:ListItem>
                                                </asp:RadioButtonList>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Ltrl_MemberLeaveRestriction" runat="server" Text="<%$ Resources:Content,MemberLeaveRestriction %>"></asp:Literal>:
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <asp:RadioButtonList ID="RBL_MLR" runat="server">
                                                    <asp:ListItem Text="<%$Resources:Content,LeaveOpenRestriction %>" Value="Open"></asp:ListItem>
                                                    <asp:ListItem Text="<%$Resources:Content,LeaveClosedRestriction %>" Value="Closed" Selected="true"></asp:ListItem>
                                                </asp:RadioButtonList>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_SaveMembershipApproval" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                                    CssClass="btn btn-primary waves-effect btnAction" CausesValidation="false" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                    <div id="Restrictions" class="card O365-detail-content">
                        <div class="panel-body">
                            <asp:Panel ID="Pnl_Restrictions" runat="server" DefaultButton="Btn_SaveRestrictions">
                                <%--Restrictions--%>
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,DGN1110340%>" EnableViewState="false" />
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Label ID="Lbl_ReqAuth" runat="server" Text="<%$ Resources:Content,L0079%>"></asp:Label>:</label>
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <asp:CheckBox ID="ChBx_ReqAuth" runat="server" Text=" " />
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,DGN1110341%>"
                                                        EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:RadioButtonList ID="RBL_AcceptMsg" runat="server" AutoPostBack="true">
                                                            <asp:ListItem Value="AllSenders" Text="<%$ Resources:Content,DGN1110342%>" Selected="true"></asp:ListItem>
                                                            <asp:ListItem Value="AllSendersLst" Text="<%$ Resources:Content,DGN1110343%>"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </div>
                                                </div>
                                                <div class="row" id="tbl_AMessage" runat="server" visible="false">
                                                    <div class="col-xs-12">

                                                        <EM:AddSelectableSelected ID="UCDListAMessagesFrom" runat="server" />

                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,DGN1110344%>"
                                                        EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:RadioButtonList ID="RBL_RejectMsg" runat="server" AutoPostBack="true">
                                                            <asp:ListItem Value="Nosenders" Text="<%$ Resources:Content,DGN1110345%>" Selected="true"></asp:ListItem>
                                                            <asp:ListItem Value="NosendersList" Text="<%$ Resources:Content,DGN1110346%>"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </div>
                                                </div>
                                                <div class="row" id="tbl_RMessage" runat="server" visible="false">
                                                    <div class="col-xs-12">

                                                        <EM:AddSelectableSelected ID="UCDListRMessagesFrom" runat="server" />

                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_SaveRestrictions" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                                    CssClass="btn btn-primary waves-effect btnAction" CausesValidation="false" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                    <div id="ManagedBy" class="card O365-detail-content">
                        <div class="panel-body">
                            <asp:Panel ID="Pnl_ManagedBy_Save" runat="server" DefaultButton="Btn_ManagedBy_Save">

                                <div class="row">
                                    <div class="col-sm-4 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,DGN1110410%>"
                                                EnableViewState="false">
                                            </asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_ManagedBy" runat="server"></asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="col-sm-4 col-xs-12 row-label">
                                        <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,valueOnlyForDynamicDL%>"
                                            EnableViewState="false" />
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal47" runat="server" EnableViewState="false"
                                                Text="<%$ Resources:Content,DGN1110410%>"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-xs-12">

                                        <EM:AddSelectableSelected ID="UCManagedBy" runat="server" />

                                    </div>
                                    <div class="col-xs-12 row-label">
                                        <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,valueNotForDynamicDL%>"
                                            EnableViewState="false" />
                                    </div>
                                </div>


                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_ManagedBy_Save" CausesValidation="false" runat="server"
                                            Text="<%$ Resources:Content,GN0000281%>" CssClass="btn btn-primary waves-effect btnAction" />
                                    </div>
                                </div>

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

                    <div id="ListMembers" class="card O365-detail-content">
                        <div class="panel-body">
                            <asp:Panel ID="Pnl_ListMembers" runat="server" DefaultButton="Btn_SaveListMembers">

                                <div class="row">
                                    <div class="col-xs-12 ">
                                        <EM:AddSelectableSelected ID="UCListMemebrs" runat="server" />
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_SaveListMembers" CausesValidation="false" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                            CssClass="btn btn-primary waves-effect btnAction" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>


                    <div id="RemoveListMembers" class="card O365-detail-content">
                        <div class="panel-body">
                            <asp:Panel ID="Pnl_RemoveListMembers" runat="server" DefaultButton="Btn_SaveRemoveListMembers">

                                <div class="row">
                                    <div class="col-xs-12 ">
                                        <EM:AddSelectableSelected ID="UCRemoveListMemebrs" runat="server" />
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_SaveRemoveListMembers" CausesValidation="false" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                            CssClass="btn btn-primary waves-effect btnAction" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                    <div id="GrantPermissions" class="card O365-detail-content">
                        <div class="panel-body">
                            <asp:Panel ID="Pnl_GrantPermissions" runat="server" DefaultButton="Btn_GrantPermissions">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Literal ID="SM25" runat="server" Text="<%$ Resources:Content,L00147%>" EnableViewState="false" />:
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <EM:AddSelectableSelected ID="UCSendAs" runat="server" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Literal ID="SM24" runat="server" Text="<%$ Resources:Content,L00146%>" EnableViewState="false" />:</h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <EM:AddSelectableSelected ID="UCSendOn" runat="server" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_GrantPermissions" runat="server" CssClass="btn btn-primary waves-effect btnAction"
                                            Text="<%$ Resources:Content,GN0000281%>" CausesValidation="false" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                    <div id="RemovePermissions" class="card O365-detail-content">
                        <div class="panel-body">
                            <asp:Panel ID="Pnl_RemovePermissions" runat="server" DefaultButton="Btn_RemovePermissions">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Literal ID="Literal45" runat="server" Text="<%$ Resources:Content,L00147%>" EnableViewState="false" />:
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <EM:AddSelectableSelected ID="UCRemoveSendAs" runat="server" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Literal ID="Literal44" runat="server" Text="<%$ Resources:Content,L00146%>" EnableViewState="false" />:</h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <EM:AddSelectableSelected ID="UCRemoveSendOn" runat="server" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_RemovePermissions" runat="server" CssClass="btn btn-primary waves-effect btnAction"
                                            Text="<%$ Resources:Content,GN0000281%>" CausesValidation="false" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                    <div id="MessageApproval" class="card O365-detail-content">
                        <div class="panel-body">
                            <asp:Panel ID="Pnl_MessageApproval" runat="server" DefaultButton="Btn_SaveMessageApproval">
                                <div class="row">
                                    <div class="col-xs-12 row-label">
                                        <asp:CheckBox ID="ChBx_ApproveByModerator" runat="server" Text="<%$ Resources:Content,FAM00146%>" />
                                    </div>
                                </div>
                                <div id="Tbl_MAppHide" runat="server" style="display: none;">
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>*<asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,FAM00147%>" EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-9 col-xs-12">

                                            <EM:AddSelectableSelected ID="UCMessageApprovalModerator" runat="server" />

                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>*<asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,FAM00148%>" EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-9 col-xs-12">

                                            <EM:AddSelectableSelected ID="UCMessageApprovalSender" runat="server" />

                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,FAM00149%>" EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-9 col-xs-12">
                                            <asp:RadioButton ID="RB_All" runat="server" Checked="true" Text="<%$ Resources:Content,FAM00150%>" GroupName="Notices" /><br />
                                            <asp:RadioButton ID="RB_Org" runat="server" Text="<%$ Resources:Content,FAM00151%>" GroupName="Notices" /><br />
                                            <asp:RadioButton ID="RB_None" runat="server" Text="<%$ Resources:Content,FAM00152%>" GroupName="Notices" />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_SaveMessageApproval" runat="server" CssClass="btn btn-primary waves-effect btnAction"
                                            Text="<%$ Resources:Content,GN0000281%>" CausesValidation="false" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>

                    <div id="UpdateMembersUsingCSV" class="card O365-detail-content">
                        <div class="panel-body">
                            <asp:UpdatePanel ID="UP_UpdateDLMembersCSV" runat="server" ChildrenAsTriggers="true">
                                <ContentTemplate>
                                    <asp:Panel ID="Pnl_UpdateMembersUsingCSV" runat="server" DefaultButton="Btn_UpdateMembersUsingCSV">

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:RadioButtonList
                                                    ID="Rbl_UpdateMembersType"
                                                    runat="server"
                                                    RepeatDirection="Horizontal">
                                                    <asp:ListItem Text="<%$ Resources:Content,AddedAsNewMember%>" Value="AddNewMembers" Selected="True"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,RemoveFromExistingMembers%>" Value="RemoveExistingMembers"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,ReplaceExistingMembers%>" Value="ReplaceExistingMembers"></asp:ListItem>
                                                </asp:RadioButtonList>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                *<asp:Label ID="Lbl1" runat="server" Text='<%$ Resources:Content,String380%>' />:
                                            </div>
                                            <div class="col-sm-8 col-xs-12">
                                                <div class="fileupload fileupload-new" data-provides="fileupload">
                                                    <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                                        <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                                        <asp:FileUpload ID="FU_Emails" runat="server" />
                                                    </span>
                                                    <span class="fileupload-preview"></span>
                                                    <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>

                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_MemberEmails" runat="server" ControlToValidate="FU_Emails"
                                                        Display="None" SetFocusOnError="True" ValidationGroup="UpdateMembersUsingCSV"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <%--<div class="col-sm-3 col-xs-12 row-label">
                                    <label>
                                        *<asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,MemberEmails%>" EnableViewState="false" />:</label>
                                </div>
                                <div class="col-xs-12">
                                    <div class="form-group">
                                        <asp:TextBox ID="TxBx_MemberEmails" runat="server" TextMode="MultiLine" Columns="5" Rows="5"></asp:TextBox>
                                    </div>
                                    <asp:Label ID="lbl_note" runat="server" CssClass="sm" Text="<%$ Resources:Content,NoteInputMemberEmailsSeperatedByComma %>"></asp:Label>
                                </div>
                                <asp:RequiredFieldValidator ControlToValidate="TxBx_MemberEmails" ID="RFV_TxBx_MemberEmails" runat="server"
                                    Display="None" ValidationGroup="UpdateMembersUsingCSV"></asp:RequiredFieldValidator>--%>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                                                    ValidationGroup="UpdateMembersUsingCSV" HeaderText="<%$ Resources:Content,EM000001%>" />
                                                <asp:Button ID="Btn_UpdateMembersUsingCSV" runat="server" CssClass="btn btn-primary waves-effect btnAction"
                                                    Text="<%$ Resources:Content,GN0000281%>" CausesValidation="true" ValidationGroup="UpdateMembersUsingCSV" />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:PostBackTrigger ControlID="Btn_UpdateMembersUsingCSV"></asp:PostBackTrigger>
                                </Triggers>
                            </asp:UpdatePanel>
                        </div>
                    </div>



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

    </div>
</div>
