remove seconds from the form
This commit is contained in:
		
							parent
							
								
									b2045435ff
								
							
						
					
					
						commit
						00324f74fe
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue