peachy/assets/.tmpl/opendb.tmpl

16 lines
509 B
Cheetah
Raw Normal View History

{% block.styles = { "/static/css/filepicker.css" } %}
2024-08-06 04:46:43 +00:00
{% print("hello template") %}
{% function block.pagebody() %}
<p>Please select a database file to load.</p>
2024-08-06 04:46:43 +00:00
<form action="/open.lua" method=POST>
<input id="filename-input" name="filename" value="{%& filename %}">
<input type="submit">
</form>
<div
2024-08-02 18:44:17 +00:00
class="filepicker card"
2024-08-06 04:46:43 +00:00
hx-get="/dirlist.lua?dirpath=/"
hx-trigger="load"
_="on change(target)[target.type=='radio'] set #filename-input.value to target.value">
</div>
{% end %}
{% render('layout') %}