author | Madhusudan.C.S <madhusudancs@gmail.com> |
Tue, 01 Feb 2011 15:02:52 +0530 | |
changeset 546 | 6393b77c3c68 |
parent 497 | 6386458d749b |
permissions | -rw-r--r-- |
431
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
1 |
{% extends "base.html" %} |
fcc87a3f0311
Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
417
diff
changeset
|
2 |
|
497
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
3 |
|
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
4 |
{% load browse_helpers %} |
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
5 |
|
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
6 |
|
372
563fe356947d
created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
7 |
{% block content %} |
497
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
8 |
{% if aero_textbooks %} |
546
6393b77c3c68
Change the textbook list templatetag to task list template tag.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
497
diff
changeset
|
9 |
{% as_list_tasks aero_textbooks "Aerospace Engineering" %} |
497
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
10 |
{% endif %} |
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
11 |
|
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
12 |
{% if chemical_textbooks %} |
546
6393b77c3c68
Change the textbook list templatetag to task list template tag.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
497
diff
changeset
|
13 |
{% as_list_tasks chemical_textbooks "Chemical Engineering" %} |
497
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
14 |
{% endif %} |
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
15 |
|
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
16 |
{% if computerscience_textbooks %} |
546
6393b77c3c68
Change the textbook list templatetag to task list template tag.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
497
diff
changeset
|
17 |
{% as_list_tasks computerscience_textbooks "Computer Science and Engineering" %} |
497
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
18 |
{% endif %} |
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
19 |
|
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
20 |
{% if electrical_textbooks %} |
546
6393b77c3c68
Change the textbook list templatetag to task list template tag.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
497
diff
changeset
|
21 |
{% as_list_tasks electrical_textbooks "Electrical Engineering" %} |
497
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
22 |
{% endif %} |
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
23 |
|
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
24 |
{% if engineeringphysics_textbooks %} |
546
6393b77c3c68
Change the textbook list templatetag to task list template tag.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
497
diff
changeset
|
25 |
{% as_list_tasks engineeringphysics_textbooks "Engineering Physics Engineering" %} |
497
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
26 |
{% endif %} |
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
27 |
|
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
28 |
{% if mechanical_textbooks %} |
546
6393b77c3c68
Change the textbook list templatetag to task list template tag.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
497
diff
changeset
|
29 |
{% as_list_tasks mechanical_textbooks "Mechanical Engineering" %} |
497
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
30 |
{% endif %} |
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
31 |
|
6386458d749b
List each department textbooks separately for now, think of a clever way later.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
495
diff
changeset
|
32 |
{% if metallurgical_textbooks %} |
546
6393b77c3c68
Change the textbook list templatetag to task list template tag.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
497
diff
changeset
|
33 |
{% as_list_tasks metallurgical_textbooks "Metallurgical Engineering and Materials Science" %} |
495
773e886d9b80
Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
435
diff
changeset
|
34 |
{% endif %} |
773e886d9b80
Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
435
diff
changeset
|
35 |
|
773e886d9b80
Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
435
diff
changeset
|
36 |
|
773e886d9b80
Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
435
diff
changeset
|
37 |
|
773e886d9b80
Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
435
diff
changeset
|
38 |
|
773e886d9b80
Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
435
diff
changeset
|
39 |
|
773e886d9b80
Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
435
diff
changeset
|
40 |
<!-- TO BE REFORMATTED LATER. JUST PUSHING IT DOWN. --> |
773e886d9b80
Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
435
diff
changeset
|
41 |
{% comment %} |
773e886d9b80
Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
435
diff
changeset
|
42 |
|
435
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
43 |
{% if comp_textbooks %} |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
44 |
Textbooks that were completed recently |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
45 |
<ul> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
46 |
{% for textbook in comp_textbooks %} |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
47 |
<li> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
48 |
<a href="{% url view_textbook textbook.id %}"> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
49 |
{{ textbook.name }} |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
50 |
</a> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
51 |
</li> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
52 |
{% endfor %} |
372
563fe356947d
created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
53 |
</ul> |
563fe356947d
created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
54 |
<br /> |
435
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
55 |
{% endif %} |
372
563fe356947d
created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
56 |
|
435
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
57 |
{% if open_textbooks %} |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
58 |
Textbooks that are open for contribution |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
59 |
<ul> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
60 |
{% for textbook in open_textbooks %} |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
61 |
<li> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
62 |
<a href="{% url view_textbook textbook.id %}"> |
495
773e886d9b80
Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
435
diff
changeset
|
63 |
{{ textbook.title }} |
435
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
64 |
</a> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
65 |
</li> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
66 |
{% endfor %} |
372
563fe356947d
created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
67 |
</ul> |
563fe356947d
created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
68 |
<br /> |
435
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
69 |
{% endif %} |
372
563fe356947d
created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
70 |
|
435
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
71 |
{% if unpub_textbooks %} |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
72 |
Textbooks that need approval |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
73 |
<ul> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
74 |
{% for textbook in unpub_textbooks %} |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
75 |
<li> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
76 |
<a href="{% url view_textbook textbook.id %}"> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
77 |
{{ textbook.name }} |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
78 |
</a> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
79 |
</li> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
80 |
{% endfor %} |
372
563fe356947d
created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
81 |
</ul> |
435
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
82 |
<br /> |
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
83 |
{% endif %} |
495
773e886d9b80
Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
435
diff
changeset
|
84 |
{% endcomment %} |
435
1217d808d70f
Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
431
diff
changeset
|
85 |
|
372
563fe356947d
created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff
changeset
|
86 |
{% endblock %} |