Skip to content

Commit

Permalink
PODS-9621 - Add content for if no AFT returns present
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraToddCodes committed Oct 22, 2024
1 parent 5349704 commit 65bb10d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/AFTOverviewController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import config.FrontendAppConfig
import controllers.AFTOverviewController._
import controllers.actions.{AllowAccessActionProviderForIdentifierRequest, IdentifierAction}
import helpers.FormatHelper.formatCurrencyAmountAsString
import models.AFTQuarter.{formatForDisplayOneYear, monthDayStringFormat}
import models.AFTQuarter.formatForDisplayOneYear
import models.financialStatement.PaymentOrChargeType.{AccountingForTaxCharges, EventReportingCharges, getPaymentOrChargeType}
import models.financialStatement.{PaymentOrChargeType, SchemeFSDetail}
import models.requests.IdentifierRequest
Expand Down
2 changes: 2 additions & 0 deletions conf/messages.en
Original file line number Diff line number Diff line change
Expand Up @@ -1648,5 +1648,7 @@ aftOverview.totalOutstandingNotAvailable = The amount outstanding is not curr
aftOverview.viewOutstanding = View outstanding payments and charges
aftOverview.financialOverview = View your financial overview
aftOverview.inProgress = In progress
aftOverview.noReportsInProgress = There are no AFT returns in progress.
aftOverview.pastAftReturns = Past AFT returns
aftOverview.noPastReturns = There are no past AFT returns.
aftOverview.allPastAftReturns = View or change all past AFT returns
15 changes: 13 additions & 2 deletions conf/views/aftOverview.njk
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@
</p>
<hr>

{% if viewModel.quartersInProgress.length > 0 %}


<h2 class="govuk-heading-l govuk-!-margin-top-6">
{{ messages("aftOverview.inProgress") }}
</h2>

{% if viewModel.quartersInProgress.length > 0 %}
<ul class="govuk-list">
{% for tuple in viewModel.quartersInProgress %}
<li class="govuk-body">
Expand All @@ -70,13 +71,19 @@
{% endfor %}
</ul>
<hr>
{% else %}
<p class="govuk-body">
{{ messages("aftOverview.noReportsInProgress") }}
</p>
<br>
<hr>
{% endif %}

{% if viewModel.pastYearsAndQuarters.length > 0 %}
<h2 class="govuk-heading-l govuk-!-margin-top-6">
{{ messages("aftOverview.pastAftReturns") }}
</h2>

{% if viewModel.pastYearsAndQuarters.length > 0 %}
{% for tuple in viewModel.pastYearsAndQuarters %}
<h3 class="govuk-heading-s">
{{ tuple[0] }}
Expand All @@ -93,6 +100,10 @@
</ul>
{% endfor %}

{% else %}
<p class="govuk-body">
{{ messages("aftOverview.noPastReturns") }}
</p>
{% endif %}

<br>
Expand Down

0 comments on commit 65bb10d

Please sign in to comment.