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 @@