33 lines
917 B
HTML
33 lines
917 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Invoices Folder</title>
|
|
</head>
|
|
<body>
|
|
<h1>Select a Store / date</h1>
|
|
|
|
<form method="post">
|
|
<input type="text" name="store" size="60" placeholder="A000" value="{{ store }}">
|
|
<input type="text" name="date" size="60" placeholder="2026/01/23" value="{{ date }}">
|
|
<button type="submit">Show Invoices</button>
|
|
</form>
|
|
|
|
{% if xml_files %}
|
|
<h2>Invoices</h2>
|
|
<ul>
|
|
{% for file in xml_files %}
|
|
<li>
|
|
<a href="{{ url_for('view_invoice', store=store, date=date, filename=file[0]) }}">
|
|
{{ file[0] }}
|
|
</a>
|
|
:
|
|
{{ file[1] }}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% elif folder %}
|
|
<p><em>No Invoices found or invalid folder.</em></p>
|
|
{% endif %}
|
|
</body>
|
|
</html>
|