|
|
@ -1,5 +1,5 @@
|
|
|
|
{% extends "base.html" %}
|
|
|
|
{% extends "base.html" %}
|
|
|
|
{% import "bootstrap/wtf.html" as wtf %}
|
|
|
|
{% import "bootstrap/form.html" as wtf %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block head %}
|
|
|
|
{% block head %}
|
|
|
@ -7,7 +7,10 @@
|
|
|
|
{% if filename is defined %}
|
|
|
|
{% if filename is defined %}
|
|
|
|
<meta http-equiv="refresh" content="0;URL='{{ url_for('download_file', filename=filename) }}'" />
|
|
|
|
<meta http-equiv="refresh" content="0;URL='{{ url_for('download_file', filename=filename) }}'" />
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<link href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
|
|
|
|
<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 %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block page_header %}
|
|
|
|
{% block page_header %}
|
|
|
@ -27,16 +30,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group required {% if form.start_time.errors %}has-error{% endif -%}">
|
|
|
|
<div class="form-group required {% if form.start_time.errors %}has-error{% endif -%}">
|
|
|
|
{{ form.start_time.label(class_="control-label") }}
|
|
|
|
{{ form.start_time.label(class_="control-label") }}
|
|
|
|
<div class='input-group' id='start_time_group'>
|
|
|
|
<div class='input-group' id='start_time_group' data-target-input="nearest">
|
|
|
|
<input name='start_time' id='start_time_' class="form-control"
|
|
|
|
<input name='start_time' id='start_time_' class="form-control datetimepicker-input"
|
|
|
|
|
|
|
|
type="text" data-target="#start_time_group"
|
|
|
|
placeholder="{{ form.start_time.format }}"
|
|
|
|
placeholder="{{ form.start_time.format }}"
|
|
|
|
{% if form.start_time.data %}
|
|
|
|
{% if form.start_time.data %}
|
|
|
|
value="{{ form.start_time.data.strftime(form.start_time.format) }}"
|
|
|
|
value="{{ form.start_time.data.strftime(form.start_time.format) }}"
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<span class="input-group-addon">
|
|
|
|
<div class="input-group-append" data-target="#start_time_group" data-toggle="datetimepicker">
|
|
|
|
<span class="glyphicon glyphicon-calendar"></span>
|
|
|
|
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% for error in form.start_time.errors %}
|
|
|
|
{% for error in form.start_time.errors %}
|
|
|
|
<p class="help-block">{{ error }}</p>
|
|
|
|
<p class="help-block">{{ error }}</p>
|
|
|
@ -65,8 +69,11 @@
|
|
|
|
{% block scripts %}
|
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
|
|
|
{{ super() }}
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment-with-locales.min.js"></script>
|
|
|
|
<script type="text/javascript"
|
|
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
|
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">
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(document).ready(function() {
|
|
|
|