Added a warning message to alert the user that reviews are not editable.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 12 Apr 2009 16:43:30 +0000
changeset 2174 19ed1c42e836
parent 2173 27731db8ab1e
child 2175 8dd78e7015f9
Added a warning message to alert the user that reviews are not editable. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/student_proposal.py
--- a/app/soc/views/models/student_proposal.py	Sun Apr 12 16:09:00 2009 +0000
+++ b/app/soc/views/models/student_proposal.py	Sun Apr 12 16:43:30 2009 +0000
@@ -174,6 +174,7 @@
          'widget': widgets.FullTinyMCE(attrs={'rows': 10, 'cols': 40}),
          'label': 'Comment',
          'required': False,
+         'example_text': 'Caution, you will not be able to edit your comment!',
          },
          ]
 
@@ -210,6 +211,7 @@
          'widget': widgets.FullTinyMCE(attrs={'rows': 10, 'cols': 40}),
          'label': 'Comment',
          'required': False,
+         'example_text': 'Caution, you will not be able to edit your review!',
          },
         {'name': 'public',
          'base': forms.BooleanField,
@@ -915,10 +917,11 @@
     context['public_reviews'] = public_reviews
     context['private_reviews'] = private_reviews
 
+    # create a summary of all the private reviews
     review_summary = {}
 
     for review in private_reviews:
-
+      # make sure there is a reviewer
       reviewer = review.reviewer
       if not reviewer:
         continue