Skip to content

Commit

Permalink
Fix page numbering off-by-one error (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBiddle committed May 5, 2022
1 parent a71739f commit 33cdbee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/form-designer/form-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<h1 class="govuk-heading-l">{{ data['formTitle'] }}</h1>

{% set nextPageId = data['highestPageId'] | int + 1 %}
{% set totalPageNum = data['highestPageId'] | int + 3 %}
{% set totalPageNum = data['highestPageId'] | int + 2 %}

<p class="govuk-body-s">{{totalPageNum}} page draft form{% if data['highestPageId'] > 0 %} —
<a href="form-publish" class="form-publish govuk-link--no-visited-state">Publish</a>
Expand Down

0 comments on commit 33cdbee

Please sign in to comment.