class SearchForm(Form):
    query = html5.SearchField("",
                              render_kw={
                                  "class": "form-contol",
                                  "placeholder":
                                  "Search by location or keyword",
                                  "aria-label": "Search"
                              })

    difficulty = SelectField("Difficulty",
                             choices=[("Choose...")],
                             render_kw={"class": "form-control"})

    category_name = SelectField("Walk type",
                                choices=[("Choose...")],
                                render_kw={"class": "form-control"})

    dogs_allowed = BooleanField("Dog Friendly",
                                render_kw={"class": "custom-control-input"})

    free_parking = BooleanField("Free Parking",
                                render_kw={"class": "custom-control-input"})

    paid_parking = BooleanField("Paid Parking",
                                render_kw={"class": "custom-control-input"})
Exemplo n.º 2
0
 class F(Form):
     search = html5.SearchField()
     telephone = html5.TelField()
     url = html5.URLField()
     email = html5.EmailField()
     datetime = html5.DateTimeField()
     date = html5.DateField()
     dt_local = html5.DateTimeLocalField()
     integer = html5.IntegerField()
     decimal = html5.DecimalField()
     int_range = html5.IntegerRangeField()
     decimal_range = html5.DecimalRangeField()