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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
{% extends "base.html" %}
{% load range_filter %}
{% block title %} JAM 2012 Application form {% endblock %}
{% block scripts %}
<link href="{{ STATIC_URL }}css/style.css" rel="stylesheet">
<script src="{{ STATIC_URL }}js/browser-check.js" type="text/javascript"></script>
<script>
jQuery.fn.reset = function () {
$(this).each (function() { this.reset(); });
}
$(document).ready(function(){
$("#check").click(function() {
$("#checkButton").attr("disabled", !this.checked);
});
});
</script>
<script>
$(document).ready(function(){
$("#allotment-form").reset();
$("select").attr('disabled', false)
$("select").change(function () {
var $this = $(this);
var thisClass = $this.attr("class");
var prevVal = $this.data("prev");
var otherSelects = $("select").not(this);
var otherSameSelects = $("select[class=" + thisClass + "]").not(this);
if ($(this).val() !="0"){
otherSelects.find("option[value=" + $(this).val() + "]").attr('disabled', true);
otherSameSelects.find("option[value=" + $(this).val() + "]").attr('selected', 'selected');
otherSameSelects.attr('disabled', true);
}
if (prevVal) {
otherSelects.find("option[value=" + prevVal + "]").attr('disabled', false);
}
$this.data("prev", $this.val());
});
});
</script>
{% endblock %}
{% block content %}
<p> Welcome to JAM 2012 allotment! </p>
<p>Read the following instructions carefully before continuing. </p>
<hr/>
<h3>You are eligible for programmes on the basis of <b>{{first_paper}} ({{first_paper_code}}) </b>
{% comment %}
Checking if there is second paper and displaying its name.
{% endcomment %}
{% if np == 2 %}
and <b>{{second_paper}} ({{second_paper_code}})</b>
{% endif %}
</h3>
<br/>
<p> Choose the programmes of interest that you are eligible for, based on the paper
qualified in JAM 2012. If you have qualified in more than one paper you are eligible
for programmes covered by both papers. Mention the order of preference (1, 2, 3, etc)
in the last column. In the 'Order of Preference' column, mark <b>None</b> against the programmes
that you are NOT interested in. </p>
<p><b>Please note:</b> The order of Preference plays an important role in
the admission process.</p>
<div class="alert alert-info">
<h3 class="alert-heading">Note</h3>
<b>If you have qualified in two papers in JAM 2012 and would like to choose programmes eligible
under both the papers, the order of preferences should be combined. For example: a candidate
qualifying both BT and CY can have an order of preference such as 1 under BT, 2 under CY, 3
under BT and so on.</b>
</div>
<div class="alert alert-info">
<h3 class="alert-heading">Warning!</h3>
<b>Candidates should ensure that the choices specified by them
are distinct for each programme of their interest and are in the
ascending order of their preference - i.e. their most preferred
programme is selected as 1, etc.</b>
</div>
<hr/>
{% comment %}
</h3>
Listing the options for first test paper.
{% endcomment %}
<h3>Options available for {{first_paper}} ({{first_paper_code}})</h3>
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
<form action="/allotter/submit/" method="post" id="allotment-form">
{% csrf_token %}
<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>
</thead>
<tbody>
{% 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 class="{{option.opt_code}}" name="{{option.opt_code}}">
{% for i in options_range %}
<option value="{{i}}" >Preference {{i}}</option>
{% endfor %}
<option value="0" selected="selected">None</option>
</select>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% if np == 2 %}
<h3>Options available for {{second_paper}} ({{second_paper_code}}) </h3>
<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>
</thead>
<tbody>
{% 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 class="{{option.opt_code}}" name="{{option.opt_code}}">
{% for i in options_range %}
<option value="{{i}}">Preference {{i}}</option>
{% endfor %}
<option value="0" selected="selected">None</option>
</select>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<div class="alert">
<p><input type="checkbox" name="check" id="check" /><label for="check">I hereby declare that the order of preference given by me for eligible programmes is final.</label>
</p>
<input type="submit" name="save" value="Save" class="btn" id="checkButton" disabled="disabled" />
</div>
</form>
{% endblock content %}
|