257 lines
8.1 KiB
HTML
257 lines
8.1 KiB
HTML
<!-- Bottom Navigation -->
|
|
<div class="bottom-nav">
|
|
<div class="nav-container">
|
|
<a href="#" class="nav-item active" data-section="dashboard">
|
|
<i class="fas fa-home"></i>
|
|
<span>Dashboard</span>
|
|
</a>
|
|
{% if user.groups.all.0.name == 'Teacher' %}
|
|
<a href="#subjectsSection" class="nav-item" data-section="subjects" onclick="showSection('subjectsSection'); return false;">
|
|
<i class="fas fa-graduation-cap"></i>
|
|
<span>Subjects</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="schedule">
|
|
<i class="fas fa-clock"></i>
|
|
<span>Schedule</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="attendance">
|
|
<i class="fas fa-user-check"></i>
|
|
<span>Attendance</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="leave">
|
|
<i class="fas fa-calendar-times"></i>
|
|
<span>Leaves</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="notice">
|
|
<i class="fas fa-bullhorn"></i>
|
|
<span>Notices</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="feedback">
|
|
<i class="fas fa-star"></i>
|
|
<span>Feedback</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="profile">
|
|
<i class="fas fa-id-card"></i>
|
|
<span>Profile</span>
|
|
</a>
|
|
{% elif user.groups.all.0.name == 'Admission Officer' %}
|
|
<a href="#" class="nav-item" data-section="students" onclick="showSection('studentsSection'); return false;">
|
|
<i class="fas fa-users"></i>
|
|
<span>Students</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="courses" onclick="showSection('coursesSection'); return false;">
|
|
<i class="fas fa-graduation-cap"></i>
|
|
<span>Courses</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="batches" onclick="showSection('batchesSection'); return false;">
|
|
<i class="fas fa-layer-group"></i>
|
|
<span>Batches</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="courseTracking" onclick="showSection('courseTrackingSection'); return false;">
|
|
<i class="fas fa-chart-line"></i>
|
|
<span>Tracking</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="leave">
|
|
<i class="fas fa-calendar-times"></i>
|
|
<span>Leaves</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="notice" onclick="showSection('noticeSection'); return false;">
|
|
<i class="fas fa-bullhorn"></i>
|
|
<span>Notices</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="profile">
|
|
<i class="fas fa-id-card"></i>
|
|
<span>Profile</span>
|
|
</a>
|
|
{% elif user.groups.all.0.name == 'HOD' %}
|
|
<a href="#" class="nav-item" data-section="students" onclick="showSection('studentsSection'); return false;">
|
|
<i class="fas fa-users"></i>
|
|
<span>Students</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="staff" onclick="showSection('staffSection'); return false;">
|
|
<i class="fas fa-chalkboard-teacher"></i>
|
|
<span>Staff</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="subjects" onclick="showSection('subjectsSection'); return false;">
|
|
<i class="fas fa-book"></i>
|
|
<span>Subjects</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="routine" onclick="showSection('routineSection'); return false;">
|
|
<i class="fas fa-calendar-week"></i>
|
|
<span>Routine</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="progress" onclick="showSection('progressSection'); return false;">
|
|
<i class="fas fa-chart-line"></i>
|
|
<span>Progress</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="meetings" onclick="showSection('meetingsSection'); return false;">
|
|
<i class="fas fa-calendar-check"></i>
|
|
<span>Meetings</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="notice" onclick="showSection('noticeSection'); return false;">
|
|
<i class="fas fa-bullhorn"></i>
|
|
<span>Notices</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="profile" onclick="showSection('profileSection'); return false;">
|
|
<i class="fas fa-id-card"></i>
|
|
<span>Profile</span>
|
|
</a>
|
|
{% else %}
|
|
<a href="#" class="nav-item" data-section="subjects">
|
|
<i class="fas fa-graduation-cap"></i>
|
|
<span>Subjects</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="routine">
|
|
<i class="fas fa-calendar-week"></i>
|
|
<span>Routine</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="attendance">
|
|
<i class="fas fa-user-check"></i>
|
|
<span>Attendance</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="leave">
|
|
<i class="fas fa-calendar-times"></i>
|
|
<span>Leaves</span>
|
|
</a>
|
|
{% if user.groups.all.0.name == 'Parent' %}
|
|
<a href="#" class="nav-item" data-section="meetings" onclick="showSection('meetingsSection'); return false;">
|
|
<i class="fas fa-calendar-check"></i>
|
|
<span>Meetings</span>
|
|
</a>
|
|
{% endif %}
|
|
<a href="#" class="nav-item" data-section="feedback">
|
|
<i class="fas fa-star"></i>
|
|
<span>Feedback</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="notice">
|
|
<i class="fas fa-bullhorn"></i>
|
|
<span>Notices</span>
|
|
</a>
|
|
<a href="#" class="nav-item" data-section="profile">
|
|
<i class="fas fa-id-card"></i>
|
|
<span>Profile</span>
|
|
</a>
|
|
{% endif %}
|
|
<a href="#" class="nav-item" onclick="document.getElementById('logoutForm').submit(); return false;">
|
|
<i class="fas fa-sign-out-alt"></i>
|
|
<span>Logout</span>
|
|
</a>
|
|
<form id="logoutForm" method="post" action="{% url 'logout' %}" style="display: none;">
|
|
{% csrf_token %}
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Navigation Styles -->
|
|
<style>
|
|
.bottom-nav {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: white;
|
|
box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
|
|
z-index: 1000;
|
|
overflow-x: auto; /* Allow horizontal scrolling if needed */
|
|
padding-bottom: 28px; /* Increased space for copyright */
|
|
}
|
|
|
|
.nav-container {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
padding: 10px 0 5px 0;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
flex-wrap: nowrap; /* Prevent wrapping to ensure all items are visible */
|
|
min-width: max-content; /* Ensure container is at least as wide as all items */
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
color: #666;
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
transition: color 0.3s ease;
|
|
margin: 0 8px; /* Add margin between items */
|
|
white-space: nowrap; /* Prevent text wrapping */
|
|
}
|
|
|
|
.nav-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
color: #666;
|
|
background: none;
|
|
border: none;
|
|
font-size: 0.9rem;
|
|
transition: color 0.3s ease;
|
|
cursor: pointer;
|
|
margin: 0 8px;
|
|
padding: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nav-item i, .nav-btn i {
|
|
font-size: 1.2rem;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.nav-item.active, .nav-btn.active {
|
|
color: #3F51B5;
|
|
}
|
|
|
|
.nav-item:hover, .nav-btn:hover {
|
|
color: #3F51B5;
|
|
}
|
|
|
|
.nav-copyright {
|
|
width: 100%;
|
|
text-align: center;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
padding: 5px 0;
|
|
font-size: 0.85rem;
|
|
color: #555;
|
|
background-color: #f0f0f0;
|
|
border-top: 1px solid #ddd;
|
|
line-height: 18px;
|
|
box-shadow: 0 -1px 2px rgba(0,0,0,0.05);
|
|
z-index: 1001; /* Higher than the bottom nav */
|
|
}
|
|
|
|
.nav-copyright a {
|
|
color: #3F51B5;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.nav-container {
|
|
padding: 8px 0;
|
|
justify-content: flex-start; /* Left align items when scrolling */
|
|
}
|
|
|
|
.nav-item, .nav-btn {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.nav-item i, .nav-btn i {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.nav-copyright {
|
|
font-size: 0.75rem;
|
|
padding: 4px 0;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<!-- Copyright Notice -->
|
|
<div class="nav-copyright">
|
|
© {% now 'Y' %} <a href="https://github.com/S4NKALP">SANKALP</a>. All rights reserved.
|
|
</div>
|