Compare commits

..

5 commits

Author SHA1 Message Date
1cc4a67b04 fix: typo in Cargo.toml 2024-11-14 07:37:15 -08:00
2eabf66c73 leptos: begone 2024-11-14 07:35:42 -08:00
a91e66fd70 askama: link list view 2024-11-14 07:35:42 -08:00
ac1699ab39 askama: link view 2024-11-14 07:35:42 -08:00
e693115f10 askama: switch to main
I need 0.13's fragment feature
2024-11-14 07:35:42 -08:00

View file

@ -1,23 +1,25 @@
{% extends "base.html" %}
{% block content %}
<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>
<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>
</div>
</HtmxPage>
{% endblock content %}