15 lines
471 B
Cheetah
15 lines
471 B
Cheetah
{% block.styles = { "/static/css/filepicker.css" } %}
|
|
{% function block.pagebody() %}
|
|
<p>Please select a database file to load.</p>
|
|
<form action="/open" method=POST>
|
|
<input id="filename-input" name="filename" value="{%& filename %}">
|
|
<input type="submit">
|
|
</form>
|
|
<div
|
|
class="filepicker card"
|
|
hx-get="/dirlist?dirpath=/"
|
|
hx-trigger="load"
|
|
_="on change(target)[target.type=='radio'] set #filename-input.value to target.value">
|
|
</div>
|
|
{% end %}
|
|
{% render('layout') %} |