blob: ca037267b557d674d97aa6a4f151936896eb2c0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
{% extends "base.html" %}
{% load range_filter %}
{% block title %}Application form {% endblock %}
{% block content %}
<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>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>
<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_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/logout/" method="post">
{% csrf_token %}
<input type="submit" name="logout" value="Quit Allotment" />
</form>
{% endblock content %}
|