Skip to content

Commit fb32c1a

Browse files
authored
GitHub Issue 764: update to table display of assay results "Expected Data Fields" table (#6810)
- tsvDataDescription.jsp update to use table class labkey-data-region-legacy
1 parent 39e68a4 commit fb32c1a

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

assay/src/org/labkey/assay/view/tsvDataDescription.jsp

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,22 @@
3232
<div id="showExpectedDataFieldsDiv"><%= link("Show Expected Data Fields").onClick("document.getElementById('expectedDataFields').style.display = 'block'; document.getElementById('showExpectedDataFieldsDiv').style.display = 'none'; return false;").id("showExpectedDataFieldsLink") %></div>
3333
<div id="expectedDataFields" style="display: none">
3434
<strong>Expected Data Fields</strong>
35-
<table class="labkey-show-borders" cellpadding="3" cellspacing="0">
35+
<table class="labkey-data-region-legacy labkey-show-borders">
3636
<tr>
37-
<td><strong>Name</strong></td>
38-
<td><strong>Type</strong></td>
39-
<td><strong>Required</strong></td>
40-
<td><strong>Description</strong></td>
37+
<td class="labkey-column-header">Name</td>
38+
<td class="labkey-column-header">Type</td>
39+
<td class="labkey-column-header">Required</td>
40+
<td class="labkey-column-header">Description</td>
4141
</tr>
4242
<%
43+
int row = 0;
4344
for (DomainProperty pd : bean.getRunDataProperties()) { %>
44-
<tr>
45-
<td><%= h(pd.getName()) %></td>
46-
<td><%= h(ColumnRenderProperties.getFriendlyTypeName(pd.getPropertyDescriptor().getPropertyType().getJavaType())) %></td>
47-
<td><%= unsafe(pd.isRequired() ? "yes" : "no") %></td>
48-
<td><%=h(pd.getDescription())%></td></tr>
45+
<tr class="<%=getShadeRowClass(row++)%>">
46+
<td><%= h(pd.getName()) %></td>
47+
<td><%= h(ColumnRenderProperties.getFriendlyTypeName(pd.getPropertyDescriptor().getPropertyType().getJavaType())) %></td>
48+
<td><%= unsafe(pd.isRequired() ? "yes" : "no") %></td>
49+
<td><%=h(pd.getDescription())%></td>
50+
</tr>
4951
<% } %>
5052
</table>
5153
</div>

0 commit comments

Comments
 (0)