80 lines
2.0 KiB
HTML
80 lines
2.0 KiB
HTML
<!-- templates/errors/403.html -->
|
|
{% extends "base.html" %} {% block title %}Access Forbidden - QR Code
|
|
Management{% endblock %} {% block content %}
|
|
<div class="error-page">
|
|
<div class="error-container">
|
|
<div class="error-code">403</div>
|
|
<div class="error-message">
|
|
<h1>Access Forbidden</h1>
|
|
<p>You don't have permission to access this resource.</p>
|
|
<p class="error-detail">This action requires administrator privileges.</p>
|
|
</div>
|
|
<div class="error-actions">
|
|
<a href="{{ url_for('dashboard') }}" class="btn btn-primary">
|
|
<i class="fas fa-home"></i>
|
|
Go to Dashboard
|
|
</a>
|
|
{% if session.role == 'staff' %}
|
|
<a href="{{ url_for('profile') }}" class="btn btn-secondary">
|
|
<i class="fas fa-user"></i>
|
|
View Profile
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.error-page {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 60vh;
|
|
padding: var(--spacing-8);
|
|
}
|
|
|
|
.error-container {
|
|
text-align: center;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.error-code {
|
|
font-size: 8rem;
|
|
font-weight: 900;
|
|
color: var(--warning-color);
|
|
line-height: 1;
|
|
margin-bottom: var(--spacing-4);
|
|
background: linear-gradient(135deg, var(--warning-color), #b45309);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.error-message h1 {
|
|
font-size: var(--font-size-3xl);
|
|
color: var(--gray-900);
|
|
margin-bottom: var(--spacing-4);
|
|
}
|
|
|
|
.error-message p {
|
|
font-size: var(--font-size-lg);
|
|
color: var(--gray-600);
|
|
margin-bottom: var(--spacing-4);
|
|
}
|
|
|
|
.error-detail {
|
|
font-size: var(--font-size-sm);
|
|
color: var(--warning-color);
|
|
font-weight: 600;
|
|
margin-bottom: var(--spacing-8) !important;
|
|
}
|
|
|
|
.error-actions {
|
|
display: flex;
|
|
gap: var(--spacing-4);
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
</style>
|
|
{% endblock %}
|