From 3f40781612f33c8f9f8c7d31753cf65769f65982 Mon Sep 17 00:00:00 2001 From: Arthur Barrett Date: Thu, 28 Feb 2013 14:24:53 -0500 Subject: [PATCH] adjusted "incorrect" icon placement when no annotation options submitted. --- common/lib/capa/capa/inputtypes.py | 3 ++- .../capa/capa/templates/annotationinput.html | 19 +++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/common/lib/capa/capa/inputtypes.py b/common/lib/capa/capa/inputtypes.py index 4569b07bab..7abaf0fe69 100644 --- a/common/lib/capa/capa/inputtypes.py +++ b/common/lib/capa/capa/inputtypes.py @@ -1025,7 +1025,8 @@ class AnnotationInput(InputTypeBase): return { 'options_value': options_value, - 'comment_value': comment_value + 'has_options_value': len(options_value) > 0, # for convenience + 'comment_value': comment_value, } def _extra_context(self): diff --git a/common/lib/capa/capa/templates/annotationinput.html b/common/lib/capa/capa/templates/annotationinput.html index bfbce08a0f..e0172bb13b 100644 --- a/common/lib/capa/capa/templates/annotationinput.html +++ b/common/lib/capa/capa/templates/annotationinput.html @@ -20,12 +20,14 @@