move everything (except config) in one file
This commit is contained in:
parent
634df5f5cc
commit
32dc3a9581
6 changed files with 42 additions and 39 deletions
19
templates/base.html
Normal file
19
templates/base.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{% extends "bootstrap/base.html" %}
|
||||
|
||||
{% block title %}Prolefeeder{% endblock %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
{% for message in messages %}
|
||||
<div class="alert alert-info" role="alert">{{ message }}</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
{% block app_content %}
|
||||
{% endblock %}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
31
templates/download.html
Normal file
31
templates/download.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
{% if filename is defined %}
|
||||
<meta http-equiv="refresh" content="0;URL='download_file/{{ filename }}'" />
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block app_content %}
|
||||
<h1>Download</h1>
|
||||
<form action="" method="post" novalidate>
|
||||
{{ form.hidden_tag() }}
|
||||
<p>
|
||||
{{ form.start_time.label }}<br>
|
||||
{{ form.start_time() }}<br>
|
||||
{% for error in form.start_time.errors %}
|
||||
<span style="color: red;">[{{ error }}]</span>
|
||||
{% endfor %}
|
||||
</p>
|
||||
<p>
|
||||
{{ form.length.label }}<br>
|
||||
{{ form.length() }}<br>
|
||||
{% for error in form.length.errors %}
|
||||
<span style="color: red;">[{{ error }}]</span>
|
||||
{% endfor %}
|
||||
</p>
|
||||
<p>{{ form.submit() }}</p>
|
||||
</form>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue