diff --git a/AT_frontend/forms.py b/AT_frontend/forms.py deleted file mode 100644 index 1e45ef9..0000000 --- a/AT_frontend/forms.py +++ /dev/null @@ -1,33 +0,0 @@ -from flask import Flask, render_template, redirect, url_for -from flask_wtf import FlaskForm -from wtforms import StringField, SubmitField, BooleanField -from wtforms.validators import DataRequired - -app = Flask(__name__) -app.config['SECRET_KEY'] = 'mijngeheimesleutel' - -class GateControlForm(FlaskForm): - open_gate = SubmitField('Open Gate') - close_gate = SubmitField('Close Gate') - debug_mode = BooleanField('Enable Debug Mode') - check_camera = SubmitField('Check Camera') # New button to check camera status - -class InputForm(FlaskForm): - name = StringField('Name', validators=[DataRequired()]) - submit = SubmitField('Submit') - -@app.route('/', methods=['GET', 'POST']) -def dashboard(): - gate_status = "Closed" - debug_mode = False - form = GateControlForm() - if form.validate_on_submit(): - if form.open_gate.data: - gate_status = "Open" - elif form.close_gate.data: - debug_mode = form.debug_mode.data - return render_template('dashboard.html', form=form, gate_status=gate_status, debug_mode=debug_mode) - return render_template('dashboard.html', form=form, gate_status=gate_status, debug_mode=debug_mode) - -if __name__ == '__main__': - app.run(debug=True) \ No newline at end of file diff --git a/AT_frontend/instance/logs.db b/AT_frontend/instance/logs.db deleted file mode 100644 index 8efe1ea..0000000 Binary files a/AT_frontend/instance/logs.db and /dev/null differ diff --git a/AT_frontend/instance/site.db b/AT_frontend/instance/site.db deleted file mode 100644 index 416bb25..0000000 Binary files a/AT_frontend/instance/site.db and /dev/null differ diff --git a/AT_frontend/templates/base.html b/AT_frontend/templates/base.html deleted file mode 100644 index 8e26039..0000000 --- a/AT_frontend/templates/base.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - Admin Dashboard - - - -
-
- - -
-
-

Admin Dashboard

-
-
- - -
- Logout -
-
- - {%block content%} - - {% endblock %} - \ No newline at end of file diff --git a/AT_frontend/templates/inlog.html b/AT_frontend/templates/inlog.html deleted file mode 100644 index 739c54f..0000000 --- a/AT_frontend/templates/inlog.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - Inlog - - - -
-
-

Admin Login

-
- {{ form.csrf_token }} -
- - -
-
- - -
- Must be 8-20 characters long. -
-
-
- - -
- {% if error %} -
- {{ error }} -
- {% endif %} -
- -
-
-
-
- - \ No newline at end of file