Commit 069409d4 authored by Daniel W Bond's avatar Daniel W Bond

created warning message for too many room changes

parent 8038b40c
{% if request.user.student.recent_changes %}
<div class="row">
<div class="col-md-12">
{% if request.user.student.recent_changes == 1 %}
<div class="alert alert-warning text-center" role="alert">
<strong>To safeguard everyone's privacy, the number of times you can change your room in a semester is limited.</strong>
{% else %}
<div class="alert alert-danger text-center" role="alert">
<strong>To safeguard everyone's privacy, the number of times you can change your room in a semester is limited. Email roomlist@lists.srct.gmu.edu to have your room changed.</strong>
{% endif %}
</div>
</div>
</div>
{% endif %}
......@@ -7,6 +7,8 @@
{% block content %}
{% include 'room_change_warning.html' %}
<div class="page-header" id="banner">
<div class="row">
<div class="col-md-12 text-center">
......
......@@ -13,6 +13,8 @@
</div>
</div>
{% include 'room_change_warning.html' %}
<div class="page-header" id="banner">
<div class="row">
<div class="col-md-12 text-center">
......@@ -39,7 +41,7 @@
<div class="panel-body">
<form action="" method="post">{% csrf_token %}
{{ form.as_p }}
{{ my_form.as_p }}
<input type="submit" value="Save" class="btn btn-primary"/>
</form>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment