# HG changeset patch # User Madhusudan.C.S # Date 1250085612 -19800 # Node ID 4cf4c1f0e5bb756cb9ae045e63ad804171f1ebc7 # Parent 64249ebaf65a43ed510d426d9620805ba06183ec Review form changes. diff -r 64249ebaf65a -r 4cf4c1f0e5bb app/projrev/views/helpers/templatetags/review_helpers.py --- a/app/projrev/views/helpers/templatetags/review_helpers.py Tue Aug 11 04:34:01 2009 +0530 +++ b/app/projrev/views/helpers/templatetags/review_helpers.py Wed Aug 12 19:30:12 2009 +0530 @@ -72,4 +72,11 @@ if proposal: return str(proposal.id) - return 'NA' \ No newline at end of file + return 'NA' + +@register.filter() +def splitline(comment): + """Split into a line + """ + + return str(comment.split('\n')[0]) \ No newline at end of file diff -r 64249ebaf65a -r 4cf4c1f0e5bb app/templates/projrev/proposal/review.html --- a/app/templates/projrev/proposal/review.html Tue Aug 11 04:34:01 2009 +0530 +++ b/app/templates/projrev/proposal/review.html Wed Aug 12 19:30:12 2009 +0530 @@ -5,9 +5,8 @@ {{ block.super }} {% endblock scripts %} @@ -98,11 +97,11 @@

{{ form.attribute1.errors }} {{ form.attribute1.label }}
- - - - - + + + + + {% if form.attribute1.field.required %}  (required){% endif %}

@@ -112,11 +111,11 @@

{{ form.attribute2.errors }} {{ form.attribute2.label }}
- - - - - + + + + + {% if form.attribute2.field.required %}  (required){% endif %}

@@ -126,11 +125,11 @@

{{ form.attribute3.errors }} {{ form.attribute3.label }}
- - - - - + + + + + {% if form.attribute3.field.required %}  (required){% endif %}

@@ -140,11 +139,11 @@

{{ form.attribute4.errors }} {{ form.attribute4.label }}
- - - - - + + + + + {% if form.attribute4.field.required %}  (required){% endif %}

@@ -154,11 +153,11 @@

{{ form.attribute5.errors }} {{ form.attribute5.label }}
- - - - - + + + + + {% if form.attribute5.field.required %}  (required){% endif %}

@@ -168,11 +167,11 @@

{{ form.attribute6.errors }} {{ form.attribute6.label }}
- - - - - + + + + + {% if form.attribute6.field.required %}  (required){% endif %}

@@ -182,11 +181,11 @@

{{ form.attribute7.errors }} {{ form.attribute7.label }}
- - - - - + + + + + {% if form.attribute7.field.required %}  (required){% endif %}

@@ -196,11 +195,11 @@

{{ form.attribute8.errors }} {{ form.attribute8.label }}
- - - - - + + + + + {% if form.attribute8.field.required %}  (required){% endif %}

@@ -210,11 +209,11 @@

{{ form.attribute9.errors }} {{ form.attribute9.label }}
- - - - - + + + + + {% if form.attribute9.field.required %}  (required){% endif %}

diff -r 64249ebaf65a -r 4cf4c1f0e5bb app/templates/projrev/templatetags/_as_review.html --- a/app/templates/projrev/templatetags/_as_review.html Tue Aug 11 04:34:01 2009 +0530 +++ b/app/templates/projrev/templatetags/_as_review.html Wed Aug 12 19:30:12 2009 +0530 @@ -1,17 +1,74 @@ -

- Comment by: {{ review.reviewer}}, -On {{ review.reviewed_on|date:"jS F Y h:iA" }} - Total Score: {{ total_score }}
- Attribute 1: {{ review.attribute1 }}, - Attribute 2: {{ review.attribute2 }}, - Attribute 3: {{ review.attribute3 }}, - Attribute 4: {{ review.attribute4 }}, - Attribute 5: {{ review.attribute5 }}, - Attribute 6: {{ review.attribute6 }}, - Attribute 7: {{ review.attribute7 }}, - Attribute 8: {{ review.attribute8 }}, - Attribute 9: {{ review.attribute9 }} -

+{% load review_helpers %} + +
+
+ {{ review.comment }}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Feasibility of the proposed activity and the appropriateness of the time frame: + {{ review.attribute1 }}
+ Uniqueness/novelty/innovation of the said proposal: + {{ review.attribute2 }}
+ Scope for inter-institutional collaboration and development: + {{ review.attribute3 }}
+ The organisation of the programme to be carried out: + {{ review.attribute4 }}
+ The details of the work as the outlined by the principal investigator(PI): + {{ review.attribute5 }}
+ The details of the work as the outlined by the principal investigator(PI): + {{ review.attribute6 }}
+ Social impact/reach/spread of the outcome of the proposal: + {{ review.attribute7 }}
+ Contribution of the proposal to minimizing the digital divide in our country: + {{ review.attribute8 }}
+ Any other matter which is likely to affect the execution of the project: + {{ review.attribute9 }}
+
+
- {{ review.comment }} + Comment by: {{ review.reviewer }}, +On {{ review.reviewed_on|date:"jS F Y h:iA" }}

+ {{ review.comment|wordwrap:"80"|splitline }}

+ Total Score: {{ total_score }}    + Click here to see complete comment and individual scores
\ No newline at end of file