From 904ce9b2e7a9d3f4ed6594b5bd14ce53cc296367 Mon Sep 17 00:00:00 2001 From: Primal Pappachan Date: Wed, 21 Mar 2012 13:32:27 +0530 Subject: Changed from radio buttons to drop down lists, added new field for insitute information and a preliminary version of the complete page --- template/allotter/apply.html | 81 ++++++++++++++++++++++++++++------------- template/allotter/complete.html | 14 ++++++- 2 files changed, 69 insertions(+), 26 deletions(-) (limited to 'template/allotter') diff --git a/template/allotter/apply.html b/template/allotter/apply.html index e1c728d..a336306 100644 --- a/template/allotter/apply.html +++ b/template/allotter/apply.html @@ -2,18 +2,18 @@ {% load range_filter %} -{% block title %}Application form {% endblock %} +{% block title %} Application form {% endblock %} {% block content %} -

Thank you for providing the details. You have been authenticated.

+

Welcome to JAM 2012 allotment!

-

Welcome {{user.first_name.title}} {{user.last_name.title}}, -to JAM 2012 allotment!

+

Read the following instructions carefully before continuing.

+
Choose the options as per your preference -

You are in the merit list for {{first_paper}} +

You are eligible for {{first_paper}} {% comment %} Checking if there is second paper and displaying its name. @@ -30,46 +30,77 @@ and {{second_paper}}

For the paper(s) in which you are in the merit list, the following options are available to you. Please rank your choices.

-

Options will be given preference in the ascending order. Make sure it's -None for all options after your last option so that it is not considered.

+

Preferences will be assigned to options in the ascending order. Make sure it's +None for all options after your last option(so that it is not considered).

-

Number of Options {{ oafl }} Number of subjects {{np}}

+
{% comment %} + Listing the options for first test paper. {% endcomment %} +

Options available for {{first_paper}}

+ {% if error_message %}

{{ error_message }}

{% endif %}
{% csrf_token %} -{% for option in options_available_first %} -

{{ option.opt_name }}

- {% for i in oafl|get_range %} -
+ + + + + + + + +{% for option in options_available_first %} + + + + + + {% endfor %} - -{% comment %} -Listing the options for second test paper if it exists. -{% endcomment %} - +

Programme Code

Programme Name

Insitute

Preference

{{ option.opt_code }}

{{option.opt_name }}

{{option.opt_location }}

None
+ + +
{% if np == 2 %} -{% for option in options_available_second %} -

{{ option.opt_name }}

- {% for i in oafl|get_range %} -
+

Options available for {{second_paper}}

+ + + + + + + + + +{% for option in options_available_second %} + + + + + + +{% endfor %} +

Programme Code

Programme Name

Insitute

Preference

{{option.opt_code }}

{{option.opt_name }}

{{option.opt_location }}

None
-{% endfor %} + + +
{% endif %} -
diff --git a/template/allotter/complete.html b/template/allotter/complete.html index 1759c30..e235772 100644 --- a/template/allotter/complete.html +++ b/template/allotter/complete.html @@ -5,7 +5,19 @@ {% block content %} -

Thank you, your options have been saved to the database

+

Thank you, your following options have been saved to the database

+ +{{first_paper}} + +{% for option in options_available_first %} +

{{ option.opt_name }}

+{% endfor %} + +{% if email %} + +An email with all the options has been to the following email address: {{email}} + +{% endif %} {% endblock content %} -- cgit