2015-12-14 16:37:15 +00:00
|
|
|
|
{% extends "admin_template.html" %}
|
|
|
|
|
|
|
2019-10-14 16:23:53 +01:00
|
|
|
|
{% set mainClasses = "govuk-!-padding-top-0 govuk-!-padding-bottom-0" %}
|
|
|
|
|
|
|
2017-02-13 10:45:15 +00:00
|
|
|
|
{% block per_page_title %}
|
|
|
|
|
|
{% block service_page_title %}{% endblock %} – {{ current_service.name }}
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
2019-10-11 16:44:17 +01:00
|
|
|
|
{% block main %}
|
|
|
|
|
|
<div class="govuk-width-container">
|
2016-11-22 17:15:31 +00:00
|
|
|
|
<div class="navigation-service">
|
2019-06-21 14:05:00 +01:00
|
|
|
|
{% if current_service.organisation_id %}
|
|
|
|
|
|
{% if current_user.platform_admin or
|
|
|
|
|
|
(current_user.belongs_to_organisation(current_service.organisation_id) and current_service.live) %}
|
2020-03-20 08:42:33 +00:00
|
|
|
|
<a href="{{ url_for('.organisation_dashboard', org_id=current_service.organisation_id) }}" class="govuk-link govuk-link--no-visited-state navigation-organisation-link">{{ current_service.organisation_name }}</a>
|
2019-06-20 09:53:21 +01:00
|
|
|
|
{% endif %}
|
2019-06-21 14:05:00 +01:00
|
|
|
|
{% endif %}
|
2019-12-11 20:33:57 +00:00
|
|
|
|
<div class="navigation-service-name govuk-!-font-weight-bold">
|
2016-11-22 17:15:31 +00:00
|
|
|
|
{{ current_service.name }}
|
2020-09-22 14:52:15 +01:00
|
|
|
|
{% if current_service.has_permission('broadcast') %}
|
|
|
|
|
|
{% if current_service.trial_mode %}
|
|
|
|
|
|
<span class="navigation-service-type navigation-service-type--training">Training</span>
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
<span class="navigation-service-type navigation-service-type--live">Live</span>
|
|
|
|
|
|
{% endif %}
|
2020-08-19 14:54:50 +01:00
|
|
|
|
{% endif %}
|
2017-02-13 10:46:56 +00:00
|
|
|
|
</div>
|
2019-12-06 07:53:46 +00:00
|
|
|
|
<a href="{{ url_for('main.choose_account') }}" class="govuk-link govuk-link--no-visited-state navigation-service-switch">Switch service</a>
|
2016-11-22 17:15:31 +00:00
|
|
|
|
</div>
|
2020-02-19 11:57:15 +00:00
|
|
|
|
<div class="govuk-grid-row govuk-!-padding-bottom-12">
|
2017-04-27 15:20:25 +01:00
|
|
|
|
{% if help %}
|
2020-02-19 12:29:28 +00:00
|
|
|
|
<div class="govuk-grid-column-one-third">
|
2017-04-27 15:20:25 +01:00
|
|
|
|
{% else %}
|
2020-02-19 12:53:59 +00:00
|
|
|
|
<div class="govuk-grid-column-one-quarter">
|
2017-04-27 15:20:25 +01:00
|
|
|
|
{% endif %}
|
2019-10-14 16:23:53 +01:00
|
|
|
|
{% include "main_nav.html" %}
|
|
|
|
|
|
</div>
|
2019-11-26 12:14:09 +00:00
|
|
|
|
{% if help %}
|
2020-02-19 12:36:02 +00:00
|
|
|
|
<div class="govuk-grid-column-two-thirds">
|
2019-11-26 12:14:09 +00:00
|
|
|
|
{% else %}
|
2020-02-20 16:55:56 +00:00
|
|
|
|
<div class="govuk-grid-column-three-quarters">
|
2019-11-26 12:14:09 +00:00
|
|
|
|
{% endif %}
|
2019-10-11 16:44:17 +01:00
|
|
|
|
{% block beforeContent %}{% endblock %}
|
|
|
|
|
|
<main class="govuk-main-wrapper column-main {{ mainClasses }}" id="main-content" role="main">
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
{% include 'flash_messages.html' %}
|
|
|
|
|
|
{% block maincolumn_content %}{% endblock %}
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
</main>
|
|
|
|
|
|
</div>
|
2016-01-22 10:57:49 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2015-12-15 08:20:25 +00:00
|
|
|
|
{% endblock %}
|