summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--template/allotter/apply.html15
-rw-r--r--template/allotter/complete.html15
-rw-r--r--template/base.html1
3 files changed, 22 insertions, 9 deletions
diff --git a/template/allotter/apply.html b/template/allotter/apply.html
index ee0c19a..7d9f8a1 100644
--- a/template/allotter/apply.html
+++ b/template/allotter/apply.html
@@ -3,6 +3,17 @@
{% load range_filter %}
{% block title %} JAM 2012 Application form {% endblock %}
+{% block scripts %}
+<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
+<script>
+$(document).ready(function(){
+ $("#check").click(function() {
+ $("#checkButton").attr("disabled", !this.checked);
+ });
+});
+
+</script>
+{% endblock %}
{% block content %}
@@ -47,7 +58,7 @@ Listing the options for first test paper.
<form action="/allotter/{{user.username}}/submit/" method="post">
{% csrf_token %}
-<table class="table table-bordered table-striped ">
+<table class="table table-bordered table-striped">
<thead>
<td><p>Programme Code </p></td>
<td><p>Programme Name </p></td>
@@ -110,7 +121,7 @@ Listing the options for first test paper.
<p><input type="checkbox" name="check" id="check" /><label for="check">I am responsible for my own choices.</label>
</p>
-<input type="submit" name="save" value="Save" class="btn" />
+<input type="submit" name="save" value="Save" class="btn" id="checkButton" disabled="disabled" />
</div>
</form>
diff --git a/template/allotter/complete.html b/template/allotter/complete.html
index 799d965..2cd1b7c 100644
--- a/template/allotter/complete.html
+++ b/template/allotter/complete.html
@@ -10,14 +10,15 @@
<h3> Please keep in mind that, the next time you login you will be redirected to this page straightaway.</h3>
{% if options_chosen %}
-<table>
-<tr>
+<table class="table table-bordered table-striped">
+<thead>
<td><p>Programme Code </p></td>
<td><p>Programme Name </p></td>
<td><p>Insitute </p></td>
<td><p>Preference </p></td>
-</tr>
+</thead>
+<tbody>
{% for option in options_chosen %}
<tr>
<td><p> {{ forloop.counter }} </p></td>
@@ -26,7 +27,7 @@
<td><p> {{ option.opt_location }} </p></td>
</tr>
{% endfor %}
-
+</tbody>
</table>
{% if email %}
@@ -43,17 +44,17 @@ An email with the list of options has been sent {{ email }} for book-keeping pur
<form action="/allotter/apply/" method="post">
{% csrf_token %}
-<input type="submit" name="apply" value="Edit Options" />
+<input type="submit" name="apply" value="Edit Options" class="btn" />
</form>
<form action="/allotter/get_pdf/" method="post">
{% csrf_token %}
-<input type="submit" name="get_pdf" value="Generate PDF" />
+<input type="submit" name="get_pdf" value="Generate PDF" class="btn" />
</form>
<form action="/allotter/logout/" method="post">
{% csrf_token %}
-<input type="submit" name="logout" value="Quit Allotment" />
+<input type="submit" name="logout" value="Quit Allotment" class="btn" />
</form>
{% endblock content %}
diff --git a/template/base.html b/template/base.html
index fdaa230..fa0f605 100644
--- a/template/base.html
+++ b/template/base.html
@@ -20,6 +20,7 @@
</style>
<link href="{{ STATIC_URL }}css/bootstrap-responsive.css" rel="stylesheet">
<link href="{{ STATIC_URL }}css/style.css" rel="stylesheet">
+ {% block scripts %}{% endblock %}
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>