Use the same template for problems and questions

This commit is contained in:
Chris Hill-Scott
2020-03-24 17:48:12 +00:00
parent 11cdf58256
commit 17a3ee920c
3 changed files with 16 additions and 12 deletions
@@ -5,24 +5,28 @@
{% from "components/page-header.html" import page_header %}
{% from "components/form.html" import form_wrapper %}
{% set page_title = 'Report a problem' if is_problem else 'Ask a question or give feedback' %}
{% block per_page_title %}
Report a problem
{{ page_title }}
{% endblock %}
{% block maincolumn_content %}
{{ page_header(
'Report a problem',
page_title,
back_link=url_for('.support')
) }}
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="panel panel-border-wide">
<p>
Check our <a class="govuk-link govuk-link--no-visited-state" href="https://status.notifications.service.gov.uk">system status</a>
page to see if there are any known issues with GOV.UK Notify.
</p>
</div>
{% if is_problem %}
<div class="panel panel-border-wide">
<p>
Check our <a class="govuk-link govuk-link--no-visited-state" href="https://status.notifications.service.gov.uk">system status</a>
page to see if there are any known issues with GOV.UK Notify.
</p>
</div>
{% endif %}
{% call form_wrapper() %}
{{ textbox(form.feedback, width='1-1', hint='', rows=10, autosize=True) }}
{% if not current_user.is_authenticated %}