From cefbd01ffd5646d87e3656861ae4e5a2826b2493 Mon Sep 17 00:00:00 2001
From: hardythe1
Date: Mon, 30 Dec 2013 17:06:52 +0530
Subject: adding static page internship forms
---
tbc/static/forms/forms_professionals.zip | Bin 0 -> 587363 bytes
tbc/static/forms/forms_students.zip | Bin 0 -> 633058 bytes
tbc/templates/base.html | 4 ++--
tbc/templates/tbc/internship-forms.html | 27 +++++++++++++++++++++++++++
tbc/urls.py | 2 +-
tbc/views.py | 12 ++++++++++++
6 files changed, 42 insertions(+), 3 deletions(-)
create mode 100755 tbc/static/forms/forms_professionals.zip
create mode 100755 tbc/static/forms/forms_students.zip
create mode 100644 tbc/templates/tbc/internship-forms.html
diff --git a/tbc/static/forms/forms_professionals.zip b/tbc/static/forms/forms_professionals.zip
new file mode 100755
index 0000000..09de6e2
Binary files /dev/null and b/tbc/static/forms/forms_professionals.zip differ
diff --git a/tbc/static/forms/forms_students.zip b/tbc/static/forms/forms_students.zip
new file mode 100755
index 0000000..839d49b
Binary files /dev/null and b/tbc/static/forms/forms_students.zip 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 @@
- Internship Forms
+ Internship Forms
{% if user %}
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 %}
+ Internship Forms
+
+Instructions to fill up the forms:
+
+ - Download the appropriate forms from the below given links
+ - Fill only forms and/or portions of forms that are applicable to you
+ - All these forms are to be sent only when you are notified to provide the forms
+ - Note: In receipt form fill sections which have '*' marks only
+
+
+
+
+Mailing address:
+Prof. Prabhu Ramachandran
+Department of Aerospace Engineering,
+IIT Bombay, Mumbai,
+INDIA - 400 076
+Phone: +91 22 2576 7121
+Please write "Textbook Companion" on top of the envelope.
+{% 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 = []
--
cgit