You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
3.3 KiB
HTML
91 lines
3.3 KiB
HTML
{% extends "base.html" %}
|
|
{% import "bootstrap/form.html" as wtf %}
|
|
|
|
|
|
{% block head %}
|
|
{{ super() }}
|
|
{% if filename is defined %}
|
|
<meta http-equiv="refresh" content="0;URL='{{ url_for('download_file', filename=filename) }}'" />
|
|
{% endif %}
|
|
<link rel="stylesheet"
|
|
href="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.39.0/css/tempusdominus-bootstrap-4.min.css"
|
|
integrity="sha512-3JRrEUwaCkFUBLK1N8HehwQgu8e23jTH4np5NHOmQOobuC4ROQxFwFgBLTnhcnQRMs84muMh0PnnwXlPq5MGjg=="
|
|
crossorigin="anonymous" />
|
|
{% endblock %}
|
|
|
|
{% block page_header %}
|
|
<h1>Sendungsmitschnitt herunterladen</h1>
|
|
{% endblock %}
|
|
|
|
{% block app_content %}
|
|
<div class="row">
|
|
<div class="col col-xs-12 col-sm-6 col-md-4">
|
|
<div class='well'>
|
|
|
|
<form class="form" method="post" role="form" novalidate>
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
{{ wtf.form_errors(form, hiddens="only") }}
|
|
|
|
<div class="form-group required {% if form.start_time.errors %}has-error{% endif -%}">
|
|
{{ form.start_time.label(class_="control-label") }}
|
|
<div class='input-group' id='start_time_group' data-target-input="nearest">
|
|
<input name='start_time' id='start_time_' class="form-control datetimepicker-input"
|
|
type="text" data-target="#start_time_group"
|
|
placeholder="{{ form.start_time.format }}"
|
|
{% if form.start_time.data %}
|
|
value="{{ form.start_time.data.strftime(form.start_time.format) }}"
|
|
{% endif %}
|
|
/>
|
|
<div class="input-group-append" data-target="#start_time_group" data-toggle="datetimepicker">
|
|
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
</div>
|
|
</div>
|
|
{% for error in form.start_time.errors %}
|
|
<p class="help-block">{{ error }}</p>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="form-group required {% if form.length.errors %}has-error{% endif -%}">
|
|
{{ form.length.label(class_="control-label") }}
|
|
{{ form.length(class_="form-control") }}
|
|
{% for error in form.length.errors %}
|
|
<p class="help-block">{{ error }}</p>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="form-group required">
|
|
{{ form.submit(class_="btn btn-primary") }}
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{{ super() }}
|
|
|
|
<script type="text/javascript"
|
|
src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.0/moment.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.39.0/js/tempusdominus-bootstrap-4.min.js"
|
|
integrity="sha512-k6/Bkb8Fxf/c1Tkyl39yJwcOZ1P4cRrJu77p83zJjN2Z55prbFHxPs9vN7q3l3+tSMGPDdoH51AEU8Vgo1cgAA=="
|
|
crossorigin="anonymous"></script>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('#start_time_group').datetimepicker({
|
|
locale: 'de',
|
|
format: 'DD.MM.YYYY HH:mm',
|
|
sideBySide: true
|
|
});
|
|
$(".alert-success").delay(4000).fadeOut(500, function() {
|
|
$(this).alert('close');
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|