initial 1312 funktioniert ein bisschen
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<form hx-post="/entry/create" hx-target="#entry-rendertarget" method="post" enctype="multipart/form-data">
|
||||
<textarea name="content"></textarea>
|
||||
<input type="file" name="file">
|
||||
<button type="submit">Beitrag erstellen!</button>
|
||||
|
||||
<div>
|
||||
{% for r in responses %}
|
||||
{{ r }} <br>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,15 @@
|
||||
{% for p in posts %}
|
||||
|
||||
<div class="post">
|
||||
<div class="meta">
|
||||
{{ p[6] }} - {{ p[3] | timestamp }} <br>
|
||||
</div>
|
||||
<div class="content">
|
||||
{{ p[4] }}
|
||||
</div>
|
||||
{% if p[5] != 'none' %}
|
||||
<img src="/{{ p[5] }}">
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user