mirror of
https://github.com/StefBuwalda/WebTech.git
synced 2025-10-30 19:29:58 +00:00
Cleanup gang
This commit is contained in:
@@ -4,9 +4,11 @@ from wtforms.validators import DataRequired
|
||||
from flask_wtf.file import FileField, FileAllowed # type: ignore
|
||||
|
||||
|
||||
# Form for service on dashboard, connected to database through ORM
|
||||
class ServiceForm(FlaskForm):
|
||||
name = StringField("Service name:", validators=[DataRequired()])
|
||||
url = URLField("Service URL:", validators=[DataRequired()])
|
||||
# File field that only allows jpg, jpeg or png
|
||||
image = FileField(
|
||||
"Icon:",
|
||||
validators=[
|
||||
|
||||
Reference in New Issue
Block a user