Show clocked in users at the top of the page
This commit is contained in:
@@ -8,6 +8,22 @@
|
||||
|
||||
<h1>Simple Time Clock</h1>
|
||||
|
||||
<h2>Currently Clocked In</h2>
|
||||
|
||||
{% if clocked_in_users %}
|
||||
<ul>
|
||||
{% for user in clocked_in_users %}
|
||||
<li>{{ user.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>No users are currently clocked in.</p>
|
||||
{% endif %}
|
||||
|
||||
<br/>
|
||||
<hr/>
|
||||
<br/>
|
||||
|
||||
<form method="POST">
|
||||
|
||||
<table border="1" cellpadding="5">
|
||||
@@ -19,7 +35,7 @@
|
||||
|
||||
{% for user in users %}
|
||||
<option value="{{ user.id }}">
|
||||
{{ user.name }}
|
||||
{{ user.name }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user