mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-01 06:40:54 -05:00
we branch on any_ to either say "require ALL these permissions" or "require ANY of these permissions". But we only ever call the decorator with one permission, or with any_=True, so it's unnecessary
63 lines
2.4 KiB
HTML
63 lines
2.4 KiB
HTML
{% from "components/banner.html" import banner_wrapper %}
|
|
|
|
{% if help %}
|
|
{% call banner_wrapper(type='tour') %}
|
|
<p class="heading-medium">Try sending yourself this example</p>
|
|
<div class="grid-row bottom-gutter {% if help != '1' %}greyed-out-step{% endif %}">
|
|
<div class="column-one-sixth">
|
|
<p class="heading-large" style="float: left;">1.</p>
|
|
</div>
|
|
<div class="column-five-sixths">
|
|
<p>
|
|
Every message is sent from a template
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="grid-row bottom-gutter {% if help != '2' %}greyed-out-step{% endif %}">
|
|
<div class="column-one-sixth">
|
|
<p class="heading-large">2.</p>
|
|
</div>
|
|
<div class="column-five-sixths">
|
|
<p>
|
|
The template pulls in the data you provide
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="grid-row bottom-gutter {% if help != '3' %}greyed-out-step{% endif %}">
|
|
<div class="column-one-sixth">
|
|
<p class="heading-large">3.</p>
|
|
</div>
|
|
<div class="column-five-sixths">
|
|
<p>
|
|
Notify delivers the message
|
|
</p>
|
|
{% if help == '3' %}
|
|
<a href='{{ url_for(".go_to_dashboard_after_tour", service_id=current_service.id, example_template_id=template.id) }}'>
|
|
Now go to your dashboard
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{% endcall %}
|
|
{% else %}
|
|
<nav class="navigation">
|
|
<ul>
|
|
<li><a href="{{ url_for('.service_dashboard', service_id=current_service.id) }}">Dashboard</a></li>
|
|
{% if current_user.has_permissions('view_activity') %}
|
|
<li><a href="{{ url_for('.choose_template', service_id=current_service.id) }}">Templates</a></li>
|
|
{% endif %}
|
|
<li><a href="{{ url_for('.manage_users', service_id=current_service.id) }}">Team members</a></li>
|
|
{% if current_user.has_permissions('manage_service') %}
|
|
<li><a href="{{ url_for('.usage', service_id=current_service.id) }}">Usage</a></li>
|
|
{% endif %}
|
|
{% if current_user.has_permissions('manage_api_keys', 'manage_service') %}
|
|
<li><a href="{{ url_for('.service_settings', service_id=current_service.id) }}">Settings</a></li>
|
|
{% endif %}
|
|
{% if current_user.has_permissions('manage_api_keys') %}
|
|
<li><a href="{{ url_for('.api_integration', service_id=current_service.id) }}">API integration</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
{% endif %}
|