Rename and delete form templates

`report-a-problem’ becomes `form` because it’s not just being used for
problems.

'ask-a-question' gets deleted because it’s not being used.
This commit is contained in:
Chris Hill-Scott
2020-03-24 15:30:43 +00:00
parent 17a3ee920c
commit 55e377baf6
3 changed files with 1 additions and 33 deletions

View File

@@ -144,7 +144,7 @@ def feedback(ticket_type):
form.feedback.data = get_prefilled_message()
return render_template(
'views/support/{}.html'.format(PROBLEM_TICKET_TYPE),
'views/support/form.html',
form=form,
is_problem=(ticket_type == PROBLEM_TICKET_TYPE),
)

View File

@@ -1,32 +0,0 @@
{% extends "withoutnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import sticky_page_footer %}
{% from "components/page-header.html" import page_header %}
{% from "components/form.html" import form_wrapper %}
{% block per_page_title %}
Ask a question or give feedback
{% endblock %}
{% block maincolumn_content %}
{{ page_header(
'Ask a question or give feedback',
back_link=url_for('.support')
) }}
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
{% call form_wrapper() %}
{{ textbox(form.feedback, width='1-1', hint='', rows=10, autosize=True) }}
{% if not current_user.is_authenticated %}
{{ textbox(form.name, width='1-1') }}
{{ textbox(form.email_address, width='1-1') }}
{% else %}
<p>Well reply to {{ current_user.email_address }}</p>
{% endif %}
{{ sticky_page_footer('Send') }}
{% endcall %}
</div>
</div>
{% endblock %}