summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtbc/static/forms/forms_professionals.zipbin0 -> 587363 bytes
-rwxr-xr-xtbc/static/forms/forms_students.zipbin0 -> 633058 bytes
-rwxr-xr-xtbc/templates/base.html4
-rw-r--r--tbc/templates/tbc/internship-forms.html27
-rw-r--r--tbc/urls.py2
-rw-r--r--tbc/views.py12
6 files changed, 42 insertions, 3 deletions
diff --git a/tbc/static/forms/forms_professionals.zip b/tbc/static/forms/forms_professionals.zip
new file mode 100755
index 0000000..09de6e2
--- /dev/null
+++ b/tbc/static/forms/forms_professionals.zip
Binary files differ
diff --git a/tbc/static/forms/forms_students.zip b/tbc/static/forms/forms_students.zip
new file mode 100755
index 0000000..839d49b
--- /dev/null
+++ b/tbc/static/forms/forms_students.zip
Binary files differ
diff --git a/tbc/templates/base.html b/tbc/templates/base.html
index 45e2719..6e970a3 100755
--- a/tbc/templates/base.html
+++ b/tbc/templates/base.html
@@ -86,10 +86,10 @@
<ul class="dropdown-menu">
<li><a href="#">Python TBC</a></li>
<li><a href="http://fossee.in" target="_blank">FOSSEE</a></li>
- <li><a href="#" target="_blank">Python Team</a></li>
+ <li><a href="http://python.fossee.in" target="_blank">Python Team</a></li>
</ul>
</li>
- <li><a href="#">Internship Forms</a></li>
+ <li><a href="{% url 'tbc:InternshipForms' %}">Internship Forms</a></li>
{% if user %}
<li class="dropdown">
diff --git a/tbc/templates/tbc/internship-forms.html b/tbc/templates/tbc/internship-forms.html
new file mode 100644
index 0000000..5ddf648
--- /dev/null
+++ b/tbc/templates/tbc/internship-forms.html
@@ -0,0 +1,27 @@
+{% extends "base.html" %}
+{% load static %}
+
+{% block content %}
+<center><h2> Internship Forms </h2></center>
+<hr>
+<p align="justify">Instructions to fill up the forms:</p>
+<ol>
+ <li>Download the appropriate forms from the below given links</li>
+ <li>Fill only forms and/or portions of forms that are applicable to you</li>
+ <li>All these forms are to be sent only when you are notified to provide the forms</li>
+ <li>Note: In receipt form fill sections which have '*' marks only</li>
+</ol>
+<hr>
+<ul>
+<li><a href="{% static 'forms/forms_students.zip' %}">Forms for Students</a>
+<li><a href="{% static 'forms/forms_professionals.zip' %}">Froms for Professionals/Corporates</a>
+</ul>
+<hr>
+<p align="justify">Mailing address:<br>
+Prof. Prabhu Ramachandran<br>
+Department of Aerospace Engineering,<br>
+IIT Bombay, Mumbai,<br>
+INDIA - 400 076<br>
+Phone: +91 22 2576 7121<br>
+Please write "Textbook Companion" on top of the envelope.</p>
+{% endblock %}
diff --git a/tbc/urls.py b/tbc/urls.py
index 16e9b51..0df98c5 100644
--- a/tbc/urls.py
+++ b/tbc/urls.py
@@ -2,8 +2,8 @@ from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
- # Home page
url(r'^$', 'tbc.views.Home', name='Home'),
+ url(r'^internship-forms/$', 'tbc.views.InternshipForms', name='InternshipForms'),
url(r'^register/$', 'tbc.views.UserRegister', name='UserRegister'),
url(r'^login/$', 'tbc.views.UserLogin', name='UserLogin'),
url(r'^logout/$', 'tbc.views.UserLogout', name='UserLogout'),
diff --git a/tbc/views.py b/tbc/views.py
index a8aded8..d5c5ee6 100644
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -31,6 +31,18 @@ def is_reviewer(user):
return True
+def InternshipForms(request):
+ context = {}
+ images = []
+ if request.user.is_anonymous():
+ context['anonymous'] = True
+ else:
+ if is_reviewer(request.user):
+ context['reviewer'] = request.user
+ else:
+ context['user'] = request.user
+ return render_to_response('tbc/internship-forms.html', context)
+
def Home(request):
context = {}
images = []