diff --git a/flask_app.py b/flask_app.py index 46d2095..3b8306f 100644 --- a/flask_app.py +++ b/flask_app.py @@ -136,8 +136,8 @@ def register(): # Request flow == messed up somehow, restart them return redirect(url_for('register')) - if 'resume' not in request.files: - # No file? + if 'resume' not in request.files or 'tos' not in request.form: + # No file or no TOS agreement? return redirect(url_for('register')) resume = request.files['resume'] @@ -446,6 +446,10 @@ def dashboard(): return render_template('dashboard.html', name=session['mymlh']['first_name'], id=session['mymlh']['id'], admin=is_admin()) +@app.route('/tos', methods=['GET']) +def tos(): + return render_template('tos.html') + def is_logged_in(): if session is None: diff --git a/static/css/style.css b/static/css/style.css index 667304a..0da8e6d 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -12,7 +12,7 @@ nav .brand-logo { } nav { - height: 148px; + height: 148px !important; } p { @@ -182,4 +182,4 @@ footer.page-footer { .hosted-by-logo { height: 64px; -} \ No newline at end of file +} diff --git a/templates/register.html b/templates/register.html index bb6f83a..6ba7006 100644 --- a/templates/register.html +++ b/templates/register.html @@ -25,6 +25,9 @@

By registering & attending, you agree to the following policies:

+

+ Hack@WPI's Terms and Conditions +

MLH's Data Sharing Notice

@@ -39,7 +42,7 @@ MLH's Code of Conduct


- +

diff --git a/templates/tos.html b/templates/tos.html new file mode 100644 index 0000000..f212a06 --- /dev/null +++ b/templates/tos.html @@ -0,0 +1,15 @@ +{% include 'header.html' %} +

+I agree to hold harmless the organizers of HACK@WPI and WPI’s Chapter of the Association of Computing Machinery (ACM) from any and all claims, lawsuits, demands, causes of action, liability, loss, damage and/or injury of any kind whatsoever (including without limitation all claims for monetary loss, property damager, equitable relief, personal injury and/or wrongful death), whether brought by an individual or other entity. The indemnification applies to and includes, without limitation, the payment of all penalties, fines, judgments, awards, decrees, attorneys’ fees, and related costs or expenses, and any reimbursements to ACM for all legal fees, expenses, and costs incurred by it. +

+ +

+I also acknowledge the organizers of HACK@WPI will be recording the event using video, photographs, audio recordings, and other media and give them permission to use said media in marketing/promotional materials. +

+ + +{% include 'footer.html' %}