timekeeper/app/templates/dept_importer_upload.html
2026-01-15 15:46:35 -05:00

33 lines
1.4 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "layout.html" %}
{% block content %}
<div class="page-wide">
<div class="panel">
<div class="panel-title">Import Another Department</div>
<form method="post" action="/import/department/upload" enctype="multipart/form-data"
class="panel toolbar" style="gap:12px; flex-wrap:wrap; align-items:center;">
<label class="label">Time Period</label>
<select class="select" name="timesheet_id" required>
{% for p in period_options %}
<option value="{{ p.timesheet_id }}" {% if active_ts == p.timesheet_id %}selected{% endif %}>{{ p.display }}</option>
{% endfor %}
</select>
<label class="label">File</label>
<input class="input" type="file" name="file" accept=".csv,.xlsx,.xlsm,.txt" required>
<label class="checkbox" style="display:flex; gap:6px; align-items:center;">
<input type="checkbox" name="restrict_to_period" value="1" checked>
Only import rows within this time periods date range
</label>
<button class="btn primary" type="submit">Upload</button>
<a class="btn" href="/viewer?timesheet_id={{ active_ts or '' }}">Back to Viewer</a>
</form>
<div class="muted" style="margin-top:8px;">
Supported files: CSV, XLSX. Expected columns include Employee Name, Date, Clock In, Clock Out, Break Hours, PTO Hours, PTO Type.
Well normalize whatever headers you have.
</div>
</div>
</div>
{% endblock %}