app/soc/views/helper/surveys.py
changeset 2526 8f29bfb9eb52
parent 2520 859ada69db69
child 2527 ce657149b90a
--- a/app/soc/views/helper/surveys.py	Sat Jul 04 12:07:27 2009 +0200
+++ b/app/soc/views/helper/surveys.py	Sat Jul 04 13:53:17 2009 +0200
@@ -56,7 +56,7 @@
      >True</option>
     <option value="False" {% if not is_required %} selected='selected'
      {% endif %}>False</option>
-  </select><br/>
+  </select>
 
   <label for="comment_for_{{ name }}">Allow Comments</label>
   <select id="comment_for_{{ name }}" name="comment_for_{{ name }}">
@@ -64,7 +64,7 @@
      >True</option>
     <option value="False" {% if not has_comment %} selected='selected'
      {% endif %}>False</option>
-  </select><br/>
+  </select>
 """
 
 
@@ -379,9 +379,10 @@
       attrs: the attrs for the widget
       tip: tooltip text for this field
     """
+    attrs['class'] = 'comment'
     widget = widgets.Textarea(attrs=attrs)
-    comment_field = CharField(help_text=tip, required=False, label='Comments',
-                              widget=widget, initial=comment)
+    comment_field = CharField(help_text=tip, required=False, 
+        label='Add a Comment (optional)', widget=widget, initial=comment)
     self.survey_fields[COMMENT_PREFIX + field] = comment_field