messing stuff up

This commit is contained in:
2025-06-03 20:46:11 -05:00
parent e3ee3e6708
commit e8acd6bb20
25 changed files with 300 additions and 51 deletions

View File

@ -0,0 +1,32 @@
{% extends 'core_ui/base.html' %}
{% block content %}
<div class="container mt-4">
<h2 class="mb-3">Import Plants from CSV</h2>
<div class="alert alert-info" role="alert">
<strong>Expected CSV headers (in this exact order):</strong>
<code>{{ headers }}</code>
</div>
<form method="POST" enctype="multipart/form-data" class="needs-validation" novalidate>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="mb-3">
<label for="file" class="form-label">Select CSV file to upload</label>
<input type="file" class="form-control" id="file" name="file" accept=".csv" required>
</div>
<button type="submit" class="btn btn-primary">Upload &amp; Import</button>
</form>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="mt-4">
{% for category, message in messages %}
<div class="alert alert-{{ 'danger' if category == 'error' else category }}" role="alert">
{{ message }}
</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
</div>
{% endblock %}