Revision 8222
Added by Lauren Walker about 11 years ago
organization-configuration.jsp | ||
---|---|---|
43 | 43 |
|
44 | 44 |
</head> |
45 | 45 |
<body> |
46 |
<img src="<%= request.getContextPath() %>/metacat-logo-darkgray.png" width="100px" align="right"/> |
|
47 |
<h2>Organization Configuration</h2> |
|
48 |
Enter organization specific properties here. |
|
49 |
<br class="ldap-header"> |
|
46 |
<div class="document"> |
|
50 | 47 |
|
51 |
<%@ include file="./page-message-section.jsp"%> |
|
52 |
|
|
53 |
|
|
54 |
<form method="POST" name="configuration_form" action="<%= request.getContextPath() %>/admin" |
|
55 |
onsubmit="return submitForm(this);"> |
|
56 |
<% |
|
57 |
if (metadata != null) { |
|
58 |
// each group describes a section of properties |
|
59 |
Map<Integer, MetaDataGroup> groupMap = metadata.getGroups(); |
|
60 |
Set<Integer> groupIdSet = groupMap.keySet(); |
|
61 |
for (Integer groupId : groupIdSet) { |
|
62 |
// for this group, display the header (group name) |
|
63 |
MetaDataGroup metaDataGroup = (MetaDataGroup)groupMap.get(groupId); |
|
64 |
%> |
|
65 |
<h3><%= metaDataGroup.getName() %></h3> |
|
66 |
<% |
|
67 |
if (metaDataGroup.getComment() != null) { |
|
68 |
%> |
|
69 |
<div class="heading-comment"><%= metaDataGroup.getComment() %></div> |
|
70 |
<% |
|
71 |
} |
|
72 |
%> |
|
73 |
<br> |
|
74 |
<% |
|
75 |
for (String orgName : ldapOrganizations) { |
|
76 |
%> |
|
77 |
<table class="config-section"> |
|
78 |
<tr> |
|
79 |
<td class="config-checkbox"> |
|
80 |
<input class="org" type="checkbox" name="<%= orgName %>.cb" onClick="toggleHiddenTable(this, 'hiding-section-<%= orgName %>')"/> |
|
81 |
</td> |
|
82 |
<td class="config-checkbox-label"> |
|
83 |
<label for="<%= orgName %>.cb"><%=orgName%></label> |
|
84 |
</td> |
|
85 |
</tr> |
|
86 |
</table> |
|
87 |
<table class="config-section-hiding" id="hiding-section-<%= orgName %>"> |
|
88 |
<% |
|
89 |
// get all the properties in this group |
|
90 |
Map<Integer, MetaDataProperty> propertyMap = |
|
91 |
metadata.getPropertiesInGroup(metaDataGroup.getIndex()); |
|
92 |
Set<Integer> orgIndexes = propertyMap.keySet(); |
|
93 |
for (Integer orgIndex : orgIndexes) { |
|
94 |
MetaDataProperty orgProperty = propertyMap.get(orgIndex); |
|
95 |
String orgKeyName = orgProperty.getKey() + "." + orgName; |
|
96 |
%> |
|
97 |
<tr> |
|
98 |
<td class="config-property-label" > |
|
99 |
<label for="<%= orgKeyName %>" title="<%= orgProperty.getDescription() %>"><%= orgProperty.getLabel() %></label> |
|
100 |
</td> |
|
101 |
<td class="config-property-input" > |
|
102 |
<input name="<%= orgKeyName %>" |
|
103 |
value="<%= request.getAttribute(orgKeyName) %>" |
|
104 |
<% |
|
105 |
if (orgProperty.getFieldType().equals("password")) { |
|
106 |
%> |
|
107 |
type="password" |
|
108 |
<% |
|
109 |
} |
|
110 |
%> |
|
111 |
alt="List of administrators for this installation in LDAP DN syntax (colon separated)"/> |
|
112 |
</td> |
|
113 |
<td class="config-question-mark"> |
|
114 |
<img src="style/images/help.png" |
|
115 |
alt="<%= orgProperty.getDescription() %>" |
|
116 |
onClick="helpWindow('<%= request.getContextPath() %>', '<%= orgProperty.getHelpFile() %>')"/> |
|
117 |
</td> |
|
118 |
</tr> |
|
119 |
<% |
|
120 |
if (orgProperty.getDescription() != null) { |
|
121 |
%> |
|
122 |
<tr> |
|
123 |
<td></td> |
|
124 |
<td class="config-property-description" colspan="2" > |
|
125 |
<%= orgProperty.getDescription() %> |
|
126 |
</td> |
|
127 |
<% |
|
128 |
} |
|
129 |
} |
|
130 |
%> |
|
131 |
</table> |
|
132 |
<% |
|
48 |
<h2>Organization Configuration</h2> |
|
49 |
Enter organization specific properties here. |
|
50 |
<br class="ldap-header"> |
|
51 |
|
|
52 |
<%@ include file="./page-message-section.jsp"%> |
|
53 |
|
|
54 |
|
|
55 |
<form method="POST" name="configuration_form" action="<%= request.getContextPath() %>/admin" |
|
56 |
onsubmit="return submitForm(this);"> |
|
57 |
<% |
|
58 |
if (metadata != null) { |
|
59 |
// each group describes a section of properties |
|
60 |
Map<Integer, MetaDataGroup> groupMap = metadata.getGroups(); |
|
61 |
Set<Integer> groupIdSet = groupMap.keySet(); |
|
62 |
for (Integer groupId : groupIdSet) { |
|
63 |
// for this group, display the header (group name) |
|
64 |
MetaDataGroup metaDataGroup = (MetaDataGroup)groupMap.get(groupId); |
|
65 |
%> |
|
66 |
<h3><%= metaDataGroup.getName() %></h3> |
|
67 |
<% |
|
68 |
if (metaDataGroup.getComment() != null) { |
|
69 |
%> |
|
70 |
<div class="heading-comment"><%= metaDataGroup.getComment() %></div> |
|
71 |
<% |
|
72 |
} |
|
73 |
%> |
|
74 |
<br> |
|
75 |
<% |
|
76 |
for (String orgName : ldapOrganizations) { |
|
77 |
%> |
|
78 |
<table class="config-section"> |
|
79 |
<tr> |
|
80 |
<td class="config-checkbox"> |
|
81 |
<input class="org" type="checkbox" name="<%= orgName %>.cb" onClick="toggleHiddenTable(this, 'hiding-section-<%= orgName %>')"/> |
|
82 |
</td> |
|
83 |
<td class="config-checkbox-label"> |
|
84 |
<label for="<%= orgName %>.cb"><%=orgName%></label> |
|
85 |
</td> |
|
86 |
</tr> |
|
87 |
</table> |
|
88 |
<table class="config-section-hiding" id="hiding-section-<%= orgName %>"> |
|
89 |
<% |
|
90 |
// get all the properties in this group |
|
91 |
Map<Integer, MetaDataProperty> propertyMap = |
|
92 |
metadata.getPropertiesInGroup(metaDataGroup.getIndex()); |
|
93 |
Set<Integer> orgIndexes = propertyMap.keySet(); |
|
94 |
for (Integer orgIndex : orgIndexes) { |
|
95 |
MetaDataProperty orgProperty = propertyMap.get(orgIndex); |
|
96 |
String orgKeyName = orgProperty.getKey() + "." + orgName; |
|
97 |
%> |
|
98 |
<tr> |
|
99 |
<td class="config-property-label" > |
|
100 |
<label for="<%= orgKeyName %>" title="<%= orgProperty.getDescription() %>"><%= orgProperty.getLabel() %></label> |
|
101 |
</td> |
|
102 |
<td class="config-property-input" > |
|
103 |
<input name="<%= orgKeyName %>" |
|
104 |
value="<%= request.getAttribute(orgKeyName) %>" |
|
105 |
<% |
|
106 |
if (orgProperty.getFieldType().equals("password")) { |
|
107 |
%> |
|
108 |
type="password" |
|
109 |
<% |
|
110 |
} |
|
111 |
%> |
|
112 |
alt="List of administrators for this installation in LDAP DN syntax (colon separated)"/> |
|
113 |
</td> |
|
114 |
<td class="config-question-mark"> |
|
115 |
<i class="icon-question-sign" |
|
116 |
alt="<%= orgProperty.getDescription() %>" |
|
117 |
onClick="helpWindow('<%= request.getContextPath() %>', '<%= orgProperty.getHelpFile() %>')"></i> |
|
118 |
</td> |
|
119 |
</tr> |
|
120 |
<% |
|
121 |
if (orgProperty.getDescription() != null) { |
|
122 |
%> |
|
123 |
<tr> |
|
124 |
<td></td> |
|
125 |
<td class="config-property-description" colspan="2" > |
|
126 |
<%= orgProperty.getDescription() %> |
|
127 |
</td> |
|
128 |
<% |
|
129 |
} |
|
130 |
} |
|
131 |
%> |
|
132 |
</table> |
|
133 |
<% |
|
134 |
} |
|
133 | 135 |
} |
134 | 136 |
} |
135 |
} |
|
136 |
%> |
|
137 |
|
|
138 |
<input type="hidden" name="configureType" value="organization"/> |
|
139 |
<input type="hidden" name="processForm" value="true"/> |
|
140 |
<input class="left-button" type="submit" value="Save"/> |
|
141 |
<input class="button" type="button" value="Cancel" onClick="forward('./admin')"> |
|
142 |
|
|
143 |
</form> |
|
144 |
|
|
137 |
%> |
|
138 |
|
|
139 |
<input type="hidden" name="configureType" value="organization"/> |
|
140 |
<input type="hidden" name="processForm" value="true"/> |
|
141 |
<input class="button" type="submit" value="Save"/> |
|
142 |
<input class="button" type="button" value="Cancel" onClick="forward('./admin')"> |
|
143 |
|
|
144 |
</form> |
|
145 |
</div> |
|
145 | 146 |
</body> |
146 | 147 |
</html> |
Also available in: Unified diff
Matched the admin config pages to the default metacatUI theme. Changed the background image of the docs and config pages to a big cat for some metacat branding.