take mouseover title from answer option description
This commit is contained in:
parent
3a6d6a7ddd
commit
0c043434e2
2 changed files with 3 additions and 7 deletions
|
@ -204,13 +204,9 @@ class SurveyView(ConceptView):
|
||||||
result = []
|
result = []
|
||||||
for opt in self.answerOptions:
|
for opt in self.answerOptions:
|
||||||
value = str(opt['value'])
|
value = str(opt['value'])
|
||||||
result.append(dict(value=value, checked=(setting == value)))
|
result.append(dict(value=value, checked=(setting == value),
|
||||||
|
title=opt['description']))
|
||||||
return result
|
return result
|
||||||
|
|
||||||
#noAnswer = [dict(value='none', checked=(setting == None),
|
|
||||||
# radio=(not question.required))]
|
|
||||||
#return noAnswer + [dict(value=i, checked=(setting == i), radio=True)
|
|
||||||
# for i in reversed(range(question.answerRange))]
|
|
||||||
|
|
||||||
|
|
||||||
class SurveyCsvExport(NodeView):
|
class SurveyCsvExport(NodeView):
|
||||||
|
|
|
@ -87,7 +87,7 @@
|
||||||
name string:question_${question/uid};
|
name string:question_${question/uid};
|
||||||
value value/value;
|
value value/value;
|
||||||
checked value/checked;
|
checked value/checked;
|
||||||
title string:survey_value_${value/value}" />
|
title value/title" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tal:qugroup>
|
</tal:qugroup>
|
||||||
|
|
Loading…
Add table
Reference in a new issue