diff options
author | Primal Pappachan | 2012-03-27 14:56:23 +0530 |
---|---|---|
committer | Primal Pappachan | 2012-03-27 14:56:23 +0530 |
commit | 2a0e009c856b0ad8a28b613fcfde8f6cd92dca02 (patch) | |
tree | 2049a4187697b989382e3af2b65125b13a102222 /choice_seeker/template | |
parent | 8eba4c72a81176ba160e3e93e214acf28b9f376f (diff) | |
download | aloha-2a0e009c856b0ad8a28b613fcfde8f6cd92dca02.tar.gz aloha-2a0e009c856b0ad8a28b613fcfde8f6cd92dca02.tar.bz2 aloha-2a0e009c856b0ad8a28b613fcfde8f6cd92dca02.zip |
Added buildout files
Diffstat (limited to 'choice_seeker/template')
-rw-r--r-- | choice_seeker/template/allotter/apply.html | 109 | ||||
-rw-r--r-- | choice_seeker/template/allotter/complete.html | 60 | ||||
-rw-r--r-- | choice_seeker/template/allotter/details.html | 19 | ||||
-rw-r--r-- | choice_seeker/template/allotter/hello.html | 11 | ||||
-rw-r--r-- | choice_seeker/template/allotter/login.html | 21 | ||||
-rw-r--r-- | choice_seeker/template/allotter/register.html | 17 | ||||
-rw-r--r-- | choice_seeker/template/base.html | 23 |
7 files changed, 260 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 %} diff --git a/choice_seeker/template/allotter/complete.html b/choice_seeker/template/allotter/complete.html new file mode 100644 index 0000000..26ee46d --- /dev/null +++ b/choice_seeker/template/allotter/complete.html @@ -0,0 +1,60 @@ +{% extends "base.html" %} + +{% block title %}Options saved.{% endblock %} + +{% block content %} + +<h2> The following options have been saved. Please verify them before logging out.</h2> + +<h3> Please keep in mind that, the next time you login you will be redirected to this page straightaway.</h3> + +{% if options_chosen %} +<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_chosen %} + <tr> + <td><p> {{ forloop.counter }} </p></td> + <td><p> {{ option.opt_code }} </p></td> + <td><p> {{ option.opt_name }} </p></td> + <td><p> {{ option.opt_location }} </p></td> + </tr> +{% endfor %} + +</table> + +{% if email %} + +An email with the list of options has been sent {{ email }} for book-keeping purposes. + +{% endif %} + +{% else %} + +<h3> No Options were chosen, Press Edit Options to go back and select options otherwise Press logout to exit the allotment process </h3> + +{% endif %} + +<form id="apply" action="/allotter/{{username}}/apply/" method="post"> +{% csrf_token %} +<input type="submit" name="apply" value="Edit Options" /> +</form> + +<form id ="get_pdf" action="/allotter/{{username}}/get_pdf/" method="post"> +{% csrf_token %} +<input type="submit" name="get_pdf" value="Generate PDF" /> +</form> + +<form id="logout" action="/allotter/logout/" method="post"> +{% csrf_token %} +<input type="submit" name="logout" value="Quit Allotment" /> +</form> + +{% endblock content %} + + diff --git a/choice_seeker/template/allotter/details.html b/choice_seeker/template/allotter/details.html new file mode 100644 index 0000000..5beeb85 --- /dev/null +++ b/choice_seeker/template/allotter/details.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} + +{% block title %}Details form {% endblock %} + +{% block content %} +Please provide the following details. +<form action="/allotter/details/" method="post"> +{% csrf_token %} + +<table> +{{ form.as_table }} +</table> + +<h2> These details cannot be changed once entered. </h2> + +<input type="submit" value="Submit" /> +</form> + +{% endblock content %} diff --git a/choice_seeker/template/allotter/hello.html b/choice_seeker/template/allotter/hello.html new file mode 100644 index 0000000..0d07c7f --- /dev/null +++ b/choice_seeker/template/allotter/hello.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block title %} Welcome Note {% endblock %} + +{% block content %} +<h2>Hello, there</h2> + +<p> Welcome <strong>{{user.first_name.title}} {{user.last_name.title}}</strong>, +to JAM 2012 allotment! </p> + +{% endblock content %} diff --git a/choice_seeker/template/allotter/login.html b/choice_seeker/template/allotter/login.html new file mode 100644 index 0000000..72769a0 --- /dev/null +++ b/choice_seeker/template/allotter/login.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% block title %}Login{% endblock title %} + +{% block content %} +<h2> Welcome to the Allotment. +Please login to proceed.</h2> + +<form action="" method="post"> +{% csrf_token %} + +<table> +{{ form.as_table }} +</table> + +<br/> +<input type="submit" value="Login" /> +</form> +<!-- <a href="{{URL_ROOT}}/exam/forgotpassword/">Forgot Password</a> <br /> --> + +{% endblock content %} diff --git a/choice_seeker/template/allotter/register.html b/choice_seeker/template/allotter/register.html new file mode 100644 index 0000000..d7d04b9 --- /dev/null +++ b/choice_seeker/template/allotter/register.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% block title %}Registration form {% endblock %} + +{% block content %} +Please provide the following details. +<form action="" method="post"> +{% csrf_token %} + +<table> +{{ form.as_table }} +</table> + +<input type="submit" value="Register" /> +</form> + +{% endblock content %} diff --git a/choice_seeker/template/base.html b/choice_seeker/template/base.html new file mode 100644 index 0000000..cd937ba --- /dev/null +++ b/choice_seeker/template/base.html @@ -0,0 +1,23 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <style> + input.required, error { + border: 2px solid red; + } + </style> + <title>{% block title %} {% endblock %}</title> +</head> + +<body> + <div id="sidebar"> + {% block sidebar %}{% endblock %} + </div> + + <div id="content"> + {% block content %}{% endblock %} + {% block main_content %}{% endblock %} + </div> +</body> +</html> |