filter and display login notifications by type
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
{% from "components/alert.html" import Alert %}
|
{% from "components/alert.html" import Alert %}
|
||||||
|
|
||||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
{% if not category_filter %}
|
||||||
|
{% set category_filter=["success", "info", "warning", "error"] %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% with messages = get_flashed_messages(with_categories=true, category_filter=category_filter) %}
|
||||||
{% if messages %}
|
{% if messages %}
|
||||||
{% for category, message_config in messages %}
|
{% for category, message_config in messages %}
|
||||||
{{ Alert(message_config["title"], message=message_config.get("message"), level=category) }}
|
{{ Alert(message_config["title"], message=message_config.get("message"), level=category) }}
|
||||||
|
@@ -11,6 +11,12 @@
|
|||||||
<div class='col'>
|
<div class='col'>
|
||||||
|
|
||||||
<div class='login-banner'>
|
<div class='login-banner'>
|
||||||
|
|
||||||
|
{% with %}
|
||||||
|
{% set category_filter=["error"] %}
|
||||||
|
{% include "fragments/flash.html" %}
|
||||||
|
{% endwith %}
|
||||||
|
|
||||||
<h1 class="login-banner__heading">Access the JEDI Cloud</h1>
|
<h1 class="login-banner__heading">Access the JEDI Cloud</h1>
|
||||||
|
|
||||||
<img class="login-banner__logo" src="{{url_for('static', filename='img/ccpo-logo.svg')}}" alt="Cloud Computing Program Office Logo">
|
<img class="login-banner__logo" src="{{url_for('static', filename='img/ccpo-logo.svg')}}" alt="Cloud Computing Program Office Logo">
|
||||||
@@ -18,7 +24,10 @@
|
|||||||
<a class="usa-button usa-button-big login-banner__button" href='{{ redirect_url }}'><span>Sign in with CAC</span></a>
|
<a class="usa-button usa-button-big login-banner__button" href='{{ redirect_url }}'><span>Sign in with CAC</span></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% with %}
|
||||||
|
{% set category_filter=["success", "info", "warning"] %}
|
||||||
{% include "fragments/flash.html" %}
|
{% include "fragments/flash.html" %}
|
||||||
|
{% endwith %}
|
||||||
|
|
||||||
{{ Alert('Certificate Selection',
|
{{ Alert('Certificate Selection',
|
||||||
message='When you are prompted to select a certificate, please select <strong>E-mail Certificate</strong> from the provided choices.',
|
message='When you are prompted to select a certificate, please select <strong>E-mail Certificate</strong> from the provided choices.',
|
||||||
|
Reference in New Issue
Block a user