feat: implement simple file upload

This commit is contained in:
Jef Roosens 2025-01-16 22:19:22 +01:00
parent c10b9baa95
commit 52478379a0
Signed by: Jef Roosens
GPG key ID: 02D4C0997E74717B
11 changed files with 232 additions and 9 deletions

View file

@ -1,7 +1,13 @@
{% import "components/event.html" as comp_event %}
{% import "components/plant.html" as comp_plant %}
{% import "components/image.html" as comp_image %}
{{ comp_plant::info(plant=plant) }}
<h3>Events</h3>
{{ comp_event::list(events=events) }}
{{ comp_event::form(plant_id=plant.id) }}
<h3>Images</h3>
<div id="images">
<ul></ul>
</div>
{{ comp_image::form(plant_id=plant.id) }}