Revert "Revert "Error pages updated for Font Awesome v6 - fa-solid""

This reverts commit 35493fc218.
This commit is contained in:
Matt Scott 2023-02-18 11:02:47 -05:00
parent e2ad3e2001
commit 839c1ecf17
5 changed files with 82 additions and 67 deletions

View File

@ -19,21 +19,23 @@
<!-- Main content --> <!-- Main content -->
<section class="content"> <section class="content">
<div class="error-page"> <div class="error-page">
<h2 class="headline text-yellow">400</h2> <h2 class="headline text-yellow">
<div class="error-content"> 400
<h3> </h2>
<i class="fa fa-warning text-yellow"></i> Oops! Bad request <div class="error-content">
</h3> <h3>
<p> <i class="fa-solid fa-exclamation-triangle text-yellow"></i>
{% if msg %} Oops! Bad request
{{ msg }} </h3>
{% else %} <p>
The server refused to process your request and return a 400 error. {% if msg %}
{% endif %} {{ msg }}
<br/>You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>. {% else %}
</p> The server refused to process your request and return a 400 error.
</div> {% endif %}
<!-- /.error-content --> <br/>You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div> </div>
<!-- /.error-page --> <!-- /.error-page -->
</section> </section>

View File

@ -19,17 +19,19 @@
<!-- Main content --> <!-- Main content -->
<section class="content"> <section class="content">
<div class="error-page"> <div class="error-page">
<h2 class="headline text-yellow">403</h2> <h2 class="headline text-yellow">
<div class="error-content"> 403
<h3> </h2>
<i class="fa fa-warning text-yellow"></i> Oops! Access denied <div class="error-content">
</h3> <h3>
<p> <i class="fa-solid fa-exclamation-triangle text-yellow"></i>
You don't have permission to access this page Oops! Access denied
You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>. </h3>
</p> <p>
</div> You don't have permission to access this page
<!-- /.error-content --> You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div> </div>
<!-- /.error-page --> <!-- /.error-page -->
</section> </section>

View File

@ -19,17 +19,19 @@
<!-- Main content --> <!-- Main content -->
<section class="content"> <section class="content">
<div class="error-page"> <div class="error-page">
<h2 class="headline text-yellow">404</h2> <h2 class="headline text-yellow">
<div class="error-content"> 404
<h3> </h2>
<i class="fa fa-warning text-yellow"></i> Oops! You're lost <div class="error-content">
</h3> <h3>
<p> <i class="fa-solid fa-exclamation-triangle text-yellow"></i>
The page you requested could not be found. Oops! You're lost
You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>. </h3>
</p> <p>
</div> The page you requested could not be found.
<!-- /.error-content --> You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div> </div>
<!-- /.error-page --> <!-- /.error-page -->
</section> </section>

View File

@ -19,17 +19,19 @@
<!-- Main content --> <!-- Main content -->
<section class="content"> <section class="content">
<div class="error-page"> <div class="error-page">
<h2 class="headline text-yellow">500</h2> <h2 class="headline text-yellow">
<div class="error-content"> 500
<h3> </h2>
<i class="fa fa-warning text-yellow"></i> Oops! Something went wrong <div class="error-content">
</h3> <h3>
<p> <i class="fa-solid fa-exclamation-triangle text-yellow"></i>
Try again later. Oops! Something went wrong
You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>. </h3>
</p> <p>
</div> Try again later.
<!-- /.error-content --> You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div> </div>
<!-- /.error-page --> <!-- /.error-page -->
</section> </section>

View File

@ -19,25 +19,32 @@
<!-- Main content --> <!-- Main content -->
<section class="content"> <section class="content">
<div class="error-page"> <div class="error-page">
<div> <div>
<h1 class="headline text-yellow" style="font-size:46px;">SAML Authentication Error</h1></div><br/><br/> <h1 class="headline text-yellow" style="font-size:46px;">
<div class="error-content"> SAML Authentication Error
<h3> </h1>
<i class="fa fa-warning text-yellow"></i> Oops! Something went wrong </div>
</h3><br> <br/>
<p> <br/>
Login failed.<br> <div class="error-content">
Error(s) when processing SAML Response:<br> <h3>
<ul> <i class="fa-solid fa-exclamation-triangle text-yellow"></i>
{% for error in errors %} Oops! Something went wrong
<li>{{ error }}</li> </h3>
{% endfor %} <br>
</ul> <p>
Login failed.
You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>. <br>
</p> Error(s) when processing SAML Response:
</div> <br>
<!-- /.error-content --> <ul>
{% for error in errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div> </div>
<!-- /.error-page --> <!-- /.error-page -->
</section> </section>