mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Add restricted mode warning
For the hack day, we should only let developers use the platform in restricted mode. This commit adds a banner telling them this. Can’t get the app running locally, so fingers crossed it actually looks how I imagine it’s going to look…
This commit is contained in:
@@ -28,6 +28,12 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.banner-info {
|
||||||
|
@extend .banner;
|
||||||
|
background: $govuk-blue;
|
||||||
|
color: $white;
|
||||||
|
}
|
||||||
|
|
||||||
.banner-dangerous {
|
.banner-dangerous {
|
||||||
|
|
||||||
@extend .banner;
|
@extend .banner;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{% macro banner(body, with_tick=False) %}
|
{% macro banner(body, type=None, with_tick=False) %}
|
||||||
<div class='banner{% if with_tick %}-with-tick{% endif %}'>
|
<div class='banner{% if type %}-{{ type }}{% endif %}{% if with_tick %}-with-tick{% endif %}'>
|
||||||
{{ body }}
|
{{ body }}
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{% extends "admin_template.html" %}
|
{% extends "admin_template.html" %}
|
||||||
{% from "main_nav.html" import main_nav with context %}
|
{% from "components/banner.html" import banner %}
|
||||||
|
|
||||||
{% block fullwidth_content %}
|
{% block fullwidth_content %}
|
||||||
<div class="grid-row">
|
<div class="grid-row">
|
||||||
<div class="column-one-quarter">
|
<div class="column-one-quarter">
|
||||||
{% include "main_nav.html" %}
|
{% include "main_nav.html" %}
|
||||||
</div>
|
</div>
|
||||||
<div class="column-three-quarters">
|
<div class="column-three-quarters">
|
||||||
{% block maincolumn_content %}{% endblock %}
|
{{ banner(
|
||||||
</div>
|
'You are in restricted mode. You can only send notifications to yourself.',
|
||||||
</div>
|
'info'
|
||||||
|
) }}
|
||||||
|
{% block maincolumn_content %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user