Exams / templates /index.html
JaivinBarot's picture
Upload 35 files
5d26c45 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Generate 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>
<form action="{% url 'generate_schedule' %}" method="post" enctype="multipart/form-data">
{% csrf_token %}
<label for="room_data">Room Data:</label>
<input type="file" name="room_data" id="room_data" accept=".xlsx"><br>
<label for="exam_schedule">Exam Schedule:</label>
<input type="file" name="exam_schedule" id="exam_schedule" accept=".xlsx"><br>
<label for="student_data">Student Data:</label>
<input type="file" name="student_data" id="student_data" accept=".xlsx"><br>
<input type="submit" value="Generate Schedule">
</form>
</body>
</html>