Example #1
0
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"),
    ))
Example #2
0
class DateTimeForm(Form):
    # Date filter form needed for gantt and graph view
    execution_date = DateTimeField("Execution date",
                                   widget=DateTimePickerWidget())
Example #3
0
class CustomDateTimeForm(Form):
    start_date = DateTimeField("Start date", widget=DateTimePickerWidget())
    end_date = DateTimeField("End date", widget=DateTimePickerWidget())
Example #4
0
class DateTimeForm(FlaskForm):
    # Date filter form for task views
    execution_date = DateTimeField("Execution date",
                                   widget=DateTimePickerWidget())