Skip to content

Commit

Permalink
Add check your answers layout
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldfallen committed Nov 23, 2017
1 parent 6e577fd commit fde4b9b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions templates/look-and-feel/layouts/check_your_answers.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{% extends "look-and-feel/layouts/two_thirds.html" %}
{% from "look-and-feel/components/header.njk" import header %}
{% from "look-and-feel/components/check-your-answers.njk" import answer %}

{% block page_title %}{{ title | default('Check your answers') }}{% endblock %}

{% block breadcrumbs %}
{{ phaseBanner(phase, feedbackLink) }}
<a class="link-back" href="#" onclick="history.go(-1); return false;">Back</a>
{% endblock %}


{% block two_thirds %}

{{ header(title | default('Check your answers')) }}

{% if noCompletedQuestions %}
<p>You have not completed any questions yet.</p>
{% endif %}

{% for section in _sections %}

{% if section.atLeast1Completed %}
{% if section.title %}
{{ header(section.title, size='medium') }}
{% endif %}

<dl class="govuk-check-your-answers cya-questions-short">
{% for part in section.completedAnswers %}
{% if part.html %}
{{ part.html | safe }}
{% else %}
{{ answer(part.question, part.answer, part.url) }}
{% endif %}
{% endfor %}
</dl>
{% endif %}

{% endfor %}

{% if incomplete %}
<a href="{{ continueUrl }}" class="button">Continue your application</a>
{% endif %}


{% endblock %}

0 comments on commit fde4b9b

Please sign in to comment.