Add terms and conditions

This commit is contained in:
Nick Krichevsky 2019-11-19 00:15:13 -05:00
parent 90477dbd23
commit 7d2f102773
4 changed files with 27 additions and 5 deletions

View file

@ -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:

View file

@ -12,7 +12,7 @@ nav .brand-logo {
}
nav {
height: 148px;
height: 148px !important;
}
p {

View file

@ -25,6 +25,9 @@
</div>
</div>
<p>By registering & attending, you agree to the following policies:</p>
<p>
<a href="/tos">Hack@WPI's Terms and Conditions</a>
</p>
<p>
<a href="https://github.com/MLH/mlh-policies/blob/master/data-sharing.md">MLH's Data Sharing Notice</a>
</p>
@ -39,7 +42,7 @@
<a href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf">MLH's Code of Conduct</a>
</p>
<br>
<input type="checkbox" id="checkboxid" required><label for="checkboxid"><b style="color:black;">Do you agree with these Rules?</b></label>
<input type="checkbox" name="tos" id="checkboxid" required><label for="checkboxid"><b style="color:black;">Do you agree with these Rules?</b></label>
<br><br>
<input name="submit" class="btn btn-lg btn-primary btn-invert" type="submit" value="Submit"/>
</form>

15
templates/tos.html Normal file
View file

@ -0,0 +1,15 @@
{% include 'header.html' %}
<p>
I agree to hold harmless the organizers of HACK@WPI and WPIs 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.
</p>
<p>
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.
</p>
<style>
p {
margin: 25px 100px;
}
</style>
{% include 'footer.html' %}