-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94b6ca4
commit 1d3613b
Showing
2 changed files
with
43 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,41 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block content %} | ||
<div class="table-responsive"> | ||
<table class="custom-table"> | ||
<thead> | ||
<tr> | ||
<th>Roll Number</th> | ||
<th>Name</th> | ||
<th>Room Number</th> | ||
<th>Mobile Number</th> | ||
<th>Status</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for pass in hostel_passes %} | ||
<tr> | ||
<td>{{ pass.user.student.registration_number }}</td> | ||
<td>{{ pass.user.student.name }}</td> | ||
<td>{{ pass.user.student.room_number }}</td> | ||
<td>{{ pass.user.student.contact_number }}</td> | ||
|
||
{% if pass.user.student.is_checked_in %} | ||
<td><span class="badge green">Inside Hostel {{ pass.user.student.hostel }}</span></td> | ||
{% else %} | ||
{% if pass %} | ||
{% if pass.check_in and not pass.check_out %} | ||
<td><span class="badge yellow">In {{ pass.campus_resource }}</span></td> | ||
<div class="table-container"> | ||
<div class="table-responsive"> | ||
<table class="custom-table"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Room No</th> | ||
<th>Status</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for pass in hostel_passes %} | ||
<tr> | ||
<td>{{ pass.user.student.name }}</td> | ||
<td>{{ pass.user.student.room_number }}</td> | ||
{% if pass.user.student.is_checked_in %} | ||
<td><span class="badge green">Checked In</span></td> | ||
{% else %} | ||
{% if pass %} | ||
{% if pass.check_in and not pass.check_out %} | ||
<td><span class="badge yellow">{{ pass.campus_resource }}</span></td> | ||
{% else %} | ||
<td><span class="badge red">Outside</span></td> | ||
{% endif %} | ||
{% else %} | ||
<td><span class="badge red">Outside Hostel</span></td> | ||
<td><span class="badge red">Outside</span></td> | ||
{% endif %} | ||
{% else %} | ||
<td><span class="badge red">Outside Hostel</span></td> | ||
{% endif %} | ||
{% endif %} | ||
<td><button>Details</button></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<td><a href="tel:{{ pass.user.student.contact_number }}"><button>Call</button></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
|
||
</div> | ||
</div> | ||
|
||
{% endblock %} |