mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 08:09:37 +00:00
22 lines
1.1 KiB
Python
22 lines
1.1 KiB
Python
from flask_babelex import lazy_gettext, gettext
|
|
from flask_wtf import FlaskForm
|
|
from flask_wtf.file import FileField, FileAllowed
|
|
from wtforms import SelectMultipleField, FieldList, RadioField, DateTimeField, StringField, SubmitField, TextAreaField, SelectField, BooleanField, IntegerField, FormField
|
|
from wtforms.fields.html5 import DateTimeLocalField, EmailField
|
|
from wtforms.validators import DataRequired, Optional
|
|
from wtforms.widgets import html_params, HTMLString
|
|
from models import EventContact, EventPlace, EventTargetGroupOrigin, EventAttendanceMode, EventStatus, Location, EventOrganizer, EventRejectionReason, EventReviewStatus
|
|
from .common import event_rating_choices
|
|
from .widgets import CustomDateField
|
|
|
|
class FindEventDateForm(FlaskForm):
|
|
class Meta:
|
|
csrf = False
|
|
|
|
date_from = CustomDateField(lazy_gettext('From'), validators=[Optional()])
|
|
date_to = CustomDateField(lazy_gettext('to'), validators=[Optional()])
|
|
keyword = StringField(lazy_gettext('Keyword'), validators=[Optional()])
|
|
|
|
category_id = SelectField(lazy_gettext('Category'), validators=[Optional()], coerce=int)
|
|
|
|
submit = SubmitField(lazy_gettext("Find")) |