This repository has been archived by the owner on Oct 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
authorize-advanced.ftl
75 lines (75 loc) · 3.33 KB
/
authorize-advanced.ftl
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<#import "/includes/dspace.ftl" as dspace />
<head>
<script type="text/javascript" src="<@dspace.url "/utils.js" />"></script>
</head>
<h1><@dspace.message "ui.dspace-admin.authorize-advanced.advanced" /></h1>
<div>
<@dspace.message "ui.dspace-admin.authorize-advanced.text" />
<a href="<@dspace.url "/help/site-admin.html#advancedpolicies" />" onClick="javascript: popup_window(this, 'group_popup'); return false;"><@dspace.message "ui.morehelp" /></a>
</div>
<form method="post" action="<@dspace.url "/admin/authorize" />">
<table class="miscTable" align="center" summary="Advanced policy manager">
<tr>
<th id="t1"><label for ="tcollection"><@dspace.message "ui.dspace-admin.authorize-advanced.col" /></label></th>
<td headers="t1">
<select size="10" name="collection_id" id="tcollection">
<#if collections??>
<#list collections as c>
<option value="${c.getID()}"> ${c.getMetadata("name")}</option>
</#list>
</#if>
</select>
</td>
</tr>
<tr>
<th id="t2"><label for="tresource_type"><@dspace.message "ui.dspace-admin.authorize-advanced.type" /></label></th>
<td headers="t2">
<select name="resource_type" id="tresource_type">
<#if item?? && bitstream??>
<option value="${item}%>"><@dspace.message "ui.dspace-admin.authorize-advanced.type1" /></option>
<option value="${bitstream}"><@dspace.message "ui.dspace-admin.authorize-advanced.type2 " /></option>
</#if>
</select>
</td>
</tr>
<tr>
<th id="t3"><@dspace.message "ui.dspace-admin.general.group-colon" /></th>
<td headers="t3">
<select size="10" name="group_id" id="tgroup_id">
<#if groups??>
<#list groups as grp>
<option value="${grp.getID()}"> ${grp.getName()}</option>
</#list>
</#if>
</select>
</td>
</tr>
<tr>
<th id="t4"><label for="taction_id"><@dspace.message "ui.dspace-admin.general.action-colon" /></label></th>
<td headers="t4">
<select name="action_id" id="taction_id">
<#if actiontext??>
<#list actiontext as at>
<option value="${at_index}">${at}</option>
</#list>
</#if>
</select>
</td>
</tr>
</table>
<div align="center">
<table width="70%">
<tr>
<td align="left">
<input type="submit" name="submit_advanced_add" value="<@dspace.message "ui.dspace-admin.authorize-advanced.add" />" />
</td>
<td align="right">
<input type="submit" name="submit_advanced_clear" value="<@dspace.message "ui.dspace-admin.authorize-advanced.clear" />"/>
</td>
<td>
<@dspace.message "ui.dspace-admin.authorize-advanced.warning" />
</td>
</tr>
</table>
</div>
</form>