Project

General

Profile

« Previous | Next » 

Revision 4100

Added by daigle over 16 years ago

Clean up formatting on configuration pages

View differences:

properties-configuration.jsp
1
<%@ page language="java" import="java.util.Collection,java.util.Set,java.util.TreeSet,java.util.Map,java.util.Vector" %>
2
<%@ page language="java" import="edu.ucsb.nceas.utilities.PropertiesMetaData,edu.ucsb.nceas.utilities.MetaDataGroup,edu.ucsb.nceas.utilities.MetaDataProperty" %>
1
<%@ page language="java" %>
2
<%@ page import="java.util.Set,java.util.Map,java.util.Vector,edu.ucsb.nceas.utilities.PropertiesMetaData" %>
3
<%@ page import="edu.ucsb.nceas.utilities.MetaDataGroup,edu.ucsb.nceas.utilities.MetaDataProperty" %>
3 4
<% 
4 5
/**
5 6
 *  '$RCSfile$'
......
59 60
			// for this group, display the header (group name)
60 61
			MetaDataGroup metaDataGroup = (MetaDataGroup)groupMap.get(groupId);
61 62
%>
62
			<p class="section"><%= metaDataGroup.getName()  %></p>
63
			<table class="config-section">
63
		<h3><%= metaDataGroup.getName()  %></h3>
64
		<table class="config-section">
64 65
<%
65 66
			// get all the properties in this group
66 67
			Map<Integer, MetaDataProperty> propertyMap = 
......
79 80
     			<td class="config-property-input" >		
80 81
					<select name="<%= metaDataProperty.getKey() %>">
81 82
<%
82
					Vector<String> fieldOptions = metaDataProperty.getFieldOptions();
83
					for (String optionName : fieldOptions) {
83
					Vector<String> fieldOptionValues = metaDataProperty.getFieldOptionValues();
84
					Vector<String> fieldOptionNames = metaDataProperty.getFieldOptionNames();
85
					for (int i = 0; i < fieldOptionNames.size(); i++) {
84 86
%>
85
					<option value="<%= optionName %>"> <%= optionName %>
87
					<option value="<%= fieldOptionValues.elementAt(i) %>"> <%= fieldOptionNames.elementAt(i) %>
86 88
<%
87 89
				}
88 90
%>

Also available in: Unified diff