remove seconds from the form

stable
neingeist 6 years ago
parent b2045435ff
commit 00324f74fe

@ -20,7 +20,8 @@ Bootstrap(app)
class DownloadForm(FlaskForm):
start_time = DateTimeField('Start time', validators=[DataRequired()], id='start_time')
start_time = DateTimeField('Start time', validators=[DataRequired()],
format='%Y-%m-%d %H:%M')
length = IntegerField('Length', validators=[DataRequired(),
NumberRange(min=1, max=app.config['MAX_LENGTH'])])
submit = SubmitField('Download')

@ -31,7 +31,7 @@
<script type="text/javascript">
$(function () {
$('#start_time').datetimepicker({
format:'YYYY-MM-DD HH:mm:ss',
format:'YYYY-MM-DD HH:mm',
sideBySide: true
});
});

Loading…
Cancel
Save