add header field for feedback page
This commit is contained in:
parent
45eeac9a41
commit
bc24407d34
2 changed files with 10 additions and 0 deletions
|
@ -38,6 +38,13 @@ class IQuestionnaire(IConceptSchema, interfaces.IQuestionnaire):
|
||||||
default=4,
|
default=4,
|
||||||
required=True)
|
required=True)
|
||||||
|
|
||||||
|
feedbackHeader = schema.Text(
|
||||||
|
title=_(u'Feedback Header'),
|
||||||
|
description=_(u'Text that will appear at the top of the feedback page.'),
|
||||||
|
default=u'',
|
||||||
|
missing_value=u'',
|
||||||
|
required=False)
|
||||||
|
|
||||||
feedbackFooter = schema.Text(
|
feedbackFooter = schema.Text(
|
||||||
title=_(u'Feedback Footer'),
|
title=_(u'Feedback Footer'),
|
||||||
description=_(u'Text that will appear at the end of the feedback page.'),
|
description=_(u'Text that will appear at the end of the feedback page.'),
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
</tal:description>
|
</tal:description>
|
||||||
<div tal:condition="feedback">
|
<div tal:condition="feedback">
|
||||||
<h3 i18n:translate="">Feedback</h3>
|
<h3 i18n:translate="">Feedback</h3>
|
||||||
|
<div tal:define="header item/adapted/feedbackHeader"
|
||||||
|
tal:condition="header"
|
||||||
|
tal:content="structure python:item.renderText(header, 'text/restructured')" />
|
||||||
<table class="listing">
|
<table class="listing">
|
||||||
<tr>
|
<tr>
|
||||||
<th i18n:translate="">Category</th>
|
<th i18n:translate="">Category</th>
|
||||||
|
|
Loading…
Add table
Reference in a new issue