You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.2 KiB
25 lines
1.2 KiB
{% extends "superx_budget:pyramid/templates/layout.jinja2" %} |
|
|
|
{% block content %} |
|
|
|
<div class="row"> |
|
<div class="col"> |
|
<h2 class="mb-4">Budget Template Files</h2> |
|
<ul> |
|
{% for name in budget_files %} |
|
<li><a href="/templates?f={{ name }}">{{ name }}</a></li> |
|
{% endfor %} |
|
</ul> |
|
<h4 class="mt-4">Add a New Template</h4> |
|
<p> If you upload a file with an existing name, the currently stored file gets replaced – that's how you do updates.</p> |
|
<p> The filename must be in the format "<span class="text-info">budget[...]-[year].xlsx</span>"; character capitalization does not matter.</p> |
|
<form enctype="multipart/form-data" method="post" action="/templates"> |
|
<div class="form-group"> |
|
<label for="fileupload">Upload a new file:</label> |
|
<input id="fileupload" name="budget" type="file" class="form-control-file" /> |
|
</div> |
|
<button type="submit" name="submit" value="submitted" class="btn btn-primary">Upload</button> |
|
</form> |
|
</div> |
|
</div> |
|
{% endblock content %}
|
|
|