frontend changes

This commit is contained in:
Anh-Thy04
2025-04-22 09:17:42 +02:00
parent 83244c46e9
commit 9560c8643d
2 changed files with 2 additions and 23 deletions

View File

@@ -1 +1,2 @@
venvs/
venvs/
.__pychache__/

View File

@@ -9,27 +9,5 @@ app = Flask(__name__)
app.config['SECRET_KEY'] = 'mijngeheimesleutel'
class InfoForm(FlaskForm):
naam = StringField('Wat is je naam?',validators=[DataRequired()])
vrouw = BooleanField("Ben je een vrouw?")
instrument = RadioField('Welk instrument wil je leren bespelen?', choices=[('ins_een','Gitaar'),('ins_twee','Drums')])
plaats = SelectField(u'Welke locatie heeft de voorkeur?',
choices=[('as', 'Assen'), ('dr', 'Drachten'), ('gr', 'Groningen')])
feedback = TextAreaField()
submit = SubmitField('Verzend')
@app.route('/', methods=['GET', 'POST'])
def index():
form = InfoForm()
if form.validate_on_submit():
session['naam'] = form.username.data
session['password'] = form.password.data
return render_template('dashboard.html')
return render_template('login.html', form=form)
if __name__ == '__main__':
app.run(debug=True)