Compare commits

..

4 commits

Author SHA1 Message Date
f894373861 leptos: begone 2024-11-14 07:42:11 -08:00
ffeff8a51b askama: link list view 2024-11-14 07:42:11 -08:00
67be18f228 askama: link view 2024-11-14 07:42:11 -08:00
91655b22ed askama: switch to main
I need 0.13's fragment feature
2024-11-14 07:42:11 -08:00

View file

@ -1,25 +1,23 @@
{% extends "base.html" %}
{% block content %}
<HtmxPage>
<div class="form-wrapper">
<div class="column-container">
<ul>
{% for key in record_keys %}
<li class="link-wrapper">
<a href="/link/{{ key }}">{{ key }}</a>
<button
style="margin-left: 1em;"
hx-target="closest .link-wrapper"
hx-swap="outerHTML"
hx-delete="/link/{{ key }}"
>
"X"
</button>
</li>
{% endfor %}
</ul>
</div>
<div class="form-wrapper">
<div class="column-container">
<ul>
{% for key in record_keys %}
<li class="link-wrapper">
<a href="/link/{{ key }}">{{ key }}</a>
<button
style="margin-left: 1em;"
hx-target="closest .link-wrapper"
hx-swap="outerHTML"
hx-delete="/link/{{ key }}"
>
"X"
</button>
</li>
{% endfor %}
</ul>
</div>
</HtmxPage>
</div>
{% endblock content %}