We use some essential cookies to make this service work.
We’d like to set additional cookies so we can remember your settings, understand how people use the service and make improvements.
- {% endset %} + {%- endset -%} - {% set acceptHtml %} + {%- set acceptHtml -%}You’ve accepted additional cookies. You can change your cookie settings at any time.
- {% endset %} + {%- endset -%} - {% set rejectHtml %} + {%- set rejectHtml -%}You’ve rejected additional cookies. You can change your cookie settings at any time.
- {% endset %} + {%- endset -%} {{ govukCookieBanner({ 'ariaLabel': "Cookies on " ~ config['SERVICE_NAME'], @@ -104,49 +103,58 @@ } ] }) }} - {% endif %} -{% endblock %} + {%- endif -%} +{%- endblock -%} -{% block header %} +{%- block header -%} {{ govukHeader({ - 'classes': 'govuk-header--full-width-border', - 'homepageUrl': 'https://www.gov.uk/' + 'classes': "govuk-header--full-width-border" }) }} - {{ govukServiceNavigation({ 'serviceName': config['SERVICE_NAME'], 'serviceUrl': url_for('main.index'), 'navigation': [ - {'href': url_for('demos.components'), 'text': 'Components'}, - {'href': url_for('demos.forms'), 'text': 'Forms'} + { + 'href': "#", + 'text': "Navigation item 1" + }, + { + 'href': "#", + 'text': "Navigation item 2", + 'active': true + }, + { + 'href': "#", + 'text': "Navigation item 3" + } ] }) }} -{% endblock %} +{%- endblock -%} -{% block beforeContent %} +{%- block beforeContent -%} {{ govukPhaseBanner({ 'tag': { 'text': config['SERVICE_PHASE'] }, 'html': 'This is a new service – your feedback will help us to improve it.' }) }} -{% endblock %} +{%- endblock -%} -{% block content %} - {% if form and form.errors %} +{%- block content -%} + {%- if form and form.errors -%} {{ govukErrorSummary(wtforms_errors(form)) }} - {% endif %} + {%- endif -%} - {% with messages = get_flashed_messages(with_categories=true) %} - {% if messages %} - {% for category, message in messages %} + {%- with messages = get_flashed_messages(with_categories=true) -%} + {%- if messages -%} + {%- for category, message in messages -%} {{ govukNotificationBanner({'type': category, 'html': message}) }} - {% endfor %} - {% endif %} - {% endwith %} -{% endblock %} + {%- endfor -%} + {%- endif -%} + {%- endwith -%} +{%- endblock -%} -{% block footer %} +{%- block footer -%} {{ govukFooter({ 'meta': { 'items': [ @@ -166,13 +174,8 @@ 'html': 'Built by ' + config['DEPARTMENT_NAME'] + '' } }) }} -{% endblock %} +{%- endblock -%} -{% block bodyEnd %} - - - {% assets "js" %}{% endassets %} -{% endblock %} \ No newline at end of file +{%- block bodyEnd -%} + +{%- endblock -%} \ No newline at end of file diff --git a/app/templates/demos/autocomplete.html b/app/templates/demos/autocomplete.html deleted file mode 100644 index 5856de2..0000000 --- a/app/templates/demos/autocomplete.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "base.html" %} - -{% block pageTitle %}{%- if form.errors %}Error: {% endif -%}Autocomplete – GOV.UK{% endblock %} - -{% block content %} -Examples:
-- This form demonstrates a variety of WTForms fields rendered - using widgets provided by GOV.UK Frontend WTForms. -
- - -If you pasted the web address, check you copied the entire address.
Try again later.
We saved your answers. They will be available for 30 days.
You will be able to use the service from 9am on Monday 19 November 2018.
This accessibility statement applies to {{config['SERVICE_URL']}}.
- {{ govukInsetText({ - 'text': "Note: use this section to make a brief, general statement about what the website allows disabled users to do. Base it on the evaluation covered in detail in the ‘Technical information about this website’s accessibility’ section. If you’re not confident that something is accurate, leave it out. If you’re not confident enough to say anything specific here, leave this section out completely." - }) }} -This website is run by {{config['DEPARTMENT_NAME']}}. We want as many people as possible to be able to use this website. For example, that means you should be able to:
We know some parts of this website are not fully accessible:
We provide a text relay service for people who are D/deaf, hearing impaired or have a speech @@ -103,26 +84,11 @@
{{config['DEPARTMENT_NAME']}} is committed to making its website accessible, in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.
This website is fully compliant with the Web Content Accessibility Guidelines version 2.1 AA standard.
This website is partially compliant with the Web Content Accessibility Guidelines version 2.1 @@ -132,36 +98,12 @@
The content listed below is non-accessible for the following reasons.
Some images do not have a text alternative, so people using a screen reader cannot access the information. This fails WCAG 2.1 success criterion 1.1.1 (non-text content).
@@ -170,12 +112,6 @@There’s no way to skip the repeated content in the page header (for example, a ‘skip to main @@ -201,10 +137,6 @@
Some of our PDFs and Word documents are essential to providing our services. For example, we @@ -224,19 +156,11 @@
Our accessibility roadmap [add link to roadmap] shows how and when we plan to improve accessibility on this website.
This statement was prepared on [date when it was first published]. It was last reviewed on [date when it was last reviewed].
@@ -246,15 +170,7 @@We used this approach to deciding on a sample of pages to test [add link to explanation of how you decided which pages to test].
- {{ govukInsetText({ - 'text': "Note: you do not have to use this approach to sampling, but you should link to a full explanation of what you tested and how you chose it. If you get a third party auditor to test your website for you, they should include sampling details in test report - so you can just to link to that." - }) }} -You can read the full accessibility test report [add link to report].
- - {{ govukInsetText({ - 'text': "Note: publishing the test report is optional, but doing so may allow you to make your accessibility statement shorter and more focused." - }) }}This is a template Flask app using the GOV.UK Frontend and GOV.UK Design System which is designed to @@ -44,4 +44,4 @@