Skip to content

Commit 583d14d

Browse files
committed
new table added!!
1 parent e306589 commit 583d14d

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

static/home.css

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ body {
66
background-attachment: fixed;
77

88
}
9+
10+
911
.allButFooter {
1012
min-height: calc(100vh - 40px);
1113
}

templates/home.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<input type="password" class="form-control" name="pwd" id="lastname" placeholder="Password" style="font-family: 'Bungee', cursive;">
5959
</div>
6060

61-
<center><button style="font-family: 'Rubik Glitch', cursive;" type="submit" class="btn btn-primary">Submit</button></center>
61+
<center><button style="font-family: 'Rubik Glitch', cursive;" type="submit" class="btn btn-primary">Login</button></center>
6262

6363
</form>
6464
</div>

templates/output.html

+30-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,36 @@
77
{% block content %}
88

99
<!-- {{data}} -->
10-
{% if load%}
10+
{% if load %}
11+
12+
<div class="container">
13+
<table class="table table-borderless text-center" align="center" style="margin: 0px auto;">
14+
<thead>
15+
<tr>
16+
<th scope="col">COURSE</th>
17+
<th scope="col">PERCENTAGE</th>
18+
<th scope="col">REMARK</th>
19+
</tr>
20+
</thead>
21+
<tbody>
22+
{% for key in data %}
23+
<tr>
24+
<td>{{ key['name'] }}</td>
25+
<td>{{key['percentage_of_attendance']}}</td>
26+
{% if key.get("class_to_bunk",0) != 0 %}
27+
<td>Take leave : {{key.get("class_to_bunk",0)}}</td>
28+
{% else %}
29+
<td>Attend : {{key.get("class_to_attend",0)}}</td>
30+
{% endif %}
31+
</tr>
32+
{% endfor %}
33+
</tbody>
34+
</table>
35+
</div>
36+
<br>
37+
<br>
38+
39+
1140
{% for key in data %}
1241
<br>
1342
<center>

0 commit comments

Comments
 (0)