Revision 5028
Added by daigle over 15 years ago
properties-configuration.jsp | ||
---|---|---|
58 | 58 |
// each group describes a section of properties |
59 | 59 |
Map<Integer, MetaDataGroup> groupMap = metadata.getGroups(); |
60 | 60 |
Set<Integer> groupIdSet = groupMap.keySet(); |
61 |
|
|
62 |
|
|
61 | 63 |
for (Integer groupId : groupIdSet) { |
62 | 64 |
// for this group, display the header (group name) |
63 | 65 |
MetaDataGroup metaDataGroup = (MetaDataGroup)groupMap.get(groupId); |
66 |
if (groupId == 0) { |
|
67 |
// get all the properties in this group |
|
68 |
Map<Integer, MetaDataProperty> propertyMap = |
|
69 |
metadata.getPropertiesInGroup(metaDataGroup.getIndex()); |
|
70 |
Set<Integer> propertyIndexes = propertyMap.keySet(); |
|
71 |
// iterate through each property and display appropriately |
|
72 |
for (Integer propertyIndex : propertyIndexes) { |
|
73 |
MetaDataProperty metaDataProperty = propertyMap.get(propertyIndex); |
|
74 |
String fieldType = metaDataProperty.getFieldType(); |
|
75 |
if (fieldType.equals("hidden")) { |
|
64 | 76 |
%> |
77 |
<input type="hidden" |
|
78 |
name="<%= metaDataProperty.getKey() %>" |
|
79 |
value="<%= request.getAttribute(metaDataProperty.getKey()) %>"/> |
|
80 |
<% |
|
81 |
} |
|
82 |
} |
|
83 |
} else { |
|
84 |
%> |
|
65 | 85 |
<h3><%= metaDataGroup.getName() %></h3> |
66 | 86 |
<hr class="config-line"> |
67 | 87 |
<% |
... | ... | |
134 | 154 |
<% |
135 | 155 |
} |
136 | 156 |
} |
157 |
} |
|
137 | 158 |
} |
159 |
|
|
138 | 160 |
} |
139 | 161 |
%> |
140 | 162 |
|
Also available in: Unified diff
Persist skin properties across installations