Skip to content

Commit 4827350

Browse files
authored
Merge pull request #1727 from companieshouse/revert-1726-feature/ROECCT-631-create-paper-form-filing-page
Revert "ROECCT-631 Create paper form filing page"
2 parents a2fa015 + 2cd7f60 commit 4827350

File tree

9 files changed

+1
-117
lines changed

9 files changed

+1
-117
lines changed

src/config/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export const RELEVANT_PERIOD_REQUIRED_INFORMATION_CONFIRM_PAGE = "relevant-perio
9898
export const RELEVANT_PERIOD_SUBMIT_BY_PAPER_PAGE = "relevant-period-submit-by-paper";
9999
export const RELEVANT_PERIOD_COMBINED_STATEMENTS_PAGE = "provide-statements-for-the-pre-registration-period";
100100
export const RELEVANT_PERIOD_REVIEW_STATEMENTS_PAGE = "review-statements-for-the-pre-registration-period";
101-
export const RELEVANT_PERIOD_SUBMIT_YEAR_BY_PAPER_PAGE = "relevant-period-submit-year-by-paper";
102101
export const TRUST_DETAILS_PAGE = "trust-details";
103102
export const TRUST_INVOLVED_PAGE = "trust-involved";
104103
export const TRUST_HISTORICAL_BENEFICIAL_OWNER_PAGE = "trust-historical-beneficial-owner";
@@ -320,7 +319,6 @@ export const RELEVANT_PERIOD_SUBMIT_BY_PAPER_URL = UPDATE_AN_OVERSEAS_ENTITY_URL
320319
export const RELEVANT_PERIOD_INTERRUPT_URL = UPDATE_AN_OVERSEAS_ENTITY_URL + RELEVANT_PERIOD_INTERRUPT_PAGE;
321320
export const RELEVANT_PERIOD_COMBINED_STATEMENTS_PAGE_URL = UPDATE_AN_OVERSEAS_ENTITY_URL + RELEVANT_PERIOD_COMBINED_STATEMENTS_PAGE;
322321
export const RELEVANT_PERIOD_REVIEW_STATEMENTS_URL = UPDATE_AN_OVERSEAS_ENTITY_URL + RELEVANT_PERIOD_REVIEW_STATEMENTS_PAGE;
323-
export const RELEVANT_PERIOD_SUBMIT_YEAR_BY_PAPER_URL = UPDATE_AN_OVERSEAS_ENTITY_URL + RELEVANT_PERIOD_SUBMIT_YEAR_BY_PAPER_PAGE;
324322

325323
// REMOVE overseas entity routes
326324
export const REMOVE_SECTION = "remove/";

src/controllers/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ export * as relevantPeriodRequiredInformation from './update/relevant.period.req
102102
export * as relevantPeriodSubmitByPaper from './update/relevant.period.submit.by.paper.controller';
103103
export * as relevantPeriodCombinedStatements from './update/relevant.period.combined.statements.controller';
104104
export * as relevantPeriodReviewStatements from './update/relevant.period.review.statments.controller';
105-
export * as relevantPeriodSubmitYearByPaper from './update/relevant.period.submit.year.by.paper.controller';
106105

107106
// REMOVE controllers
108107
export * as removeSoldAllLandFilter from './update/remove.sold.all.land.filter.controller';

src/controllers/update/relevant.period.submit.year.by.paper.controller.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/routes/index.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ import {
107107
relevantPeriodSubmitByPaper,
108108
relevantPeriodCombinedStatements,
109109
relevantPeriodReviewStatements,
110-
relevantPeriodSubmitYearByPaper
111110
} from "../controllers";
112111

113112
import { serviceAvailabilityMiddleware } from "../middleware/service.availability.middleware";
@@ -605,14 +604,6 @@ router.route(config.RELEVANT_PERIOD_SUBMIT_BY_PAPER_URL)
605604
navigation.hasOverseasEntity)
606605
.get(relevantPeriodSubmitByPaper.get);
607606

608-
router.route(config.RELEVANT_PERIOD_SUBMIT_YEAR_BY_PAPER_URL)
609-
.all(
610-
isFeatureEnabled(config.FEATURE_FLAG_ENABLE_RELEVANT_PERIOD),
611-
authentication,
612-
companyAuthentication,
613-
navigation.hasOverseasEntity)
614-
.get(relevantPeriodSubmitYearByPaper.get);
615-
616607
router.route(config.RELEVANT_PERIOD_COMBINED_STATEMENTS_PAGE_URL)
617608
.all(
618609
isFeatureEnabled(config.FEATURE_FLAG_ENABLE_RELEVANT_PERIOD),

src/utils/navigation.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@ export const NAVIGATION: Navigation = {
126126
previousPage: () => config.RELEVANT_PERIOD_REQUIRED_INFORMATION_CONFIRM_URL,
127127
nextPage: []
128128
},
129-
[config.RELEVANT_PERIOD_SUBMIT_YEAR_BY_PAPER_URL]: {
130-
currentPage: config.RELEVANT_PERIOD_SUBMIT_YEAR_BY_PAPER_PAGE,
131-
previousPage: () => "",
132-
nextPage: []
133-
},
134129
[config.RELEVANT_PERIOD_INTERRUPT_URL]: {
135130
currentPage: config.RELEVANT_PERIOD_INTERRUPT_PAGE,
136131
previousPage: () => "",

test/__mocks__/text.mock.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ export const RELEVANT_SECURE_REGISTER_CHANGE_LINK = "/update-an-overseas-entity/
307307
export const RELEVANT_SECURE_FILTER_PAGE_HEADING = "Do any beneficial owners or managing officers have personal information protected at Companies House?";
308308
export const RELEVANT_PERIOD_OWNED_LAND_CHANGE_LINK = "/update-an-overseas-entity/registered-owner-during-pre-registration-period";
309309
export const IMPORTANT_BANNER_TEXT = "You need to provide some information about the overseas entity from the pre-registration period.";
310-
export const RELEVANT_PERIOD_SUBMIT_YEAR_BY_PAPER_TITLE = "You'll need to file this year's update statement using the paper form";
311310

312311
// Remove journey
313312
export const REMOVE_SOLD_ALL_LAND_FILTER_PAGE_TITLE = "Has the overseas entity disposed of all relevant property or land in the UK?";

test/controllers/update/relevant.period.submit.year.by.paper.controller.spec.ts

Lines changed: 0 additions & 58 deletions
This file was deleted.

views/update/relevant-period-submit-year-by-paper.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

views/update/submit-by-paper-template.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{% extends "update-layout.html" %}
22

3-
{% if not title %}
4-
{% set title = "You'll need to file an update statement using the paper form" %}
5-
{% endif %}
3+
{% set title = "You'll need to file an update statement using the paper form" %}
64

75
{% block pageTitle %}
86
{% include "includes/update-page-title.html" %}

0 commit comments

Comments
 (0)