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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ 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>

<div class="row">
    <div class="col-xs-12">
        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN0000180%>" EnableViewState="false"> </asp:Literal>:
    </div>
    <div class="col-xs-12">
        <EM:AddSelectableSelected ID="UCSPUser" runat="server" />
    </div>
</div>
<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">
                <div class="row">
                    <div class="col-sm-2 col-xs-12 clearfix">
                        <asp:Button ID="Btn_Delete" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,GN0000278%>' />
                        <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>" TargetControlID="Btn_Delete" runat="server">
                        </EM:ConfirmButtonExtender>
                        <asp:Button ID="Btn_RemoveAndDeleteAllADUser" runat="server" Custom1="Custom" Style="display: none"
                            Text="<%$ Resources:Content,RemoveAndDeleteADUserText%>"
                            CssClass="btn btn-primary waves-effect btnAction" />
                        <EM:ConfirmButtonExtender ID="CBE_RemoveAndDeleteAllADUser" runat="server" TargetControlID="Btn_RemoveAndDeleteAllADUser" />
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

<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="Ltr_GeneralSettings" runat="server" Text="<%$ Resources:Content,SM400028%>"
                                EnableViewState="false" /></a></li>
                        <li><a href="SiteAdmin" id="AP_SiteAdmin" runat="server">
                            <asp:Literal ID="Ltr_SiteAdmin" runat="server" Text="<%$ Resources:Content,USM0080%>"
                                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="col-xs-12">
                            <div class="col-sm-3 col-xs-12">
                                <asp:Literal ID="Literal13" runat="server" Text='<%$ Resources:Content,String353 %>' />:
                            </div>
                            <div class="col-sm-6 col-xs-12">
                                <asp:ListBox ID="Lbx_UserRoles" runat="server" Height="110px" SelectionMode="Multiple" Width="145px"></asp:ListBox>
                            </div>
                            <div class="col-sm-3 col-xs-3">
                                <asp:Button ID="Btn_SaveGeneralInfo" runat="server" Text="<%$ Resources:Content,GN0000281%>" CssClass="btn btn-primary waves-effect btnAction" />
                            </div>
                        </div>

                    </asp:Panel>

                </div>
            </div>

            <div id="SiteAdmin" class="card O365-detail-content">
                <div class="panel-body">
                    <asp:Panel ID="Pnl_SiteAdmin" runat="server" DefaultButton="Btn_SetSiteAdmin">
                        <div class="col-xs-12">
                            <div class="col-sm-3 col-xs-12">
                                <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,USM0080%>' />:
                            </div>
                            <div class="col-sm-6 col-xs-12">
                                <asp:CheckBox ID="Cb_IsSiteAdmin" Text=" " runat="server" />
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <asp:Button ID="Btn_SetSiteAdmin" runat="server" Text="<%$ Resources:Content,GN0000281%>" CssClass="btn btn-primary waves-effect btnAction" />
                            </div>
                        </div>

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

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

