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

<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>


<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%--Edit SP Site--%>
<div class="col-xs-12">
    <div class="card">
        <div class="header">
            <div class="displayInlineBlock">
                <h2>
                    <asp:Literal ID="Literal44" runat="server" Text="<%$ Resources:Content,EditSharePointSite%>" /></h2>
            </div>
            <asp:LinkButton ID="lb_SPGoBack" runat="server" Text="<%$ Resources:Content,DGN1110542 %>" CausesValidation="false"
                CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
        </div>
        <div class="body">
            <div class="row">
                <div class="col-sm-1 col-xs-12 row-label">
                    <label>
                        <asp:Literal ID="Literal31" runat="server" Text="<%$ Resources:Content,Title%>"></asp:Literal>:</label>
                </div>
                <div class="col-sm-11 col-xs-12">
                    <label>
                        <asp:Literal ID="Lbl_Title" runat="server"></asp:Literal></label>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-1 col-xs-12 row-label">
                    <label>
                        <asp:Literal ID="Literal33" runat="server" Text="<%$ Resources:Content,Url%>"></asp:Literal>:</label>
                </div>
                <div class="col-sm-11 col-xs-12">
                    <label>
                        <asp:Literal ID="Lbl_Url" runat="server"></asp:Literal></label>
                </div>
            </div>


            <div class="row">
                <div class="col-xs-12">
                    <div class="products-step">
                        <span id="div_GeneralInformation" runat="server" nowrap="true" class="label label-success">
                            <asp:LinkButton ID="lb_GeneralInformation" runat="server" Text='<%$ Resources:Content, GeneralInformation %>' />
                        </span>
                        <span id="div_Users" runat="server" nowrap="true" class="label label-default">
                            <asp:LinkButton ID="lb_Users" runat="server" Text='<%$ Resources:Content, Users %>' />
                        </span>
                        <span id="div_Groups" runat="server" nowrap="true" class="label label-default">
                            <asp:LinkButton ID="lb_Groups" runat="server" Text='<%$ Resources:Content, Groups %>' />
                        </span>
                        <span id="div_PermissionLevels" runat="server" nowrap="true" class="label label-default">
                            <asp:LinkButton ID="Lb_PermissionLevels" runat="server" Text='<%$ Resources:Content, PermissionLevels %>' />
                        </span>
                    </div>
                </div>
            </div>
            <asp:Panel ID="Pnl_SPSiteGeneralInformation" runat="server">

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,Title%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_Title" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <div>
                            <asp:RequiredFieldValidator ControlToValidate="TxBx_Title" ID="RequiredFieldValidator2"
                                runat="server" ValidationGroup="EditSPSiteGeneralInformation"
                                ErrorMessage="<%$ Resources:Content,GN00001243%>" SetFocusOnError="true"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal38" runat="server" Text="<%$ Resources:Content,Description%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:TextBox runat="server" ID="TxBx_Description" TextMode="MultiLine" Width="100%" Height="150px"></asp:TextBox>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,RequestAccessEmail%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_RequestAccessEmail" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <div>
                            <%--<asp:RegularExpressionValidator
                                ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_RequestAccessEmail"
                                ValidationExpression="^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$"
                                ValidationGroup="EditSPSiteGeneralInformation"
                                ErrorMessage="<%$ Resources:Content,SMI00940%>"
                                SetFocusOnError="true"></asp:RegularExpressionValidator>--%>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal40" runat="server" Text="<%$ Resources:Content,AllowDesigner%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox Text=" " ID="ChBx_AllowDesigners" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,ShareByEmail%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox Text=" " ID="ChBx_ShareByEmail" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,AllowRssFeeds%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox Text=" " ID="ChBx_AllowRssFeeds" runat="server" />
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,SharingCapability%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_SharingCapability" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_EditSPSiteGeneralInformation" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Save%>"
                            ValidationGroup="EditSPSiteGeneralInformation" />
                    </div>
                </div>
            </asp:Panel>
            <asp:Panel ID="Pnl_SPSiteUsers" runat="server" Visible="false">

                <div class="row">

                    <div class="col-xs-12">
                        <asp:Button ID="Btn_AddSPInternalUsers" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content, AddInternalUsers %>" />
                        <asp:Button ID="Btn_AddSPExternalUsers" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content, AddExternalUsers %>" />
                    </div>
                    <asp:Panel ID="Pnl_Btn_Search" runat="server" CssClass="col-xs-12" DefaultButton="Btn_Search">
                        <div class="panel-group search-panel" id="AS_SPUsers" role="tablist" aria-multiselectable="true">
                            <div role="tab" id="SH_SPUsers">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_SPUsers" href="#<%= CSB_SPUsers.ClientID%>" aria-expanded="true" aria-controls="SH_SPUsers">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="CSB_SPUsers" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_SPUsers" aria-expanded="false">
                                        <div class="row">
                                            <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_Name" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Name%>" CssClass="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_UserTypes" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-xs-12">
                                                <div class="form-group">
                                                    <asp:Button ID="Btn_Search" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="Btn_Clear" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                        Text="<%$ Resources:Content,String289 %>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>

                    <div class="col-xs-12">
                        <asp:GridView CssClass="table table-hover table-bordered table-striped table-responsive" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                            ID="GV_SPSiteUsers" AllowPaging="True" AllowSorting="true" runat="server" AutoGenerateColumns="false">
                            <Columns>
                                <asp:TemplateField SortExpression="DisplayName" HeaderStyle-CssClass="col-xs-4" HeaderText='<%$ Resources:Content, User %>'>
                                    <ItemTemplate>
                                        <div>
                                            <asp:Label ID="Lbl_UserName" runat="server"></asp:Label>
                                        </div>

                                        <div>
                                            <asp:Label ID="Lbl_UserEmail" runat="server"></asp:Label>
                                        </div>

                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="col-xs-1" SortExpression="UserType" HeaderText="<%$ Resources:Content, UserType %>">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_UserType" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="col-xs-3"
                                    HeaderText="<%$ Resources:Content, Groups %>">
                                    <ItemTemplate>
                                        <ul id="UL_Groups" runat="server" class="padding-left-15px list-style-auto"></ul>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2"
                                    HeaderText="<%$ Resources:Content, PermissionLevels %>">
                                    <ItemTemplate>
                                        <ul id="UL_PermissionLevels" runat="server" class="padding-left-15px list-style-auto"></ul>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText="<%$ Resources:Content, Admin %>"
                                    SortExpression="IsSiteAdmin">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Admin" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <ul class="option-menu">
                                            <li class="dropdown">
                                                <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                    <i class="material-icons">menu</i>
                                                </a>
                                                <ul class="dropdown-menu pull-right" id="UL_OptionMenu" runat="server">
                                                    <li>
                                                        <asp:LinkButton ID="Lbtn_Edit" runat="server" Text="<%$Resources:Content,Edit %>"
                                                            CommandName="EditSPSite"></asp:LinkButton></li>
                                                    <li>
                                                        <asp:LinkButton ID="Lbtn_Delete" Text="<%$ Resources:Content,GN0000377%>"
                                                            CommandName="RemoveSPSite" runat="server" CssClass="btnAction" />
                                                    </li>
                                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" TargetControlID="Lbtn_Delete"></EM:ConfirmButtonExtender>
                                                </ul>
                                            </li>
                                        </ul>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <%--PagerTemplate Start--%>
                            <PagerTemplate>
                                <EM:Pager ID="PagerSPSiteUsers" runat="server" />
                            </PagerTemplate>
                            <%--PagerTemplate End--%>
                        </asp:GridView>
                    </div>
                </div>
            </asp:Panel>
            <asp:Panel ID="Pnl_Groups" runat="server" Visible="false">

                <div class="row">

                    <div class="col-xs-12">
                        <asp:Button ID="Btn_AddSPGroup" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content, AddGroup %>" />
                    </div>
                    <asp:Panel ID="Pnl_Btn_SearchGroups" runat="server" CssClass="col-xs-12" DefaultButton="Btn_SearchGroups">
                        <div class="panel-group search-panel" id="AS_SPGroups" role="tablist" aria-multiselectable="true">
                            <div role="tab" id="SH_SPGroups">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_SPGroups" href="#<%= CSB_SPGroups.ClientID%>" aria-expanded="true" aria-controls="SH_SPGroups">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="CSB_SPGroups" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_SPGroups" aria-expanded="false">
                                        <div class="row">
                                            <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_SearchGroupName" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Name%>" CssClass="form-label"></asp:Label>
                                                    </div>
                                                </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_Owner" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Owner%>" CssClass="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:DropDownList ID="DDL_Permissions" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="col-xs-12">
                                                <div class="form-group">
                                                    <asp:Button ID="Btn_SearchGroups" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="Btn_ClearGroupsFilter" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                        Text="<%$ Resources:Content,String289 %>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>

                    <div class="col-xs-12">
                        <asp:GridView CssClass="table table-hover table-bordered table-striped table-responsive" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                            ID="GV_SPSiteGroups" AllowPaging="True" AllowSorting="true" runat="server" AutoGenerateColumns="false">
                            <Columns>
                                <asp:TemplateField SortExpression="LoginName" HeaderStyle-CssClass="col-xs-6" HeaderText='<%$ Resources:Content, Name %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_GroupName" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" SortExpression="OwnerLoginName" HeaderText="<%$ Resources:Content, Owner %>">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Owner" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="col-xs-3" SortExpression="Roles"
                                    HeaderText="<%$ Resources:Content, Permissions %>">
                                    <ItemTemplate>
                                        <ul id="UL_Permissions" runat="server" class="padding-left-15px list-style-auto"></ul>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <ul class="option-menu">
                                            <li class="dropdown">
                                                <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                    <i class="material-icons">menu</i>
                                                </a>
                                                <ul class="dropdown-menu pull-right" id="UL_OptionMenu" runat="server">
                                                    <li>
                                                        <asp:LinkButton ID="Lbtn_EditSPGroup" runat="server" Text="<%$Resources:Content,Edit %>"
                                                            CommandName="EditSPGroup"></asp:LinkButton></li>
                                                    <li>
                                                        <asp:LinkButton ID="Lbtn_DeleteSPSiteGroup" Text="<%$ Resources:Content,GN0000377%>"
                                                            CommandName="RemoveSPSiteGroup" CssClass="btnAction" runat="server" />
                                                    </li>
                                                </ul>
                                                <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" TargetControlID="Lbtn_DeleteSPSiteGroup"></EM:ConfirmButtonExtender>
                                            </li>
                                        </ul>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <%--PagerTemplate Start--%>
                            <PagerTemplate>
                                <EM:Pager ID="PagerSPSiteGroups" runat="server" />
                            </PagerTemplate>
                            <%--PagerTemplate End--%>
                        </asp:GridView>
                    </div>
                </div>
            </asp:Panel>
            <asp:Panel ID="Pnl_PermissionLevels" runat="server" Visible="false">
                <%--<div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_AddPermissionLevel" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content, SMI0411 %>" />
                    </div>
                </div>--%>
                <div class="row">
                    <div class="col-xs-12">
                        <EM:MPGridView CssClass="table table-hover table-bordered table-striped table-responsive" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                            ID="GV_SPSitePermissions" runat="server" AutoGenerateColumns="false">
                            <Columns>
                                <asp:TemplateField HeaderStyle-CssClass="col-xs-3" HeaderText='<%$ Resources:Content, Name %>'>
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_PermissionName" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-CssClass="col-xs-9" HeaderText="<%$ Resources:Content, Description %>">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Description" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </EM:MPGridView>
                    </div>
                </div>
            </asp:Panel>

            <asp:Panel ID="Pnl_AddSPSiteUser" runat="server" Visible="false">
                <div class="card">
                    <div class="header">
                        <div class="displayInlineBlock">
                            <h2>
                                <asp:Literal ID="Litral_AddEditUserTitle" runat="server" Text="<%$ Resources:Content,AddSharePointUser%>" /></h2>
                            <asp:HiddenField ID="HF_UserType" runat="server" />
                        </div>
                    </div>
                    <div class="body">
                        <div class="row" id="Div_ForAddSPInternalUsers" runat="server">
                            <div class="col-xs-12 row-label">
                                <label>
                                    *<asp:Literal ID="LI_Extern" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Users %>' />:
                                </label>
                            </div>

                            <div class="col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <EM:AddSelectableSelected ID="UCSPSiteUsers" runat="server" SortByValue="false" />
                                        <asp:Label ID="Lbl_SPSiteUsers" runat="server" Visible="false"></asp:Label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Div_ForAddSPExternalUsers" runat="server">
                            <div class="col-xs-12 row-label">
                                <label>
                                    *<asp:Literal ID="Literal11" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Users %>' />:
                                </label>
                            </div>

                            <div class="col-xs-12">
                                <div class="form-group">
                                    <asp:TextBox runat="server" ID="TxBx_ExternalUsers" TextMode="MultiLine" Width="100%" Height="150px"></asp:TextBox>

                                    <asp:RequiredFieldValidator ControlToValidate="TxBx_ExternalUsers" ID="RequiredFieldValidator1"
                                        runat="server" Display="None" ValidationGroup="AddExternalUsers"></asp:RequiredFieldValidator>
                                </div>
                                <b class="small">
                                    <asp:Literal ID="Lbl_EnterCommaSeperatedEmailAddresses" runat="server" Text="<%$ Resources:Content,EnterCommaSeperatedEmailAddresses %>"></asp:Literal></b>

                            </div>
                        </div>
                        <div class="row" id="Div_ForEditSpSiteUser" runat="server" visible="false">
                            <div class="col-xs-2 row-label">
                                <label>
                                    <asp:Literal ID="Literal10" runat="server" EnableViewState="false" Text='<%$ Resources:Content,User %>' />:
                                </label>
                            </div>

                            <div class="col-xs-10">
                                <label>
                                    <asp:Literal ID="Lbl_UserToEdit" runat="server"></asp:Literal></label>
                                <asp:HiddenField ID="HF_UserEmail" runat="server" />
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12 row-label">
                                <label id="Lbl_PermissionsForInternalUsers" runat="server">
                                    <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text='<%$ Resources:Content,PermissionLevels %>' />:
                                </label>
                                <label id="Lbl_PermissionsForExternalUsers" runat="server" visible="false">
                                    *<asp:Literal ID="Literal15" runat="server" EnableViewState="false" Text='<%$ Resources:Content,PermissionLevels %>' />:
                                </label>
                            </div>

                            <div class="col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <EM:AddSelectableSelected ID="UCPermissionLevels" runat="server" SortByValue="false" />
                                        <asp:Label ID="LbL_PermissionLevels" runat="server" Visible="false"></asp:Label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12 row-label">
                                <label id="Lbl_GroupsForInternalUsers" runat="server">
                                    *<asp:Literal ID="Literal4" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Groups %>' />:
                                </label>
                                <label id="Lbl_GroupsForExternalUsers" runat="server" visible="false">
                                    <asp:Literal ID="Literal16" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Groups %>' />:
                                </label>
                            </div>

                            <div class="col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <EM:AddSelectableSelected ID="UCGroups" runat="server" SortByValue="false" />
                                        <asp:Label ID="Lbl_Groups" runat="server" Visible="false"></asp:Label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Div_IsAdmin" runat="server">
                            <div class="col-xs-12">
                                <label class="row-label">
                                    <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,IsAdmin%>"></asp:Literal>:
                                    <asp:CheckBox Text=" " ID="ChBx_IsAdmin" runat="server" />
                                </label>
                            </div>
                        </div>
                        <div class="row" id="Div_Btn_ForAddSPUsers" runat="server">
                            <div class="col-xs-12">
                                <div class="form-group">
                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true"
                                        ShowSummary="false" ValidationGroup="AddExternalUsers" HeaderText="<%$ Resources:Content,UserMandatory%>" />
                                    <asp:Button ID="Btn_SaveSPUsers" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,AddUser%>" ValidationGroup="AddExternalUsers" />
                                    <asp:Button ID="Btn_CancelAddSPUsers" CssClass="btn btn-primary waves-effect" runat="server"
                                        Text="<%$ Resources:Content,Cancel %>" />
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Div_Btn_ForEditSPUsers" runat="server" visible="false">
                            <div class="col-xs-12">
                                <div class="form-group">
                                    <asp:Button ID="Btn_SaveEditSPUser" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Save%>" ValidationGroup="AddExternalUsers" />
                                    <asp:Button ID="Btn_CancelEditSPUser" CssClass="btn btn-primary waves-effect" runat="server"
                                        Text="<%$ Resources:Content,Cancel %>" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
            <asp:Panel ID="Pnl_AddSPGroup" runat="server" Visible="false">
                <div class="card">
                    <div class="header">
                        <div class="displayInlineBlock">
                            <h2>
                                <asp:Literal ID="Litral_AddEditGroupTitle" runat="server" Text="<%$ Resources:Content,AddSharePointGroup%>" /></h2>
                            <asp:HiddenField ID="HF_GroupId" runat="server" />
                            <asp:HiddenField ID="HF_GroupObjectId" runat="server" />
                        </div>
                    </div>
                    <div class="body">
                        <div class="row" id="Div_GroupAdd" runat="server">
                            <div class="col-xs-2 row-label">
                                <label>
                                    *<asp:Literal ID="Literal13" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Name %>' />:
                                </label>
                            </div>

                            <div class="col-xs-4">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_GroupName" runat="server"></asp:TextBox>
                                    </div>
                                    <asp:RequiredFieldValidator ControlToValidate="TxBx_GroupName" ID="RequiredFieldValidator3"
                                        runat="server" Display="None" ValidationGroup="AddGroup"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>

                        <div class="row" id="Div_GroupEdit" runat="server" visible="false">
                            <div class="col-xs-2 row-label">
                                <label>
                                    <asp:Literal ID="Literal14" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Name %>' />:
                                </label>
                            </div>

                            <div class="col-xs-10">
                                <label>
                                    <asp:Literal ID="Lbl_GroupToEdit" runat="server"></asp:Literal></label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-2 row-label">
                                <label>
                                    <asp:Literal ID="Literal18" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Owner %>' />:
                                </label>
                            </div>

                            <div class="col-xs-4">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:DropDownList ID="DDl_GroupOwner" runat="server"></asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12 row-label">
                                <label>
                                    *<asp:Literal ID="Literal19" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Permissions %>' />:
                                </label>
                            </div>

                            <div class="col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <EM:AddSelectableSelected ID="UCGroupPermissions" runat="server" SortByValue="false" />
                                        <asp:Label ID="Label6" runat="server" Visible="false"></asp:Label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="form-group">
                                    <asp:ValidationSummary ID="ValidationSummary3" runat="server" ShowMessageBox="true"
                                        ShowSummary="false" ValidationGroup="AddGroup" HeaderText="<%$ Resources:Content,GroupNameRequired%>" />
                                    <asp:Button ID="Btn_SaveGroup" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,AddGroup%>" ValidationGroup="AddGroup" />
                                    <asp:Button ID="Btn_CancelAddGroup" CssClass="btn btn-primary waves-effect" runat="server"
                                        Text="<%$ Resources:Content,Cancel %>" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>

            <asp:Panel ID="Pnl_AddPermissionLevel" runat="server" Visible="false">
                <div class="card">
                    <div class="header">
                        <div class="displayInlineBlock">
                            <h2>
                                <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,SMI0411%>" /></h2>
                        </div>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>
                                    *<asp:Literal ID="Literal12" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Name %>' />:
                                </label>
                            </div>

                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_PermissionLevelName" runat="server"></asp:TextBox>
                                    </div>
                                    <asp:RequiredFieldValidator ControlToValidate="TxBx_PermissionLevelName" ID="RequiredFieldValidator4"
                                        runat="server" Display="None" ValidationGroup="AddPermissionLevel"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-2 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal17" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Description %>' />:
                                </label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:TextBox runat="server" ID="TxBx_PLDescription" TextMode="MultiLine" Width="100%" Height="150px"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="form-group">
                                    <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="true"
                                        ShowSummary="false" ValidationGroup="AddPermissionLevel" HeaderText="<%$ Resources:Content,NameRequired%>" />
                                    <asp:Button ID="Btn_SavePermissionLevel" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Save%>" ValidationGroup="AddPermissionLevel" />
                                    <asp:Button ID="Btn_CancelPermissionLevel" CssClass="btn btn-primary waves-effect" runat="server" CausesValidation="false" Text="<%$ Resources:Content,Cancel %>" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
        </div>
    </div>
</div>
