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:
Chris Hill-Scott
2016-01-22 10:57:49 +00:00
parent 6fde5f99c7
commit 6f1f514b2b
3 changed files with 21 additions and 11 deletions

View File

@@ -1,13 +1,17 @@
{% extends "admin_template.html" %}
{% from "main_nav.html" import main_nav with context %}
{% from "components/banner.html" import banner %}
{% block fullwidth_content %}
<div class="grid-row">
<div class="column-one-quarter">
{% include "main_nav.html" %}
</div>
<div class="column-three-quarters">
{% block maincolumn_content %}{% endblock %}
</div>
</div>
<div class="grid-row">
<div class="column-one-quarter">
{% include "main_nav.html" %}
</div>
<div class="column-three-quarters">
{{ banner(
'You are in restricted mode. You can only send notifications to yourself.',
'info'
) }}
{% block maincolumn_content %}{% endblock %}
</div>
</div>
{% endblock %}