diff --git a/AT_frontend/.gitignore b/AT_frontend/.gitignore index 73aa070..585c88d 100644 --- a/AT_frontend/.gitignore +++ b/AT_frontend/.gitignore @@ -1 +1,2 @@ -venvs/ \ No newline at end of file +venvs/ +.__pychache__/ \ No newline at end of file diff --git a/AT_frontend/app.py b/AT_frontend/app.py index f727eb4..c6640bd 100644 --- a/AT_frontend/app.py +++ b/AT_frontend/app.py @@ -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) \ No newline at end of file