+ web_app

This commit is contained in:
oleting
2021-01-14 14:01:02 +01:00
parent f0547890c1
commit b045869591
11 changed files with 21 additions and 20 deletions

7
web_app/main/forms.py Normal file
View File

@@ -0,0 +1,7 @@
from flask_wtf import FlaskForm
from wtforms import FileField, SubmitField
from flask_wtf.file import FileAllowed
class UploadJavaForm(FlaskForm):
java = FileField('.java hochladen', validators=[FileAllowed(['java', 'txt'])])
submit = SubmitField('Bestätigen')