-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
3 changed files
with
62 additions
and
43 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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{% extends 'base.html' %} | ||
{% block content %} | ||
<div class="card small"> | ||
<div class="card-content"> | ||
{% if students|length == 0 %} | ||
<span class="card-title" >No Students Yet, <a href="/students">Add some students</a>!</span> | ||
{% else %} | ||
<span class="card-title" >Students Login</span> | ||
<form action="/student_login" method="post"> | ||
<div class="row"> | ||
<div class="input-field col s12"> | ||
<select id="options"> | ||
<option value="" disabled selected>Select your name</option> | ||
{% for student in students %} | ||
<option value="{{student.id}}">{{ student.last_name}}, {{ student.first_name }}</option> | ||
{% endfor %} | ||
</select> | ||
<label for="options">Students</label> | ||
</div> | ||
<div class="row"></div> | ||
<div class="row"> | ||
<div class="input-field col s6 center"> | ||
<label for="pin">Pin</label> | ||
<input class="validate" id="pin" name="pin" type="password"> | ||
<span class="error">{{ pin_err }}</span> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endblock %} |