Skip to content

Commit

Permalink
MLPAB-1390 Show continue instead of continue to payment if not paying (
Browse files Browse the repository at this point in the history
  • Loading branch information
hawx authored Nov 6, 2023
1 parent b8640f5 commit a732456
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions internal/page/donor/send_us_your_evidence_by_post.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@ import (

"github.com/ministryofjustice/opg-go-common/template"
"github.com/ministryofjustice/opg-modernising-lpa/internal/page"
"github.com/ministryofjustice/opg-modernising-lpa/internal/pay"
"github.com/ministryofjustice/opg-modernising-lpa/internal/validation"
)

type sendUsYourEvidenceByPostData struct {
App page.AppData
Errors validation.List
App page.AppData
Errors validation.List
FeeType pay.FeeType
}

func SendUsYourEvidenceByPost(tmpl template.Template, payer Payer) Handler {
return func(appData page.AppData, w http.ResponseWriter, r *http.Request, lpa *page.Lpa) error {
data := &sendUsYourEvidenceByPostData{
App: appData,
App: appData,
FeeType: lpa.FeeType,
}

if r.Method == http.MethodPost {
Expand Down
2 changes: 1 addition & 1 deletion web/template/send_us_your_evidence_by_post.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<form novalidate method="post">
<div class="govuk-button-group">
<button type="submit" class="govuk-button" data-module="govuk-button">{{ tr .App "continueToPayment" }}</button>
<button type="submit" class="govuk-button" data-module="govuk-button">{{ if or .FeeType.IsFullFee .FeeType.IsHalfFee }}{{ tr .App "continueToPayment" }}{{ else }}{{ tr .App "continue" }}{{ end }}</button>
<a href="{{ link .App (.App.Paths.TaskList.Format .App.LpaID) }}" class="govuk-button govuk-button--secondary">{{ tr .App "returnToTaskList" }}</a>
</div>
{{ template "csrf-field" . }}
Expand Down

0 comments on commit a732456

Please sign in to comment.