diff --git a/app/routes/applications.js b/app/routes/applications.js index 87369ccf..984fed05 100644 --- a/app/routes/applications.js +++ b/app/routes/applications.js @@ -114,19 +114,37 @@ module.exports = router => { }) }) - router.get('/applications/:id/school-placement', (req, res) => { + router.get('/applications/:id/school-placement(-second)?', (req, res) => { + console.log(req.params); const { id } = req.params + var priority = req.params[0] + if ( priority) { + priority = priority.substring(1) + } else { + priority = 'first' + } - const placementItems = data.placements + var placementItems = data.placements .sort((a, b) => (a.name.localeCompare(b.name))) .map(placement => ({ text: placement.name, value: placement.name, hint: { text: placement.address } })) + placementItems.unshift({'text': 'I have no preference', value: 'I have no preference'}) + res.render('applications/school-placement', { id, + priority, placementItems }) }) + router.get('/applications/:id/school-placement-preferences', (req, res) => { + const { id } = req.params + res.render('applications/school-placement-preferences', { + id + }) + }) + + router.get('/applications/:id/courses-other', (req, res) => { const { id } = req.params @@ -362,4 +380,4 @@ module.exports = router => { res.redirect('/accepted') }) -} \ No newline at end of file +} diff --git a/app/views/applications/review.html b/app/views/applications/review.html index 4d1594ff..2ebf9ffd 100644 --- a/app/views/applications/review.html +++ b/app/views/applications/review.html @@ -19,6 +19,14 @@
This information and your details will be shared with {{ application.providerName }} when you submit your application.
+ {% if application.placement.location == "home" %} + {% set locationAnswer = "My home address (" + ( data.address.postalCode or "KT23 3NW" ) + ")" %} + {% elseif application.placement.location == "another" %} + {% set locationAnswer = application.placement.otherLocation %} + {% else %} + {% set locationAnswer = "I am open to relocating" %} + {% endif %} + {{ govukSummaryList({ rows: [ { @@ -55,10 +63,10 @@Your training provider will work with you to select placements that suit your needs.
+You can also talk to them at interview about your needs.
+ + +During your training, you’ll be placed in at least 2 different schools to give you experience of teaching in a real classroom.
-You can choose which location you’re most interested in. Your training provider will do their best to place you at a location you prefer and can travel to.
+Your training provider will select at least 2 different placement schools to give you experience of teaching in a real classroom. They will choose placements based on both your practical needs, such as location and transport, and their knowledge of the different strengths and features of the schools in their network.
+You can select the schools that you are most interested in, but this does not guarantee that you will be placed in them.
+The schools that training providers work with can change, so schools may be added or removed from this list at any time.
+ +