2024-07-29 20:44:06 +00:00
|
|
|
{% block.styles = { "/static/css/filepicker.css" } %}
|
2024-07-10 22:36:24 +00:00
|
|
|
{% function block.pagebody() %}
|
|
|
|
<p>Please select a database file to load.</p>
|
2024-07-29 20:44:06 +00:00
|
|
|
<form action="/open" method=POST>
|
|
|
|
<input id="filename-input" name="filename" value="{%& filename %}">
|
|
|
|
<input type="submit">
|
|
|
|
</form>
|
|
|
|
<div
|
|
|
|
class="filepicker"
|
|
|
|
hx-get="/dirlist?dirpath=/"
|
|
|
|
hx-trigger="load"
|
|
|
|
_="on change(target)[target.type=='radio'] set #filename-input.value to target.value">
|
|
|
|
</div>
|
2024-07-10 22:36:24 +00:00
|
|
|
{% end %}
|
|
|
|
{% render('layout') %}
|