{% extends 'base.html' %}

{% block title %} - Error!{% endblock %}


{% block main %}
<div class="container">
  <div class="alert alert-danger" role="alert">
    <h4 class="alert-heading">{% if title %}{{ title }}{% else %}Error{% endif %}!</h4>
    <p>An error has occured: {{error}}.</p>
    <hr>
    <div class="text-end">
      <a class="btn btn-danger me-1" href="{{ url_for('admin.admin') }}" role="button"><i class="ri-settings-4-line"></i> Administration</a>
      <a class="btn btn-primary" href="{{ url_for('index.index') }}" role="button"><i class="ri-home-line"></i> Home</a>
    </div>
  </div>
</div>
{% endblock %}