repairs ballots for candidates with structure_level
This commit is contained in:
parent
81bcb19847
commit
350a60722c
@ -497,32 +497,31 @@ class AssignmentPollPDF(PDFView):
|
|||||||
cell.append(Paragraph(
|
cell.append(Paragraph(
|
||||||
"(%s)" % candidate.structure_level,
|
"(%s)" % candidate.structure_level,
|
||||||
stylesheet['Ballot_option_suffix_YNA']))
|
stylesheet['Ballot_option_suffix_YNA']))
|
||||||
|
if self.poll.yesnoabstain:
|
||||||
|
cell.append(Paragraph(
|
||||||
|
" ", stylesheet['Ballot_option_suffix_YNA']))
|
||||||
|
cell.append(Paragraph("<font name='circlefont' size='15'>%(circle)s</font> \
|
||||||
|
<font name='Ubuntu'>%(yes)s </font> \
|
||||||
|
<font name='circlefont' size='15'>%(circle)s</font> \
|
||||||
|
<font name='Ubuntu'>%(no)s </font> \
|
||||||
|
<font name='circlefont' size='15'>%(circle)s</font> \
|
||||||
|
<font name='Ubuntu'>%(abstain)s</font>" %
|
||||||
|
{'circle': circle,
|
||||||
|
'yes': _("Yes"),
|
||||||
|
'no': _("No"),
|
||||||
|
'abstain': _("Abstain")},
|
||||||
|
stylesheet['Ballot_option_circle_YNA']))
|
||||||
else:
|
else:
|
||||||
if self.poll.yesnoabstain:
|
cell.append(Paragraph(
|
||||||
cell.append(Paragraph(
|
" ", stylesheet['Ballot_option_suffix_YNA']))
|
||||||
" ", stylesheet['Ballot_option_suffix_YNA']))
|
cell.append(Paragraph("<font name='circlefont' size='15'>%(circle)s</font> \
|
||||||
cell.append(Paragraph("<font name='circlefont' size='15'>%(circle)s</font> \
|
<font name='Ubuntu'>%(yes)s </font> \
|
||||||
<font name='Ubuntu'>%(yes)s </font> \
|
<font name='circlefont' size='15'>%(circle)s</font> \
|
||||||
<font name='circlefont' size='15'>%(circle)s</font> \
|
<font name='Ubuntu'>%(no)s </font>" %
|
||||||
<font name='Ubuntu'>%(no)s </font> \
|
{'circle': circle,
|
||||||
<font name='circlefont' size='15'>%(circle)s</font> \
|
'yes': _("Yes"),
|
||||||
<font name='Ubuntu'>%(abstain)s</font>" %
|
'no': _("No")},
|
||||||
{'circle': circle,
|
stylesheet['Ballot_option_circle_YNA']))
|
||||||
'yes': _("Yes"),
|
|
||||||
'no': _("No"),
|
|
||||||
'abstain': _("Abstain")},
|
|
||||||
stylesheet['Ballot_option_circle_YNA']))
|
|
||||||
else:
|
|
||||||
cell.append(Paragraph(
|
|
||||||
" ", stylesheet['Ballot_option_suffix_YNA']))
|
|
||||||
cell.append(Paragraph("<font name='circlefont' size='15'>%(circle)s</font> \
|
|
||||||
<font name='Ubuntu'>%(yes)s </font> \
|
|
||||||
<font name='circlefont' size='15'>%(circle)s</font> \
|
|
||||||
<font name='Ubuntu'>%(no)s </font>" %
|
|
||||||
{'circle': circle,
|
|
||||||
'yes': _("Yes"),
|
|
||||||
'no': _("No")},
|
|
||||||
stylesheet['Ballot_option_circle_YNA']))
|
|
||||||
if counter == 13:
|
if counter == 13:
|
||||||
cellcolumnA = cell
|
cellcolumnA = cell
|
||||||
cell = []
|
cell = []
|
||||||
|
Loading…
Reference in New Issue
Block a user