summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/views/sharing/aclDialog.gsp
blob: 3e19529a606a3f68efa17a0b0a9d1a993cbe5797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<div class="alert alert-info">
 <g:message code="heading.enter.user.or.search" />
</div>
<div id="aclDialogDiv">



				<form id="userDialogForm" name="userFormForm">
	
			<fieldset id="verticalForm">
				<g:hiddenField name="create" value="${create}" />
		
				<g:hiddenField name="absPath" value="${absPath}"  />
				<label for="acl"><g:message code="text.share.type" />:</label>
				<g:select name="acl" from="${userPermissionEnum}" />
				<br />
				<label for="userName"><g:message code="text.user" />:</label>
				<g:textField id="userName" name="userName" value="${userName}" />
				<br/>
				<button type="button" id="lookUpUserNames"
							value="lookUpUserNames"
							onclick="lookUpUserNameFromACLDialogClicked()")><g:message code="text.search" /></button>
				<br/>
				
				<br />
				
				<div id="aclUserPickList" style="display:block;position:relative;overflow:auto;">
					<!-- div for sharing pick list -->
				</div>
				<br/>
				<div id="detailsDialogToolbar" class="well">
					<div id="detailsDialogMenu"
						style="float: left, clear :   both; width: 90%;">
						<button type="button" id="updateAclDetailButton"
							value="addAcl"
							onclick="submitAclDialog()")><g:message code="text.update" /></button>
						<button type="button" id="cancelAddAclButton"
							 value="cancelAdd"
							onclick="closeAclAddDialog()")><g:message code="default.button.cancel.label" /></button>
					</div>
				</div>
			</fieldset>
</div>

<script type="text/javascript">

/**
 * Handle click on search from ACL dialog to build user list
 */
function lookUpUserNameFromACLDialogClicked() {
	 var userName = $("#userName").val();
	 searchUsers(1, userName, "#aclUserPickList");
}

</script>