-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdxt-devtool-baselayout.html
More file actions
71 lines (60 loc) · 2.38 KB
/
dxt-devtool-baselayout.html
File metadata and controls
71 lines (60 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{% extends "govuk/template.njk" %}
{% from "govuk/components/back-link/macro.njk" import govukBackLink -%}
{% from "govuk/components/footer/macro.njk" import govukFooter -%}
{% from "govuk/components/phase-banner/macro.njk" import govukPhaseBanner -%}
{% from "govuk/components/skip-link/macro.njk" import govukSkipLink -%}
{% from "govuk/macros/attributes.njk" import govukAttributes -%}
{% from "components/service-banner/macro.njk" import appServiceBanner -%}
{% from "components/tag-env/macro.njk" import appTagEnv -%}
{% from "govuk/components/cookie-banner/macro.njk" import govukCookieBanner -%}
{% from "govuk/components/notification-banner/macro.njk" import govukNotificationBanner -%}
{% set productName %}
{{ appTagEnv({ env: "devtool" }) }}
{% endset %}
{% block head %}
<link rel="preload" as="font" href="{{ assetPath }}/fonts/bold-b542beb274-v2.woff2" type="font/woff2" crossorigin="anonymous">
<link rel="preload" as="font" href="{{ assetPath }}/fonts/light-94a07e06a1-v2.woff2" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="{{ getDxtAssetPath("stylesheets/application.scss") }}">
{% endblock %}
{% block pageTitle -%}
{{ "Error: " if errors | length }}{{ pageTitle | evaluate }} - {{ name if name else config.serviceName }} - GOV.UK
{%- endblock %}
{% block skipLink %}
{{ govukSkipLink({
href: '#main-content',
text: 'Skip to main content'
}) }}
{% endblock %}
{% block header %}
{{ govukHeader({
homepageUrl: currentPath if context.isForceAccess else "https://defra.github.io/forms-engine-plugin/",
containerClasses: "govuk-width-container",
productName: productName | safe | trim,
serviceName: "Digital Express Toolkit",
serviceUrl: currentPath if context.isForceAccess else serviceUrl
}) }}
{% endblock %}
{% block beforeContent %}
{% if backLink %}
{{ govukBackLink(backLink) }}
{% endif %}
{% endblock %}
{% block content %}
<h1 class="govuk-heading-l">Default page template</h1>
{% endblock %}
{% block bodyEnd %}
<script type="module" nonce="{{ cspNonce }}" src="{{ getDxtAssetPath("application.js") }}"></script>
{% endblock %}
{% block footer %}
{% set meta = {
items: [
{
href: 'https://defra.github.io/forms-engine-plugin/',
text: 'DXT documentation'
}
]
} if slug %}
{% if not context.isForceAccess %}
{{ govukFooter({ meta: meta }) }}
{% endif %}
{% endblock %}