[Ils-source] r1601 - trunk/webapp
scribe at crosswire.org
scribe at crosswire.org
Fri Jul 27 12:25:00 MST 2018
Author: scribe
Date: 2018-07-27 12:25:00 -0700 (Fri, 27 Jul 2018)
New Revision: 1601
Modified:
trunk/webapp/admin_studentrecords.jsp
Log:
Updated the grammatically correct "Curricula" to the incorrect but accepted in remote parts of the United States, "Curriculums" Added logic to remove dropdown groups when nothing is in the group
Modified: trunk/webapp/admin_studentrecords.jsp
===================================================================
--- trunk/webapp/admin_studentrecords.jsp 2018-07-27 19:18:20 UTC (rev 1600)
+++ trunk/webapp/admin_studentrecords.jsp 2018-07-27 19:25:00 UTC (rev 1601)
@@ -487,8 +487,11 @@
<td>
<select name="course" size="1">
<option value="-1" selected="selected">All</option>
-<optgroup label="Curricula">
<%
+if (curricula.size() > 0) {
+%>
+<optgroup label="Curriculums">
+<%
for (int i = 0; i < curricula.size(); i++) {
Course course = (Course)curricula.get(i);
%>
@@ -497,6 +500,10 @@
}
%>
</optgroup>
+<%
+}
+if (courses.size() > 0) {
+%>
<optgroup label="Courses">
<%
for (int i = 0; i < courses.size(); i++) {
@@ -507,6 +514,9 @@
}
%>
</optgroup>
+<%
+}
+%>
</select> </td>
</tr>
<tr>
More information about the Ils-source
mailing list