PageRenderTime 42ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 0ms

/source/app/NOS.Wiki/PermissionsManager.ascx

http://github.com/agross/netopenspace
ASP.NET | 43 lines | 29 code | 14 blank | 0 comment | 2 complexity | 18510fd5b18ea1cf1b2c7dfa115095f0 MD5 | raw file
 1<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PermissionsManager.ascx.cs" Inherits="ScrewTurn.Wiki.PermissionsManager" %>
 2
 3<%@ Register TagPrefix="st" TagName="AclActionsSelector" Src="~/AclActionsSelector.ascx" %>
 4
 5<div id="PermissionsManagerDiv">
 6	
 7	<div id="SubjectsDiv">
 8	
 9		<asp:Literal ID="lblSubjects" runat="server" Text="User Accounts and User Groups" EnableViewState="False" meta:resourcekey="lblSubjectsResource1" /><br />
10		<anthem:ListBox ID="lstSubjects" runat="server" AutoCallBack="True" AutoUpdateAfterCallBack="True"
11			OnSelectedIndexChanged="lstSubjects_SelectedIndexChanged" CssClass="listbox" meta:resourcekey="lstSubjectsResource1" UpdateAfterCallBack="True" />
12		
13	</div>
14	
15	<div id="SubjectsManagementDiv">
16		<anthem:Button ID="btnRemove" runat="server" Text="Remove" ToolTip="Remove entries for the selected subject"
17			Enabled="False" OnClick="btnRemove_Click" PreCallBackFunction="RequestConfirm" meta:resourcekey="btnRemoveResource1" />
18		<br /><br />
19		
20		<anthem:TextBox ID="txtNewSubject" runat="server" CssClass="textbox" meta:resourcekey="txtNewSubjectResource1" />
21		<anthem:Button ID="btnSearch" runat="server" Text="Search" ToolTip="Search for a User or Group to add" OnClick="btnSearch_Click" meta:resourcekey="btnSearchResource1" /><br />
22		<anthem:DropDownList ID="lstFoundSubjects" runat="server" CssClass="dropdown" meta:resourcekey="lstFoundSubjectsResource1" />
23		<anthem:Button ID="btnAdd" runat="server" Text="Add" ToolTip="Add the selected subject" Enabled="False" OnClick="btnAdd_Click" meta:resourcekey="btnAddResource1" /><br />
24		<anthem:Label ID="lblAddResult" runat="server" AutoUpdateAfterCallBack="True" meta:resourcekey="lblAddResultResource1" UpdateAfterCallBack="True" />
25	</div>
26	
27	<div class="cleanupleft"></div>
28	
29	<div id="AclSelectorDiv">
30	
31		<h3><asp:Literal ID="lblPermissionsFor" runat="server" Text="Permissions for:" EnableViewState="False" meta:resourcekey="lblPermissionsForResource1" />
32		<asp:Literal ID="lblSelectedSubject" runat="server" meta:resourcekey="lblSelectedSubjectResource1" /></h3>
33		
34		<st:AclActionsSelector ID="aclActionsSelector" runat="server" />
35	
36	</div>
37
38	<div id="InternalButtonsDiv">
39		<anthem:Button ID="btnSave" runat="server" Text="Save Permissions" ToolTip="Save this Subject's permissions" Enabled="False" OnClick="btnSave_Click" meta:resourcekey="btnSaveResource1" />
40		<anthem:Label ID="lblSaveResult" runat="server" AutoUpdateAfterCallBack="True" meta:resourcekey="lblSaveResultResource1" UpdateAfterCallBack="True" />
41	</div>
42
43</div>