25 lines
666 B
HTML
25 lines
666 B
HTML
{% extends "layout.html" %}
|
|
{% block content %}
|
|
<h2>Employees</h2>
|
|
<form method="get" action="/employees" class="inline">
|
|
<input name="q" value="{{ q }}" placeholder="Search employees">
|
|
<button type="submit">Search</button>
|
|
</form>
|
|
<table class="table">
|
|
<thead><tr><th>Name</th><th>Actions</th></tr></thead>
|
|
<tbody>
|
|
{% for e in employees %}
|
|
<tr>
|
|
<td>{{ e.name }}</td>
|
|
<td>
|
|
<a href="/timesheet/{{ e.id }}">Timesheet</a>
|
|
<a href="/overview/{{ e.id }}">Overview</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% if not employees %}
|
|
<p>No employees yet. Import an Excel file first.</p>
|
|
{% endif %}
|
|
{% endblock %} |