Files
notifications-admin/app/templates/admin_template.html
T

235 lines
7.4 KiB
HTML
Raw Normal View History

{% extends "main_template.html" %}
2016-01-27 15:22:47 +00:00
{% from "components/banner.html" import banner %}
2022-12-14 13:14:35 -05:00
{% block headIcons %}
<link rel="shortcut icon" sizes="16x16 32x32 48x48" href="{{ asset_url('images/favicon.ico') }}" type="image/x-icon" />
<link rel="mask-icon" href="{{ asset_url('images/govuk-mask-icon.svg') }}" color="{{ themeColor | default('#0b0c0c') }}"> {# Hardcoded value of $govuk-black #}
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset_url('images/govuk-apple-touch-icon-180x180.png') }}">
<link rel="apple-touch-icon" sizes="167x167" href="{{ asset_url('images/govuk-apple-touch-icon-167x167.png') }}">
<link rel="apple-touch-icon" sizes="152x152" href="{{ asset_url('images/govuk-apple-touch-icon-152x152.png') }}">
<link rel="apple-touch-icon" href="{{ asset_url('images/govuk-apple-touch-icon.png') }}">
{% endblock %}
2015-12-10 15:57:32 +00:00
{% block head %}
2020-12-29 13:38:27 +00:00
{%- for font in font_paths %}
<link rel="preload" href="{{ asset_url(font, with_querystring_hash=False) }}" as="font" type="font/woff2" crossorigin>
{%- endfor %}
2023-06-06 15:28:24 -04:00
<link rel="stylesheet" media="screen" href="{{ asset_url('css/styles.css') }}" />
2020-07-06 10:53:14 +01:00
{% block extra_stylesheets %}
{% endblock %}
<style nonce="{{ csp_nonce() }}">
.govuk-header__container { border-color: {{header_colour}} }
2016-02-01 14:46:12 +00:00
</style>
{% if g.hide_from_search_engines %}
<meta name="robots" content="noindex" />
{% endif %}
2017-10-27 11:33:10 +01:00
<meta name="google-site-verification" content="niWnSqImOWz6mVQTYqNb5tFK8HaKSB4b3ED4Z9gtUQ0" />
2019-12-17 11:24:57 +00:00
{% block meta_format_detection %}
<meta name="format-detection" content="telephone=no">
{% endblock %}
2017-11-14 17:25:32 +00:00
{% block meta %}
{% endblock %}
<!-- <script type="text/javascript" src="{{ asset_url('js/gtm_head.js') }}"></script> -->
2015-12-10 15:57:32 +00:00
{% endblock %}
{% block pageTitle %}
2023-07-28 11:12:46 -04:00
{% block per_page_title %}{% endblock %} Notify.gov
{% endblock %}
2019-10-17 10:40:48 +01:00
{% block bodyStart %}
2021-05-18 12:38:05 +01:00
{% block extra_javascripts_before_body %}
2023-06-12 13:52:38 -04:00
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WX5NGWF"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% endblock %}
{% endblock %}
2019-10-09 16:00:45 +01:00
{% block header %}
2022-12-14 13:14:35 -05:00
{% if current_user.is_authenticated %}
{% if current_user.platform_admin %}
{% set navigation = [
2023-06-26 11:25:47 -04:00
{
"href": url_for('main.get_started'),
2023-07-31 14:28:14 -04:00
"text": "Using Notify",
2023-06-26 11:25:47 -04:00
"active": header_navigation.is_selected('using_notify')
},
{
"href": url_for('main.features'),
"text": "Features",
"active": header_navigation.is_selected('features')
},
2022-12-14 13:14:35 -05:00
{
"href": url_for('main.user_profile'),
"text": current_user.name,
"active": header_navigation.is_selected('user-profile')
},
{
"href": url_for('main.platform_admin_splash_page'),
"text": "Platform admin",
"active": header_navigation.is_selected('platform-admin')
},
{
"href": url_for('main.sign_out'),
"text": "Sign out"
},
{
"href": url_for('main.support'),
"text": "Contact us",
"active": header_navigation.is_selected('support')
2022-12-14 13:14:35 -05:00
}
] %}
{% else %}
{% set navigation = [
{
"href": url_for('main.get_started'),
2023-07-31 14:28:14 -04:00
"text": "Using Notify",
"active": header_navigation.is_selected('using_notify')
},
{
"href": url_for('main.features'),
"text": "Features",
"active": header_navigation.is_selected('features')
},
2022-12-14 13:14:35 -05:00
{
"href": url_for('main.support'),
"text": "Contact us",
2022-12-14 13:14:35 -05:00
"active": header_navigation.is_selected('support')
},
{
"href": url_for('main.user_profile'),
"text": current_user.name,
"active": header_navigation.is_selected('user-profile')
},
{
"href": url_for('main.sign_out'),
"text": "Sign out"
}
] %}
{% endif %}
{% else %}
<!-- Add navigation back after pilot -->
{# {% set navigation = [
2022-12-14 13:14:35 -05:00
{
"href": url_for('main.get_started'),
2023-07-31 14:28:14 -04:00
"text": "Using Notify",
"active": header_navigation.is_selected('using_notify')
2022-12-14 13:14:35 -05:00
},
{
"href": url_for('main.features'),
"text": "Features",
"active": header_navigation.is_selected('features')
},
{
"href": url_for('main.support'),
"text": "Contact us",
"active": header_navigation.is_selected('support')
2022-12-14 13:14:35 -05:00
},
{
"href": url_for('main.sign_in'),
"text": "Sign in",
"active": header_navigation.is_selected('sign-in')
}
] %} #}
2022-12-14 13:14:35 -05:00
{% endif %}
2022-12-14 11:50:51 -05:00
2023-08-31 13:24:12 -04:00
{{ usaHeader({
2022-12-14 13:14:35 -05:00
"homepageUrl": url_for('main.show_accounts_or_dashboard'),
"productName": "Notify",
"navigation": navigation,
"navigationClasses": "govuk-header__navigation--end",
"assetsPath": asset_path + "images"
}) }}
{% endblock %}
2019-10-09 17:49:29 +01:00
{% block footer %}
2022-11-01 15:27:29 -04:00
2019-10-09 17:49:29 +01:00
{% if current_service and current_service.research_mode %}
2023-08-08 16:19:17 -04:00
{% set meta_suffix = 'Built by the <a href="https://www.gsa.gov/about-us/organization/federal-acquisition-service/technology-transformation-services/tts-solutions" class="usa-link">Technology Transformation Services</a><span id="research-mode" class="research-mode">research mode</span>' %}
2019-10-09 17:49:29 +01:00
{% else %}
2023-08-08 16:19:17 -04:00
{% set meta_suffix = 'Built by the <a href="https://www.gsa.gov/about-us/organization/federal-acquisition-service/technology-transformation-services/tts-solutions" class="usa-link">Technology Transformation Services</a>' %}
2019-10-09 17:49:29 +01:00
{% endif %}
2023-08-31 13:24:12 -04:00
{{ usaFooter({
2019-11-28 11:08:27 +00:00
"classes": "js-footer",
2019-10-09 17:49:29 +01:00
"navigation": [
{
"title": "About Notify",
"columns": 1,
"items": [
2019-10-09 17:49:29 +01:00
{
"href": url_for("main.features"),
"text": "Features"
},
{
"href": url_for("main.roadmap"),
"text": "Roadmap"
},
{
"href": url_for("main.security"),
"text": "Security"
},
{
"href": url_for("main.terms"),
"text": "Terms of use"
},
]
},
{
"title": "Using Notify",
"columns": 1,
"items": [
{
"href": url_for("main.get_started"),
"text": "Get started"
},
2022-11-01 15:27:29 -04:00
{
"href": url_for("main.pricing"),
"text": "Pricing"
},
{
"href": url_for("main.trial_mode_new"),
"text": "Trial mode"
},
{
"href": url_for("main.message_status"),
2020-01-24 12:01:00 +00:00
"text": "Delivery status"
},
{
2020-01-24 15:57:29 +00:00
"href": url_for("main.guidance_index"),
2020-01-24 12:01:00 +00:00
"text": "Guidance"
},
{
"href": url_for("main.documentation"),
"text": "API documentation"
}
]
2022-11-01 15:27:29 -04:00
},
{
"title": "Support",
"columns": 1,
"items": [
{
"href": url_for('main.support'),
"text": "Contact us"
},
]
},
2019-10-09 17:49:29 +01:00
],
"meta": {
"items": meta_items,
"html": meta_suffix
}
}) }}
{% endblock %}
{% block bodyEnd %}
2020-07-06 10:53:14 +01:00
{% block extra_javascripts %}
{% endblock %}
<!--[if gt IE 8]><!-->
2017-02-13 16:43:12 +00:00
<script type="text/javascript" src="{{ asset_url('javascripts/all.js') }}"></script>
2023-06-06 15:28:24 -04:00
<script type="text/javascript" src="{{ asset_url('js/uswds.min.js') }}"></script>
<!--<![endif]-->
2015-12-15 08:20:25 +00:00
{% endblock %}