summaryrefslogtreecommitdiff
path: root/template/allotter
diff options
context:
space:
mode:
authorPrimal Pappachan2012-03-16 19:06:37 +0530
committerPrimal Pappachan2012-03-16 19:06:37 +0530
commit2c97aecefd592649e88f5ace6ed39ef98f93089d (patch)
tree4b89325262c664de8955fe3c9d88884240c684fd /template/allotter
parent801352eaf61a9eec25caaf02bce42ced1d396614 (diff)
downloadaloha-2c97aecefd592649e88f5ace6ed39ef98f93089d.tar.gz
aloha-2c97aecefd592649e88f5ace6ed39ef98f93089d.tar.bz2
aloha-2c97aecefd592649e88f5ace6ed39ef98f93089d.zip
added the options listing page
Diffstat (limited to 'template/allotter')
-rw-r--r--template/allotter/apply.html59
1 files changed, 51 insertions, 8 deletions
diff --git a/template/allotter/apply.html b/template/allotter/apply.html
index 72c96c3..ca03726 100644
--- a/template/allotter/apply.html
+++ b/template/allotter/apply.html
@@ -1,34 +1,77 @@
{% extends "base.html" %}
+{% load range_filter %}
+
{% block title %}Application form {% endblock %}
{% block content %}
-<h2>Hello, there</h2>
+<h2>Thank you for providing the details. You have been authenticated.</h2>
<p> Welcome <strong>{{user.first_name.title}} {{user.last_name.title}}</strong>,
to JAM 2012 allotment! </p>
Choose the options as per your preference
-<h3> {{user.first_name}} {{user.last_name}} {{user.user_name}}</h3>
+<h3>You are in the merit list for {{first_paper}}
+
+{% comment %}
+Checking if there is second paper and displaying its name.
+{% endcomment %}
+
+{% if np == 2 %}
+
+and {{second_paper}}
+
+{% endif %}
+
+</h3>
+
+<h4>For the paper(s) in which you are in the merit list, the following
+options are available to you. Please rank your choices.</h4>
-<h3> {{subject}} </h3>
+<p> Options will be given preference in the ascending order. Make sure it's
+<b>None</b> for all options after your last option so that it is not considered. </p>
+
+<h3>Number of Options {{ oafl }} Number of subjects {{np}} </h3>
+
+{% comment %}
+Listing the options for first test paper.
+{% endcomment %}
<form action="/allotter/save" method="post">
{% csrf_token %}
-{% for option in options %}
-<input name="option" type="radio" value="{{option}}" />{{option.opt_name}}<br/>
+{% for option in options_available_first %}
+ <p>{{ option.opt_name }}</p>
+ {% for i in oafl|get_range %}
+ <input name="option" type="radio" value="{{i}}" />{{i}}<br/>
+ {% endfor %}
+ <input name="option" type="radio" value="None" />None<br/>
{% endfor %}
+{% comment %}
+Listing the options for second test paper if it exists.
+{% endcomment %}
+
+{% if np == 2 %}
+
+{% for option in options_available_second %}
+ <p>{{ option.opt_name }}</p>
+ {% for i in oafl|get_range %}
+ <input name="option" type="radio" value="{{i}}" />{{i}}<br/>
+ {% endfor %}
+ <input name="option" type="radio" value="None" />None<br/>
+{% endfor %}
+
+{% endif %}
+
<input type="submit" name="save" value="Save" />
</form>
-<form action="/allotter/quit/" method="post">
+<form action="/allotter/logout/" method="post">
{% csrf_token %}
-<input type="submit" name="quit" value="Quit Allotment" />
+<input type="submit" name="logout" value="Quit Allotment" />
</form>
-<a href="{{URL_ROOT}}/allotter/logout/">Logout</a>
{% endblock content %}