File size: 2,291 Bytes
b756f0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Upload Schedule</title>
    <style>

        form {

            width: 400px;

            margin: 0 auto;

            padding: 20px;

            background-color: #f2f2f2;

            border: 1px solid #ccc;

            border-radius: 5px;

            box-shadow: 0 0 10px rgba(0,0,0,0.2);

            margin-top: 10%;

        }

        

        label {

            display: block;

            margin-bottom: 10px;

        }

        

        input[type="file"] {

            display: block;

            margin-bottom: 10px;

            padding: 10px;

            border: 1px solid #ccc;

        }

        

        input[type="submit"] {

            width: 100%;

            background-color: #4CAF50;

            color: white;

            padding: 14px 20px;

            margin: 8px 0;

            border: none;

            border-radius: 4px;

            cursor: pointer;

        }

        nav {

            text-align: center;

            margin-bottom: 20px;

        }

        nav a {

            margin: 0 15px;

            text-decoration: none;

            color: #333;

        }

        nav a:hover {

            text-decoration: underline;

        }

        body {

            font-family: Arial, sans-serif;

            background-color: #f2f2f2;

            margin: 0;

            padding: 20px;

        }

    </style>
</head>
<body>
    <nav>
        <a href="{% url 'index' %}">Home</a> |
        <a href="{% url 'upload_schedule' %}">Upload Seating Plan</a> |
        <a href="{% url 'view_schedule' %}">View Schedule</a> |
        <a href="{% url 'logout_view' %}">Logout</a>
    </nav>
    {% if messages %}
        {% for message in messages %}
            <p>{{ message }}</p>
        {% endfor %}    
    {% endif %}
<form action="{% url 'upload_schedule' %}" method="post" enctype="multipart/form-data">
    {% csrf_token %}
    <label for="schedule_file">Schedule File:</label>
    <input type="file" name="schedule_file" id="schedule_file" accept=".xlsx"><br>
    <input type="submit" value="Upload Seating Plan">
</form>

</body>
</html>