File size: 2,203 Bytes
1eabbf4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Block for title -->
    <title>{% block title %}Campus Recruitment Portal{% endblock %}</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <!-- Link to your static CSS file -->
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <!-- Block for additional head elements -->
    {% block head %}{% endblock %}
</head>
<body>
    <!-- Optional: Add a common navbar or header here if needed for error pages -->
    <!--

    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">

      <div class="container-fluid">

        <a class="navbar-brand" href="/">Recruitment Portal</a>

      </div>

    </nav>

    -->

    <div class="container mt-4">
        <!-- Display Flash Messages -->
        {% with messages = get_flashed_messages(with_categories=true) %}
            {% if messages %}
                {% for category, message in messages %}
                    <div class="alert alert-{{ category if category in ['danger', 'warning', 'info', 'success'] else 'secondary' }} alert-dismissible fade show" role="alert">
                        {{ message }}
                        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    </div>
                {% endfor %}
            {% endif %}
        {% endwith %}

        <!-- Block for main content -->
        {% block content %}{% endblock %}
    </div>

    <!-- Optional: Add a common footer here -->
    <!--

    <footer class="text-center mt-5 py-3 bg-light">

        <small>© {{ now.year }} Campus Recruitment Portal</small>

    </footer>

    -->

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
    <!-- Block for additional scripts -->
    {% block scripts %}{% endblock %}
</body>
</html>