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