Index: lams_monitoring/conf/language/lams/ApplicationResources.properties =================================================================== diff -u -re870d1e9afa5ae9ec01b97fec307ade975ae25f5 -r43e9b0375bdc58481bfeedc5dcb6ce68f7db662a --- lams_monitoring/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision e870d1e9afa5ae9ec01b97fec307ade975ae25f5) +++ lams_monitoring/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 43e9b0375bdc58481bfeedc5dcb6ce68f7db662a) @@ -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 =================================================================== diff -u -re870d1e9afa5ae9ec01b97fec307ade975ae25f5 -r43e9b0375bdc58481bfeedc5dcb6ce68f7db662a --- lams_monitoring/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision e870d1e9afa5ae9ec01b97fec307ade975ae25f5) +++ lams_monitoring/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 43e9b0375bdc58481bfeedc5dcb6ce68f7db662a) @@ -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 =================================================================== diff -u -re8041fe8c578b86d6de23c35b0d7a4d2f42d08dd -r43e9b0375bdc58481bfeedc5dcb6ce68f7db662a --- lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GateAction.java (.../GateAction.java) (revision e8041fe8c578b86d6de23c35b0d7a4d2f42d08dd) +++ lams_monitoring/src/java/org/lamsfoundation/lams/monitoring/web/GateAction.java (.../GateAction.java) (revision 43e9b0375bdc58481bfeedc5dcb6ce68f7db662a) @@ -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 =================================================================== diff -u -r209087915bc219f430c282ad00e5d1e6462f9b5f -r43e9b0375bdc58481bfeedc5dcb6ce68f7db662a --- lams_monitoring/web/gate/conditionGateContent.jsp (.../conditionGateContent.jsp) (revision 209087915bc219f430c282ad00e5d1e6462f9b5f) +++ lams_monitoring/web/gate/conditionGateContent.jsp (.../conditionGateContent.jsp) (revision 43e9b0375bdc58481bfeedc5dcb6ce68f7db662a) @@ -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