use separate field for questionnaire header text
This commit is contained in:
parent
0e28cefc2d
commit
3470750fc7
4 changed files with 24 additions and 2 deletions
|
@ -33,6 +33,13 @@ class IQuestionnaire(IConceptSchema, interfaces.IQuestionnaire):
|
|||
""" A collection of questions for setting up a survey.
|
||||
"""
|
||||
|
||||
questionnaireHeader = schema.Text(
|
||||
title=_(u'Questionnaire Header'),
|
||||
description=_(u'Text that will appear at the top of the questionnaire.'),
|
||||
default=u'',
|
||||
missing_value=u'',
|
||||
required=False)
|
||||
|
||||
defaultAnswerRange = schema.Int(
|
||||
title=_(u'Answer Range'),
|
||||
description=_(u'Number of items (answer options) to select from.'),
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
errors item/errors">
|
||||
<metal:title use-macro="item/conceptMacros/concepttitle_only" />
|
||||
<tal:description condition="not:feedback">
|
||||
<metal:title use-macro="item/conceptMacros/conceptdescription" />
|
||||
<div tal:define="header item/adapted/questionnaireHeader"
|
||||
tal:condition="header"
|
||||
tal:content="structure python:
|
||||
item.renderText(header, 'text/restructured')" />
|
||||
</tal:description>
|
||||
|
||||
<div tal:condition="feedback">
|
||||
|
|
Binary file not shown.
|
@ -3,7 +3,7 @@ msgstr ""
|
|||
|
||||
"Project-Id-Version: 0.13.1\n"
|
||||
"POT-Creation-Date: 2007-05-22 12:00 CET\n"
|
||||
"PO-Revision-Date: 2015-03-22 12:00 CET\n"
|
||||
"PO-Revision-Date: 2015-04-17 12:00 CET\n"
|
||||
"Last-Translator: Helmut Merz <helmutm@cy55.de>\n"
|
||||
"Language-Team: loops developers <helmutm@cy55.de>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
@ -198,6 +198,18 @@ msgstr "Keine Gruppierung der Fragen"
|
|||
msgid "The questions should be presented in a linear manner, not grouped by categories or question groups."
|
||||
msgstr "Die Fragen sollen in linearer Reihenfolge ausgegeben und nicht nach Fragengruppen bzw. Kategorien gruppiert werden."
|
||||
|
||||
msgid "Questionnaire Header"
|
||||
msgstr "Infotext zum Fragebogen"
|
||||
|
||||
msgid "Text that will appear at the top of the questionnaire."
|
||||
msgstr "Text, der vor dem Fragebogen erscheinen soll"
|
||||
|
||||
msgid "Feedback Header"
|
||||
msgstr "Infotext zur Auswertung"
|
||||
|
||||
msgid "Text that will appear at the top of the feedback page."
|
||||
msgstr "Text, der oben auf der Auswertungsseite erscheinen soll."
|
||||
|
||||
msgid "Feedback Footer"
|
||||
msgstr "Auswertungs-Hinweis"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue