-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattendance_by_student.html
134 lines (123 loc) · 5.53 KB
/
attendance_by_student.html
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{% block title %}{{title}}{% endblock %}
<head>
<title>VigLMS | View today's attendance {{ date_object }}</title>
<link rel="apple-touch-icon" sizes="180x180" href="/static/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/images/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
</head>
</div>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<link rel="stylesheet" href="{{ url_for('static', filename='css/attendance_page.css') }}">
<head>
<title>VigLMS | View Attendance On {{ date_object }}</title>
<link rel="apple-touch-icon" sizes="180x180" href="/static/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/images/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
</head>
<body>
<aside class="sidebar position-fixed top-0 left-0 overflow-auto h-100 float-left" id="show-side-navigation1">
<i class="uil-bars close-aside d-md-none d-lg-none" data-close="show-side-navigation1"></i>
<div class="sidebar-header d-flex justify-content-center align-items-center px-3 py-4">
<img
class="rounded-pill img-fluid"
width="65"
src="{{ url_for('static', filename='images/home.jpg') }}"
alt="">
<div class="ms-2">
<h5 class="fs-6 mb-0">
<a class="text-decoration-none" href="#">Teacher: {{username}}</a>
</h5>
<p class="mt-1 mb-0">Class roster: {{class_name}}</p>
</div>
</div>
<ul class="categories list-unstyled">
<li class="has-dropdown">
<i class="uil-calendar-alt"></i><a href="{{url_for('grades.grade_ASC')}}">View grades (low-high)</a>
</li>
<li class="has-dropdown">
<i class="uil-calendar-alt"></i><a href="{{url_for('grades.grade_DESC')}}">View grades (high-low)</a>
</li>
<li class="has-dropdown">
<i class="uil-calendar-alt"></i><a href="{{url_for('assignments.assignment')}}">Assignments</a>
</li>
<li class="has-dropdown">
<i class="uil-calendar-alt"></i><a href="{{url_for('attendance.take_attendance_page')}}">Attendance</a>
</li>
<li class="">
<i class="uil-calendar-alt"></i><a href="{{url_for('messaging_and_announcements.announcements_page')}}">Announcements</a>
</li>
<li class="has-dropdown">
<i class="uil-chart-pie-alt"></i><a href="{{url_for('files.upload_file_page')}}">Files</a>
</li>
<li class="has-dropdown">
<i class="uil-chart-pie-alt"></i><a href="{{url_for('delete_teacher_account_page')}}">Delete account</a>
</li>
</aside>
<section id="wrapper">
<nav class="navbar navbar-expand-md">
<div class="container-fluid mx-2">
<div class="navbar-header">
<button class="navbar-toggler" type="button" aria-controls="toggle-navbar" aria-expanded="false" aria-label="Toggle navigation">
<i class="uil-bars text-white"></i>
</button>
<a class="navbar-brand" href="/">Vig<span class="main-color">LMS</span></a>
</div>
<div class="collapse navbar-collapse" id="toggle-navbar">
<ul class="navbar-nav ms-auto">
<li class="nav-item dropdown">
<a class="" id = "logout" href="/logout" id="" role="button" aria-expanded="false">
Logout
</a>
</div>
</nav>
<div class="p-4">
<div class="welcome">
<div class="content rounded-3 p-3">
<h1 class="fs-3">VigLMS</h1>
<p class="mb-0">View attendance for {{ class_name }} today {{ date_object }}</p>
</div>
</div>
<script type="text/javascript" src="{{ url_for('static', filename='js/class_roster.js') }}"></script>
<div class="col-md-8">
<table id="example" class="table table-striped table-bordered" style="width:100%">
<thead>
<tr>
<th>Attendance Record ID</th>
<th>Student First Name</th>
<th>Student Last Name</th>
<th>Date</th>
<th>Attendance Status</th>
<th>Delete Attendance Record</th>
<th>Update Attendance Record</th>
</tr>
</thead>
<tbody>
{% for row in search_attendance_query_student %}
<tr>
<td>{{row[0]}}</td>
<td>{{row[1]}}</td>
<td>{{row[2]}}</td>
<td>{{row[4]}}</td>
<td>{{row[5]}}</td>
<td><a href="/delete_attendance_record/{{row[0]}}" class="btn btn-danger btn-delete btn-sm">Delete</a></td>
<td><form action="/update_attendance_record/{{row[0]}}" method="POST">
<div class="form-group">
<select name="attendance" id="attendance">
<option value="Present">Present</option>
<option value="Tardy">Tardy</option>
<option value="Absent">Absent</option>
</select> <button type="submit" class="btn btn-warning">Update</button>
</form>
</td>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>