Index: lams_monitoring/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/conf/language/lams/ApplicationResources.properties,v diff -u -r1.20 -r1.21 --- lams_monitoring/conf/language/lams/ApplicationResources.properties 30 Oct 2008 04:28:28 -0000 1.20 +++ lams_monitoring/conf/language/lams/ApplicationResources.properties 31 Oct 2008 05:51:27 -0000 1.21 @@ -76,6 +76,7 @@ label.gate.list.all.learners =Forbidden to pass label.gate.list.waiting.learners =Waiting in front of the gate label.gate.list.allowed.learners =Allowed to pass +label.gate.list.have.not.met.conditions.learners=Have not met conditions +message.gate.condition.force.pass=Note: This will allow all learners to pass regardless of the specified conditions. - #======= End labels: Exported 70 labels for en AU ===== Index: lams_monitoring/conf/language/lams/ApplicationResources_en_AU.properties =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/conf/language/lams/ApplicationResources_en_AU.properties,v diff -u -r1.20 -r1.21 --- lams_monitoring/conf/language/lams/ApplicationResources_en_AU.properties 30 Oct 2008 04:28:28 -0000 1.20 +++ lams_monitoring/conf/language/lams/ApplicationResources_en_AU.properties 31 Oct 2008 05:51:27 -0000 1.21 @@ -76,6 +76,7 @@ label.gate.list.all.learners =Forbidden to pass label.gate.list.waiting.learners =Waiting in front of the gate label.gate.list.allowed.learners =Allowed to pass +label.gate.list.have.not.met.conditions.learners=Have not met conditions +message.gate.condition.force.pass=Note: This will allow all learners to pass regardless of the specified conditions. - #======= End labels: Exported 70 labels for en AU ===== Index: lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GateAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GateAction.java,v diff -u -r1.21 -r1.22 --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GateAction.java 30 Oct 2008 03:14:17 -0000 1.21 +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GateAction.java 31 Oct 2008 05:51:27 -0000 1.22 @@ -268,17 +268,17 @@ return mapping.findForward(GateAction.VIEW_SYNCH_GATE); } else if (gate.isScheduleGate()) { return viewScheduleGate(mapping, gateForm, (ScheduleGateActivity) gate); - } else if (gate.isConditionGate()) { - gateForm.set("allowedToPassLearnerList", gate.getAllowedToPassLearners()); - gateForm.set(GateAction.READ_ONLY, Boolean.TRUE); - return mapping.findForward(GateAction.VIEW_CONDITION_GATE); - } else if (gate.isPermissionGate() || gate.isSystemGate()) { + } else if (gate.isPermissionGate() || gate.isSystemGate() || gate.isConditionGate()) { gateForm.set("waitingLearnerList", waitingLearnersList); gateForm.set("allowedToPassLearnerList", gate.getAllowedToPassLearners()); Collection forbiddenUsers = learnerService.getLearnersForGate(gate); forbiddenUsers.removeAll(gate.getAllowedToPassLearners()); gateForm.set("forbiddenLearnerList", forbiddenUsers); - return mapping.findForward(GateAction.VIEW_PERMISSION_GATE); + if (gate.isConditionGate()) { + return mapping.findForward(GateAction.VIEW_CONDITION_GATE); + } else { + return mapping.findForward(GateAction.VIEW_PERMISSION_GATE); + } } else { throw new MonitoringServiceException("Invalid gate activity. " + "gate id [" + gate.getActivityId() + "] - the type [" + gate.getActivityTypeId() + "] is not a gate type"); Index: lams_monitoring/web/gate/conditionGateContent.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_monitoring/web/gate/conditionGateContent.jsp,v diff -u -r1.1 -r1.2 --- lams_monitoring/web/gate/conditionGateContent.jsp 16 Sep 2008 03:18:14 -0000 1.1 +++ lams_monitoring/web/gate/conditionGateContent.jsp 31 Oct 2008 05:51:27 -0000 1.2 @@ -24,16 +24,86 @@ <%@ taglib uri="tags-logic" prefix="logic" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> - +

<%@ include file="gateInfo.jsp" %> + +


+

+
-

- + <%@ include file="gateStatus.jsp" %> + +
+ +

+
+ + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ " onclick="document.pressed='forbidden'"/> + + " onclick="document.pressed='waiting'"/> + +   +
+
+
\ No newline at end of file