|
|
@ -32,10 +32,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
{{ wtf.form_errors(form, hiddens="only") }}
|
|
|
|
{{ wtf.form_errors(form, hiddens="only") }}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group required {% if form.start_time.errors %}has-error{% endif -%}">
|
|
|
|
<div class="form-group required">
|
|
|
|
{{ form.start_time.label(class_="form-control-label") }}
|
|
|
|
{{ form.start_time.label(class_="form-control-label") }}
|
|
|
|
<div class='input-group date' id='start_time_group' data-target-input="nearest">
|
|
|
|
<div class='input-group date' id='start_time_group' data-target-input="nearest">
|
|
|
|
<input name='start_time' id='start_time_' class="form-control datetimepicker-input"
|
|
|
|
<input name='start_time' id='start_time_'
|
|
|
|
|
|
|
|
class="form-control datetimepicker-input {{"is-invalid" if form.start_time.errors else ""}}"
|
|
|
|
type="text" data-target="#start_time_group"
|
|
|
|
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 %}
|
|
|
@ -46,17 +47,17 @@
|
|
|
|
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
|
|
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% for error in form.start_time.errors %}
|
|
|
|
{% if form.start_time.errors %}
|
|
|
|
<p class="help-block">{{ error }}</p>
|
|
|
|
<div class="invalid-feedback">{{ form.start_time.errors|join("<br/>")|safe }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group required {% if form.length.errors %}has-error{% endif -%}">
|
|
|
|
<div class="form-group required">
|
|
|
|
{{ form.length.label(class_="form-control-label") }}
|
|
|
|
{{ form.length.label(class_="form-control-label") }}
|
|
|
|
{{ form.length(class_="form-control") }}
|
|
|
|
{{ form.length(class_="form-control " + ("is-invalid" if form.length.errors else "")) }}
|
|
|
|
{% for error in form.length.errors %}
|
|
|
|
{% if form.length.errors %}
|
|
|
|
<p class="help-block">{{ error }}</p>
|
|
|
|
<div class="invalid-feedback">{{ form.length.errors|join("<br/>")|safe }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group required">
|
|
|
|
<div class="form-group required">
|
|
|
@ -74,7 +75,7 @@
|
|
|
|
{{ super() }}
|
|
|
|
{{ super() }}
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript"
|
|
|
|
<script type="text/javascript"
|
|
|
|
src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.0/moment.min.js"></script>
|
|
|
|
src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.0/moment-with-locales.min.js"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.39.0/js/tempusdominus-bootstrap-4.min.js"
|
|
|
|
<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=="
|
|
|
|
integrity="sha512-k6/Bkb8Fxf/c1Tkyl39yJwcOZ1P4cRrJu77p83zJjN2Z55prbFHxPs9vN7q3l3+tSMGPDdoH51AEU8Vgo1cgAA=="
|
|
|
|
crossorigin="anonymous"></script>
|
|
|
|
crossorigin="anonymous"></script>
|
|
|
|