Exams / templates /upload_schedule.html
JaivinBarot's picture
Upload 34 files
b756f0e verified
<!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>