Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROD-73- Create Main Start Page #10

Merged
merged 5 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions apps/rod/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ module.exports = {
name: 'rod',
steps: {
'/start': {
fields: ['name-skeleton'],
next: '/who-completing'
},
'/who-completing': {
forks: [
Expand Down
2 changes: 1 addition & 1 deletion apps/rod/translations/src/en/journey.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"header": "Cancel an applicatio and get your documents back",
"header": "Cancel an application and get your documents back",
"phase": "beta",
"confirmation": {
"message": "Request recieved"
Expand Down
27 changes: 27 additions & 0 deletions apps/rod/views/content/rod-start-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## How long it takes to get your documents back

If you are eligible to have your documents returned, you will normally receive them within 10 working days.

## Who can use this service

You can use this service if:

- you want to cancel an outstanding application with the Home Office and leave the UK

- you are a British or settled sponsor and you need your documents back

- you are a British national (overseas) applicant with valid permission to stay (leave to remain) but want to cancel your application and reapply using a different process

## When you cannot get your documents back

If you need your documents back to travel, you must withdraw your application.

If you are not withdrawing your application, you can only get your documents back to prove your identity.

The Home Office only return documents to addresses linked with the application in their records. You may need to <a href="https://www.update-my-details.homeoffice.gov.uk/overview"> tell them if you have changed address.</a>

The Home Office can refuse to return your documents if:

- your application has been refused

- you are being criminally prosecuted
13 changes: 13 additions & 0 deletions apps/rod/views/content/rod-start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Before you start

You will need:

- details of the documents (holder’s name, nationality and date of birth)

- a reference number from the application (payment reference, courier number, case ID or Home Office reference number)

- the date the application was submitted

- the main applicant’s details

If you do not do anything for 20 minutes, your answers will not be saved. Your answers are only saved when you submit the form.
29 changes: 29 additions & 0 deletions apps/rod/views/partials/rod-start.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

<div class="govuk-grid-row">
<div class="govuk-grid-column-one-half">
<p class="govuk-body">
Use this service to:
<ul>
<li> cancel an application to the Home Office </li>
<li> ask for your passport or other documents be returned</li>
</ul>
</p>
</div>


<div class="govuk-grid-column-one-half">
<h3 class="govuk-heading-s">Related services</h3>
<p class="govuk-body">
<a href="/documents-not-received-start"> Report that you have not received your documents </a>
</p>
<p class="govuk-body">
<a href="/cancel-request"> Cancel your request to return documents </a>
</p>
</div>
</div>

<div class="govuk-inset-text">
You can only use this service if you applied in the UK. If you applied from outside the UK, <a href="https://www.gov.uk/find-a-visa-application-centre">contact the visa application centre you applied to.</a>
</div>

<p>You can only get your documents returned to a UK address.</p>
18 changes: 18 additions & 0 deletions apps/rod/views/start.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

{{<partials-page}}
{{$page-content}}
{{> partials-rod-start}}

{{#markdown}}rod-start{{/markdown}}
<div>
<a href='/who-completing' role="button" draggable="false" class="govuk-button govuk-button--start" data-module="govuk-button">
Start now
<svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" aria-hidden="true" focusable="false">
<path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z" />
</svg>
</a>
</div>
{{#markdown}}rod-start-2{{/markdown}}

{{/page-content}}
{{/partials-page}}
5 changes: 5 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ module.exports = {
dataDirectory: './data',
govukNotify: {
},
survey: {
urls: {
root: 'https://www.hof-feedback.homeoffice.gov.uk'
}
},
redis: {
port: process.env.REDIS_PORT || '6379',
host: process.env.REDIS_HOST || '127.0.0.1'
Expand Down
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const hof = require('hof');
const config = require('./config.js');
let settings = require('./hof.settings');

settings = Object.assign({}, settings, {
Expand All @@ -14,7 +15,7 @@ app.use((req, res, next) => {
// Set HTML Language
res.locals.htmlLang = 'en';
// Set feedback link and phase banner
res.locals.feedbackUrl = 'https://eforms.homeoffice.gov.uk/outreach/feedback.ofml';
res.locals.feedbackUrl = config.survey.urls.root;
next();
});

Expand Down