24 lines
759 B
HTML
24 lines
759 B
HTML
{% extends 'base.html' %}
|
|
{% block content %}
|
|
<h1 class="mb-4">Fragebogen hochladen</h1>
|
|
|
|
<!-- Download-Link zur Beispiel-Datei -->
|
|
<div class="mb-3">
|
|
<a href="{{ url_for('static', filename='questions_example.xlsx') }}" class="btn btn-outline-secondary">
|
|
Beispiel-Excel-Datei herunterladen
|
|
</a>
|
|
</div>
|
|
|
|
<form action="{{ url_for('upload') }}" method="post" enctype="multipart/form-data">
|
|
<div class="mb-3">
|
|
<label for="file" class="form-label">Excel-Datei auswählen</label>
|
|
<input class="form-control" type="file" id="file" name="file" accept=".xlsx,.xls">
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Hochladen</button>
|
|
</form>
|
|
|
|
{% if error %}
|
|
<div class="alert alert-danger mt-3">{{ error }}</div>
|
|
{% endif %}
|
|
|
|
{% endblock %} |