feat: overhaul templating system
This commit is contained in:
parent
03b3f692e1
commit
4a4b8bba3d
22 changed files with 157 additions and 127 deletions
11
templates/views/plant.html
Normal file
11
templates/views/plant.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{% import "components/event.html" as comp_event %}
|
||||
{% import "components/plant.html" as comp_plant %}
|
||||
{% import "components/comment.html" as comp_comment %}
|
||||
|
||||
{{ comp_plant::info(plant=plant) }}
|
||||
<h3>Events</h3>
|
||||
{{ comp_event::list(events=events) }}
|
||||
{{ comp_event::form(plant_id=plant.id) }}
|
||||
<h3>Comments</h3>
|
||||
{{ comp_comment::list(comments=comments) }}
|
||||
{{ comp_comment::form(plant_id=plant.id) }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue