-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_take_attendance.html
84 lines (53 loc) · 1.57 KB
/
admin_take_attendance.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
{% extends 'school/adminbase.html' %}
{% load widget_tweaks %}
{% block content %}
<head>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<style media="screen">
a:link {
text-decoration: none;
}
h6 {
text-align: center;
}
.row {
margin: 100px;
}
.btnSubmit {
text-align: center;
}
</style>
</head>
<form class="" method="post">
<div class="container">
<div class="row">
<div class="panel panel-primary">
<div class="panel-heading">
<h6 class="panel-title">Attendance</h6>
</div>
<table class="table table-hover table-striped table-bordered" id="dev-table">
<thead>
<tr>
<th>Student</th>
<th>Present/Absent</th>
</tr>
</thead>
{% csrf_token %}
{%for student in students%}
<tr>
<td>{{student.get_name}}</td>
<td>{{aform.present_status}}</td>
</tr>
{%endfor%}
</table>
{% render_field aform.date class="form-control" placeholder="Enter Date mm/dd/yyyy" %}
<input type="submit" style="margin-left: 50px;
margin-top: 20px;
margin-bottom: 20px; " name="submit" class="btn btn-success" value="Submit Attendance">
</div>
</div>
</div>
</form>
{% endblock content %}