{% extends "base.html" %}
{% block title %}No Database{% endblock %}
{% block page_title %}<i class="bi bi-database-fill-x me-2"></i>No Database{% endblock %}
{% block content %}
<div class="row justify-content-center mt-5">
    <div class="col-md-6 text-center">
        <i class="bi bi-database-fill-x display-1 text-muted mb-4"></i>
        <h3 class="mb-3">No database configured</h3>
        <p class="text-muted mb-4">
            No MC database has been set up for this group.
            {% if session.get('role') == 'admin' %}
            You can configure the connection as group admin.
            {% else %}
            Please contact your group admin.
            {% endif %}
        </p>
        {% if session.get('role') == 'admin' %}
        <a href="{{ url_for('group_admin.database') }}" class="btn btn-success btn-lg">
            <i class="bi bi-database-fill-gear me-2"></i>Configure Database
        </a>
        {% endif %}
    </div>
</div>
{% endblock %}
