summaryrefslogtreecommitdiff
path: root/src/com/p4square/grow/frontend/ChapterCompletePage.java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2013-09-15 16:57:53 -0700
committerJesse Morgan <jesse@jesterpm.net>2013-09-15 16:57:53 -0700
commit48af9ac4779b2d60889b0159f47442b5d6d9c8ce (patch)
treec51a021f4da706dede8c5360c8916da812c63e1e /src/com/p4square/grow/frontend/ChapterCompletePage.java
parentc68f0faf73b92993875d8e7365427a54ff84fbaa (diff)
Adding Introduction Chapter.
Introduction chapter is always required and thus after the assessment the user is taken directly to the introduction. After the introduction training continues with whichever section the user assessed in to.
Diffstat (limited to 'src/com/p4square/grow/frontend/ChapterCompletePage.java')
-rw-r--r--src/com/p4square/grow/frontend/ChapterCompletePage.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/p4square/grow/frontend/ChapterCompletePage.java b/src/com/p4square/grow/frontend/ChapterCompletePage.java
index 671e45e..2f981ae 100644
--- a/src/com/p4square/grow/frontend/ChapterCompletePage.java
+++ b/src/com/p4square/grow/frontend/ChapterCompletePage.java
@@ -102,6 +102,14 @@ public class ChapterCompletePage extends FreeMarkerPageResource {
}
}
+ // Skip the chapter complete message for "Introduction"
+ if ("introduction".equals(mChapter)) {
+ String nextPage = mConfig.getString("dynamicRoot", "");
+ nextPage += "/account/training/" + nextChapter;
+ getResponse().redirectSeeOther(nextPage);
+ return new StringRepresentation("Redirecting to " + nextPage);
+ }
+
root.put("stage", mChapter);
root.put("nextstage", nextChapter);
return new TemplateRepresentation(t, root, MediaType.TEXT_HTML);