summaryrefslogtreecommitdiff
path: root/choice_seeker/template/allotter/apply.html
diff options
context:
space:
mode:
Diffstat (limited to 'choice_seeker/template/allotter/apply.html')
-rw-r--r--choice_seeker/template/allotter/apply.html109
1 files changed, 109 insertions, 0 deletions
diff --git a/choice_seeker/template/allotter/apply.html b/choice_seeker/template/allotter/apply.html
new file mode 100644
index 0000000..201e1f2
--- /dev/null
+++ b/choice_seeker/template/allotter/apply.html
@@ -0,0 +1,109 @@
+{% extends "base.html" %}
+
+{% load range_filter %}
+
+{% block title %} JAM 2012 Application form {% endblock %}
+
+{% block content %}
+
+<p> Welcome to JAM 2012 allotment! </p>
+
+<p>Read the following instructions carefully before continuing. </p>
+
+<hr/>
+Choose the options as per your preference
+
+<h3>You are eligible 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>
+
+<p> Preferences will be assigned to options 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>
+
+<hr/>
+
+{% comment %}
+</h3>
+Listing the options for first test paper.
+{% endcomment %}
+
+<h3>Options available for {{first_paper}}</h3>
+
+{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
+
+<form action="/allotter/{{user.username}}/submit/" method="post">
+{% csrf_token %}
+
+<table>
+<tr>
+<td><p>Programme Code </p></td>
+<td><p>Programme Name </p></td>
+<td><p>Insitute </p></td>
+<td><p>Preference </p></td>
+</tr>
+
+{% for option in options_available_first %}
+ <tr>
+ <td><p> {{ option.opt_code }} </p></td>
+ <td><p> {{option.opt_name }} </p></td>
+ <td><p> {{option.opt_location }} </p></td>
+ <td><select name="{{option.opt_code}}">
+ {% for i in options_range %}
+ <option value="{{i}}" selected="selected">Preference {{i}}</option>
+ {% endfor %}
+ <option value="0" selected="selected">None</option>
+ </select>
+ </td>
+ </tr>
+{% endfor %}
+</table>
+
+{% if np == 2 %}
+
+<h3>Options available for {{second_paper}} </h3>
+
+<table>
+<tr>
+<td><p>Programme Code </p></td>
+<td><p>Programme Name </p></td>
+<td><p>Insitute </p></td>
+<td><p>Preference </p></td>
+</tr>
+
+{% for option in options_available_second %}
+ <tr>
+ <td><p> {{option.opt_code }} </p></td>
+ <td><p> {{option.opt_name }} </p></td>
+ <td><p> {{option.opt_location }} </p></td>
+ <td><select name="{{option.opt_code}}">
+ {% for i in options_range %}
+ <option value="{{i}}" selected="selected">Preference {{i}}</option>
+ {% endfor %}
+ <option value="0" selected="selected">None</option>
+ </select>
+ </td>
+ </tr>
+{% endfor %}
+</table>
+
+{% endif %}
+
+<p><label for="check">I am responsible for my own choices.</label>
+<input type="checkbox" name="check" id="check" /></p>
+<input type="submit" name="save" value="Save" />
+</form>
+
+{% endblock content %}