Completed first-round updates for the error template views.

This commit is contained in:
Matt Scott
2023-02-20 12:28:56 -05:00
parent b3c80df674
commit 65b7b9a5c3
6 changed files with 272 additions and 320 deletions

View File

@ -1,52 +1,42 @@
{% extends "base.html" %}
{% block title %}
<title>
400 Error - {{ SITE_NAME }}
</title>
{% endblock %}
{% block title %}<title>HTTP 400 Error - {{ SITE_NAME }}</title>{% endblock %}
{% block dashboard_stat %}
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">
400
<small>Error</small>
</h1>
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">HTTP 400 Error</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ url_for('dashboard.dashboard') }}">Dashboard</a></li>
<li class="breadcrumb-item active">HTTP 400 Error</li>
</ol>
</div>
</div>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ url_for('dashboard.dashboard') }}">Dashboard</a></li>
<li class="breadcrumb-item active">400 Error</li>
</ol>
</div>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<section class="content">
<div class="error-page">
<h2 class="headline text-yellow">
400
</h2>
<div class="error-content">
<h3>
<i class="fa-solid fa-exclamation-triangle text-yellow"></i>
Oops! Bad request
</h3>
<p>
{% if msg %}
{{ msg }}
{% else %}
The server refused to process your request and return a 400 error.
{% endif %}
<br/>You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div>
</section>
<section class="content">
<div class="error-page">
<h2 class="headline text-yellow">HTTP 400 Error</h2>
<div class="error-content">
<h3>
<i class="fa-solid fa-exclamation-triangle text-yellow"></i>
Oops! Bad Request
</h3>
<p>
{% if msg %}
{{ msg }}
{% else %}
The server refused to process your request and return a 400 error.
{% endif %}
<br/>You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div>
</section>
{% endblock %}

View File

@ -1,48 +1,41 @@
{% extends "base.html" %}
{% block title %}
<title>
403 Error - {{ SITE_NAME }}
</title>
{% endblock %}
{% block title %}<title>HTTP 403 Error - {{ SITE_NAME }}</title>{% endblock %}
{% block dashboard_stat %}
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">
403
<small>Error</small>
</h1>
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">HTTP 403 Error</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ url_for('dashboard.dashboard') }}">Dashboard</a></li>
<li class="breadcrumb-item active">HTTP 403 Error</li>
</ol>
</div>
</div>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ url_for('dashboard.dashboard') }}">Dashboard</a></li>
<li class="breadcrumb-item active">403 Error</li>
</ol>
</div>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<section class="content">
<div class="error-page">
<h2 class="headline text-yellow">
403
</h2>
<div class="error-content">
<h3>
<i class="fa-solid fa-exclamation-triangle text-yellow"></i>
Oops! Access denied
</h3>
<p>
You don't have permission to access this page
You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div>
</section>
<section class="content">
<div class="error-page">
<h2 class="headline text-yellow">
HTTP 403 Error
</h2>
<div class="error-content">
<h3>
<i class="fa-solid fa-exclamation-triangle text-yellow"></i>
Oops! Access Denied
</h3>
<p>
You don't have permission to access this page
You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div>
</section>
{% endblock %}

View File

@ -1,48 +1,38 @@
{% extends "base.html" %}
{% block title %}
<title>
404 Error - {{ SITE_NAME }}
</title>
{% endblock %}
{% block title %}<title>HTTP 404 Error - {{ SITE_NAME }}</title>{% endblock %}
{% block dashboard_stat %}
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">
404
<small>Error</small>
</h1>
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">HTTP 404 Error</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ url_for('dashboard.dashboard') }}">Dashboard</a></li>
<li class="breadcrumb-item active">HTTP 404 Error</li>
</ol>
</div>
</div>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ url_for('dashboard.dashboard') }}">Dashboard</a></li>
<li class="breadcrumb-item active">404 Error</li>
</ol>
</div>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<section class="content">
<div class="error-page">
<h2 class="headline text-yellow">
404
</h2>
<div class="error-content">
<h3>
<i class="fa-solid fa-exclamation-triangle text-yellow"></i>
Oops! You're lost
</h3>
<p>
The page you requested could not be found.
You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div>
</section>
<section class="content">
<div class="error-page">
<h2 class="headline text-yellow">HTTP 404 Error</h2>
<div class="error-content">
<h3>
<i class="fa-solid fa-exclamation-triangle text-yellow"></i>
Oops! Page not found.
</h3>
<p>
The page you requested could not be found.
You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div>
</section>
{% endblock %}

View File

@ -1,48 +1,38 @@
{% extends "base.html" %}
{% block title %}
<title>
500 Error - {{ SITE_NAME }}
</title>
{% endblock %}
{% block title %}<title>HTTP 500 Error - {{ SITE_NAME }}</title>{% endblock %}
{% block dashboard_stat %}
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">
500
<small>Error</small>
</h1>
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">HTTP 500 Error</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ url_for('dashboard.dashboard') }}">Dashboard</a></li>
<li class="breadcrumb-item active">HTTP 500 Error</li>
</ol>
</div>
</div>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ url_for('dashboard.dashboard') }}">Dashboard</a></li>
<li class="breadcrumb-item active">500 Error</li>
</ol>
</div>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<section class="content">
<div class="error-page">
<h2 class="headline text-yellow">
500
</h2>
<div class="error-content">
<h3>
<i class="fa-solid fa-exclamation-triangle text-yellow"></i>
Oops! Something went wrong
</h3>
<p>
Try again later.
You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div>
</section>
<section class="content">
<div class="error-page">
<h2 class="headline text-yellow">HTTP 500 Error</h2>
<div class="error-content">
<h3>
<i class="fa-solid fa-exclamation-triangle text-yellow"></i>
Oops! Something went wrong.
</h3>
<p>
Try again later.
You may <a href="{{ url_for('dashboard.dashboard') }}">return to the dashboard</a>.
</p>
</div>
</div>
</section>
{% endblock %}

View File

@ -1,61 +1,51 @@
{% extends "base.html" %}
{% block title %}
<title>
SAML Authentication Error - {{ SITE_NAME }}
</title>
{% endblock %}
{% block title %}<title>SAML Authentication Error - {{ SITE_NAME }}</title>{% endblock %}
{% block dashboard_stat %}
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">
SAML
<small>Error</small>
</h1>
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">SAML Authentication Error</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ url_for('dashboard.dashboard') }}">Dashboard</a></li>
<li class="breadcrumb-item active">SAML Authentication Error</li>
</ol>
</div>
</div>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ url_for('dashboard.dashboard') }}">Dashboard</a></li>
<li class="breadcrumb-item active">SAML Authentication Error</li>
</ol>
</div>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<section class="content">
<div class="error-page">
<div>
<h1 class="headline text-yellow" style="font-size:46px;">
SAML Authentication Error
</h1>
</div>
<br/>
<br/>
<div class="error-content">
<h3>
<i class="fa-solid fa-exclamation-triangle text-yellow"></i>
Oops! Something went wrong
</h3>
<br>
<p>
Login failed.
<br>
Error(s) when processing SAML Response:
<br>
<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>
</section>
<section class="content">
<div class="error-page">
<div>
<h1 class="headline text-yellow" style="font-size:46px;">SAML Authentication Error</h1>
</div>
<br/>
<br/>
<div class="error-content">
<h3>
<i class="fa-solid fa-exclamation-triangle text-yellow"></i>
Oops! Something went wrong with your authentication.
</h3>
<br>
<p>
Login failed.
<br>
Error(s) when processing SAML Response:
<br>
<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>
</section>
{% endblock %}