Project

General

Profile

« Previous | Next » 

Revision 4258

Added by daigle over 16 years ago

Replace tables with css

View differences:

ldap-configuration.jsp
60 60
%>
61 61
		<h3><%= metaDataGroup.getName()  %></h3>
62 62
		<hr class="config-line">
63
		<table class="config-section">
64 63
<%
65 64
			// get all the properties in this group
66 65
			Map<Integer, MetaDataProperty> propertyMap = 
......
72 71
    			String fieldType = metaDataProperty.getFieldType(); 
73 72
    			if (fieldType.equals("select")) {
74 73
%> 
75
			<tr>
76
				<td class="config-property-label">
77
     				<label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label>   
78
     			</td>	
79
     			<td class="config-property-input" >		
80
					<select name="<%= metaDataProperty.getKey() %>">
74
				<div class="form-row">
75
					<img class="question-mark" src="style/images/question-mark.gif" 
76
	           		       onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/>
77
     				<div class="textinput-label"><label for="<%= metaDataProperty.getKey() %>"><%= metaDataProperty.getLabel() %></label></div>	   	
78
					<select class="textinput" name="<%= metaDataProperty.getKey() %>">
81 79
<%
82 80
					Vector<String> fieldOptionValues = metaDataProperty.getFieldOptionValues();
83 81
					Vector<String> fieldOptionNames = metaDataProperty.getFieldOptionNames();
84 82
					for (int i = 0; i < fieldOptionNames.size(); i++) {
85 83
%>
86
					<option value="<%= fieldOptionValues.elementAt(i) %>"> <%= fieldOptionNames.elementAt(i) %>
84
						<option value="<%= fieldOptionValues.elementAt(i) %>"> <%= fieldOptionNames.elementAt(i) %>
87 85
<%
88
				}
86
					}
89 87
%>
90 88
					</select>
91
				</td>
92
				<td class="config-question-mark">
93
					<img src="style/images/question-mark.gif" 
94
	           		       alt="<%= metaDataProperty.getDescription() %>" 
95
	           		       onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/>
96
				</td>
97
			</tr>
98

  
89
				</div> 
90
<%
91
					if (metaDataProperty.getDescription() != null) {
92
%>
93
						<div class="textinput-description">[<%= metaDataProperty.getDescription() %>]</div>
99 94
<%		
95
					}
100 96
				} else if (fieldType.equals("password")) {
101 97
%>
102
			<tr>
103
				<td class="config-property-label">
104
					<label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label>
105
     			</td>	
106
     			<td class="config-property-input" >	
107
					<input id="<%= metaDataProperty.getKey() %>" name="<%= metaDataProperty.getKey() %>" 	             		    	    	           		    	             			
98
				<div class="form-row">
99
					<img class="question-mark" src="style/images/question-mark.gif"  
100
	           		     onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/>
101
					<div class="textinput-label"><label for="<%= metaDataProperty.getKey() %>"><%= metaDataProperty.getLabel() %></label></div>	
102
					<input class="textinput" id="<%= metaDataProperty.getKey() %>" name="<%= metaDataProperty.getKey() %>" 	             		    	    	           		    	             			
108 103
	           		    	value="<%= request.getAttribute(metaDataProperty.getKey()) %>"
109
	           		    	type="<%= fieldType %>"
110
	           		    	alt="<%= metaDataProperty.getDescription() %>"/> 
111
				</td>
112
				<td class="config-question-mark">
113
					<img src="style/images/question-mark.gif" 
114
	           		     alt="<%= metaDataProperty.getDescription() %>" 
115
	           		     onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/>
116
				</td>
117
			</tr>
104
	           		    	type="<%= fieldType %>"/> 
105
				</div> 
106
<%
107
					if (metaDataProperty.getDescription() != null) {
108
%>
109
						<div class="textinput-description">[<%= metaDataProperty.getDescription() %>]</div>
118 110
<%		
111
					}
119 112
				} else {
120 113
%>
121
			<tr>
122
				<td class="config-property-label">
123
					<label for="<%= metaDataProperty.getKey() %>" title="<%= metaDataProperty.getDescription() %>"><%= metaDataProperty.getLabel() %></label>
124
     			</td>	
125
     			<td class="config-property-input" >							
126
					<input id="<%= metaDataProperty.getKey() %>" name="<%= metaDataProperty.getKey() %>" 
114
				<div class="form-row">
115
					<img class="question-mark" src="style/images/question-mark.gif"  
116
					     onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/>
117
					<div class="textinput-label"><label for="<%= metaDataProperty.getKey() %>"><%= metaDataProperty.getLabel() %></label></div>					
118
					<input class="textinput" id="<%= metaDataProperty.getKey() %>" name="<%= metaDataProperty.getKey() %>" 
127 119
	    			        value="<%= request.getAttribute(metaDataProperty.getKey()) %>"	             		    	    	           		    	             			
128
	           		    	type="<%= fieldType %>	"           			
129
	           		    	alt="<%= metaDataProperty.getDescription() %>"/>	
130
	           	</td>
131
				<td class="config-question-mark">           		    
132
					<img src="style/images/question-mark.gif" 
133
						 alt="<%= metaDataProperty.getDescription() %>" 
134
					     onClick="helpWindow('<%= request.getContextPath() %>','<%= metaDataProperty.getHelpFile() %>')"/>
135
				</td>
136
 			</tr>
137
<%   			
120
	           		    	type="<%= fieldType %>	"/>	
121
				</div>    		    
122
<%
123
					if (metaDataProperty.getDescription() != null) {
124
%>
125
						<div class="textinput-description">[<%= metaDataProperty.getDescription() %>]</div>
126
<%		
127
					}
138 128
				}
139
    			
140
    			if (metaDataProperty.getDescription() != null) {
141
%>
142
			<tr>
143
    	        <td></td>
144
    	        <td class="config-property-description" colspan="2" >
145
					<%= metaDataProperty.getDescription() %>
146
    	        </td>
147
			</tr>
148
<%
149
    			}
150 129
			}
151
%>
152

  
153
			</table>
154
<%
155 130
		}
156 131
	}
157 132
%>

Also available in: Unified diff