class DateTimeWithNumRunsForm(Form): # Date time and number of runs form for tree view, task duration # and landing times base_date = DateTimeField( "Anchor date", widget=DateTimePickerWidget(), default=datetime.now()) num_runs = SelectField("Number of runs", default=25, choices=( (5, "5"), (25, "25"), (50, "50"), (100, "100"), (365, "365"), ))
class DateTimeForm(Form): # Date filter form needed for gantt and graph view execution_date = DateTimeField("Execution date", widget=DateTimePickerWidget())
class CustomDateTimeForm(Form): start_date = DateTimeField("Start date", widget=DateTimePickerWidget()) end_date = DateTimeField("End date", widget=DateTimePickerWidget())
class DateTimeForm(FlaskForm): # Date filter form for task views execution_date = DateTimeField("Execution date", widget=DateTimePickerWidget())