improve questionnaire layout
This commit is contained in:
parent
320e83c602
commit
d4f4d965e1
3 changed files with 14 additions and 5 deletions
|
@ -120,6 +120,10 @@ thead th {
|
||||||
margin-bottom: 0.3em;
|
margin-bottom: 0.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.infotext {
|
||||||
|
font-size: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
.fields td {
|
.fields td {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
@ -163,6 +167,10 @@ table.listing td {
|
||||||
border-bottom: 1px dotted #dddddd;
|
border-bottom: 1px dotted #dddddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.listing tr.vpad td {
|
||||||
|
padding: 7px 2px 7px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
fieldset.box table.listing td {
|
fieldset.box table.listing td {
|
||||||
padding: 0 1px 0 1px;
|
padding: 0 1px 0 1px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,7 +112,7 @@ class SurveyView(ConceptView):
|
||||||
mapping=dict(minAnswers=qugroup.minAnswers)),
|
mapping=dict(minAnswers=qugroup.minAnswers)),
|
||||||
target_language=lang)
|
target_language=lang)
|
||||||
if info:
|
if info:
|
||||||
text = u'%s<br />(%s)' % (text, info)
|
text = u'<i>%s</i><br />(%s)' % (text, info)
|
||||||
return text
|
return text
|
||||||
|
|
||||||
def getValues(self, question):
|
def getValues(self, question):
|
||||||
|
|
|
@ -47,12 +47,12 @@
|
||||||
<table class="listing">
|
<table class="listing">
|
||||||
<tal:qugroup repeat="qugroup item/adapted/questionGroups">
|
<tal:qugroup repeat="qugroup item/adapted/questionGroups">
|
||||||
<tr><td colspan="6"> </td></tr>
|
<tr><td colspan="6"> </td></tr>
|
||||||
<tr>
|
<tr class="vpad">
|
||||||
<td tal:define="infoText python:item.getInfoText(qugroup)">
|
<td tal:define="infoText python:item.getInfoText(qugroup)">
|
||||||
<b tal:content="qugroup/title" />
|
<b tal:content="qugroup/title" />
|
||||||
<div tal:condition="infoText">
|
<div class="infotext"
|
||||||
|
tal:condition="infoText">
|
||||||
<span tal:content="structure infoText" />
|
<span tal:content="structure infoText" />
|
||||||
<br />
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td style="text-align: center"
|
<td style="text-align: center"
|
||||||
|
@ -63,7 +63,8 @@
|
||||||
style="text-align: right"
|
style="text-align: right"
|
||||||
i18n:translate="">Does not apply</td>
|
i18n:translate="">Does not apply</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr tal:repeat="question qugroup/questions">
|
<tr class="vpad"
|
||||||
|
tal:repeat="question qugroup/questions">
|
||||||
<td tal:content="question/text" />
|
<td tal:content="question/text" />
|
||||||
<td style="white-space: nowrap; text-align: center"
|
<td style="white-space: nowrap; text-align: center"
|
||||||
tal:repeat="value python:item.getValues(question)">
|
tal:repeat="value python:item.getValues(question)">
|
||||||
|
|
Loading…
Add table
Reference in a new issue