Skip to content

Commit

Permalink
MLPAB-871 - Create MLAB pages and handlers (#90)
Browse files Browse the repository at this point in the history
* create new pages for mlpab service

* upgrade allow list
  • Loading branch information
andrewpearce-digital committed Jun 6, 2023
1 parent 2a057b4 commit e513f7e
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 1 deletion.
4 changes: 4 additions & 0 deletions service-maintenance/internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,16 @@ func NewServer() http.Handler {
router.Handle("/en-gb/view-a-lasting-power-of-attorney", handlers.StaticMaintenanceHandler("View a LPA English", "val_en_maintenance.page.gohtml"))
router.Handle("/cy/gweld-atwrneiaeth-arhosol", handlers.StaticMaintenanceHandler("View a LPA Welsh", "val_cy_maintenance.page.gohtml"))
router.Handle("/en-gb/make-a-lasting-power-of-attorney", handlers.StaticMaintenanceHandler("Make a LPA English", "mal_en_maintenance.page.gohtml"))
router.Handle("/en-gb/modernised-make-a-lasting-power-of-attorney", handlers.StaticMaintenanceHandler("Modernised Make a LPA English", "mlpab_en_maintenance.page.gohtml"))
router.Handle("/cy/moderneiddio-gwneud-atwrneiaeth-arhosol", handlers.StaticMaintenanceHandler("Modernised Make a LPA Welsh", "mlpab_cy_maintenance.page.gohtml"))

router.Handle("/en-gb/use-a-lasting-power-of-attorney/planned", handlers.StaticMaintenanceHandler("Use a LPA English Planned Downtime", "ual_en_planned_maintenance.page.gohtml"))
router.Handle("/cy/defnyddio-atwrneiaeth-arhosol/planned", handlers.StaticMaintenanceHandler("Use a LPA Welsh Planned Downtime", "ual_cy_planned_maintenance.page.gohtml"))
router.Handle("/en-gb/view-a-lasting-power-of-attorney/planned", handlers.StaticMaintenanceHandler("View a LPA English Planned Downtime", "val_en_planned_maintenance.page.gohtml"))
router.Handle("/cy/gweld-atwrneiaeth-arhosol/planned", handlers.StaticMaintenanceHandler("View a LPA Welsh Planned Downtime", "val_cy_planned_maintenance.page.gohtml"))
router.Handle("/en-gb/make-a-lasting-power-of-attorney/planned", handlers.StaticMaintenanceHandler("Make a LPA English Planned Downtime", "mal_en_planned_maintenance.page.gohtml"))
router.Handle("/en-gb/modernised-make-a-lasting-power-of-attorney/planned", handlers.StaticMaintenanceHandler("Modernised Make a LPA English Panned Downtime", "mlpab_en_planned_maintenance.page.gohtml"))
router.Handle("/cy/moderneiddio-gwneud-atwrneiaeth-arhosol/planned", handlers.StaticMaintenanceHandler("Modernised Make a LPA Welsh Planned Downtime", "mlpab_cy_planned_maintenance.page.gohtml"))

router.PathPrefix("/").Handler(handlers.StaticHandler(os.DirFS("web/static")))

Expand Down
16 changes: 16 additions & 0 deletions service-maintenance/web/templates/mlpab_cy_maintenance.page.gohtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{ template "default" . }}

{{ define "title" }}Maintenance | Moderneiddio Gwneud Atwrneiaeth Barhaol | GOV.UK{{ end }}

{{ define "main" }}
<h1 class="govuk-heading-xl">Sorry, the service is unavailable</h1>
<p class="govuk-body">Please try again later. If you need to talk to someone about a lasting power of attorney, please contact us.</p>
<p class="govuk-body">Email: <a class="govuk-link" href="mailto:customerservices@publicguardian.gov.uk">customerservices@publicguardian.gov.uk</a>
<br>Telephone: 0330 456 0300
<br>Textphone: 0115 934 2778
<br>Monday to Friday, 9:30am to 5pm, except Wednesday, 10am to 5pm.
<br><a class="govuk-link" href="https://www.gov.uk/call-charges">Find out about call charges</a>
</p>
<p class="govuk-body">Back to GOV.UK: <a class="govuk-link" href="https://app.modernising.opg.service.justice.gov.uk/cy/start">https://app.modernising.opg.service.justice.gov.uk/cy/start</a>
</p>
{{ end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{ template "default" . }}

{{ define "title" }}Maintenance | Moderneiddio Gwneud Atwrneiaeth Barhaol | GOV.UK{{ end }}

{{ define "main" }}
<h1 class="govuk-heading-xl">Sorry, the service is unavailable</h1>
<p class="govuk-body">You will be able to use the service again from 4pm Saturday 9 July.</p>
<p class="govuk-body">If you need to make a lasting power of attorney before this time you can still use the paper LPA document.</p>
<p class="govuk-body">Back to GOV.UK: <a class="govuk-link" href="https://app.modernising.opg.service.justice.gov.uk/cy/start">https://app.modernising.opg.service.justice.gov.uk/cy/start</a>
</p>
{{ end }}
16 changes: 16 additions & 0 deletions service-maintenance/web/templates/mlpab_en_maintenance.page.gohtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{ template "default" . }}

{{ define "title" }}Maintenance | Modernised Make a lasting power of attorney | GOV.UK{{ end }}

{{ define "main" }}
<h1 class="govuk-heading-xl">Sorry, the service is unavailable</h1>
<p class="govuk-body">Please try again later. If you need to talk to someone about a lasting power of attorney, please contact us.</p>
<p class="govuk-body">Email: <a class="govuk-link" href="mailto:customerservices@publicguardian.gov.uk">customerservices@publicguardian.gov.uk</a>
<br>Telephone: 0330 456 0300
<br>Textphone: 0115 934 2778
<br>Monday to Friday, 9:30am to 5pm, except Wednesday, 10am to 5pm.
<br><a class="govuk-link" href="https://www.gov.uk/call-charges">Find out about call charges</a>
</p>
<p class="govuk-body">Back to GOV.UK: <a class="govuk-link" href="https://app.modernising.opg.service.justice.gov.uk/start">https://app.modernising.opg.service.justice.gov.uk/start</a>
</p>
{{ end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{ template "default" . }}

{{ define "title" }}Maintenance | Modernised Make a lasting power of attorney | GOV.UK{{ end }}

{{ define "main" }}
<h1 class="govuk-heading-xl">Sorry, the service is unavailable</h1>
<p class="govuk-body">You will be able to use the service again from 4pm Saturday 9 July.</p>
<p class="govuk-body">If you need to make a lasting power of attorney before this time you can still use the paper LPA document.</p>
<p class="govuk-body">Back to GOV.UK: <a class="govuk-link" href="https://app.modernising.opg.service.justice.gov.uk/start">https://app.modernising.opg.service.justice.gov.uk/start</a>
</p>
{{ end }}
2 changes: 1 addition & 1 deletion terraform/environment/regions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ output "maintenance_url" {
}

module "allow_list" {
source = "git@github.com:ministryofjustice/terraform-aws-moj-ip-whitelist.git?ref=v1.4.0"
source = "git@github.com:ministryofjustice/terraform-aws-moj-ip-whitelist.git?ref=v2.3.0"
}

0 comments on commit e513f7e

Please sign in to comment.