#239 don't show supporters in the application PDF, if they are disabled
This commit is contained in:
parent
039446a7ca
commit
1b108603ea
@ -752,14 +752,17 @@ class ApplicationPDF(PDFView):
|
|||||||
|
|
||||||
# supporters
|
# supporters
|
||||||
cell2a = []
|
cell2a = []
|
||||||
cell2a.append(Paragraph("<font name='Ubuntu-Bold'>%s:</font><seqreset id='counter'>" % _("Supporters"), stylesheet['Heading4']))
|
|
||||||
cell2b = []
|
cell2b = []
|
||||||
for s in application.supporter.all():
|
if config['application_min_supporters']:
|
||||||
cell2b.append(Paragraph("<seq id='counter'/>. %s" % unicode(s.profile), stylesheet['Signaturefield']))
|
|
||||||
if application.status == "pub":
|
cell2a.append(Paragraph("<font name='Ubuntu-Bold'>%s:</font><seqreset id='counter'>" % _("Supporters"), stylesheet['Heading4']))
|
||||||
for x in range(0,application.missing_supporters):
|
|
||||||
cell2b.append(Paragraph("<seq id='counter'/>. __________________________________________",stylesheet['Signaturefield']))
|
for s in application.supporter.all():
|
||||||
cell2b.append(Spacer(0,0.2*cm))
|
cell2b.append(Paragraph("<seq id='counter'/>. %s" % unicode(s.profile), stylesheet['Signaturefield']))
|
||||||
|
if application.status == "pub":
|
||||||
|
for x in range(0,application.missing_supporters):
|
||||||
|
cell2b.append(Paragraph("<seq id='counter'/>. __________________________________________",stylesheet['Signaturefield']))
|
||||||
|
cell2b.append(Spacer(0,0.2*cm))
|
||||||
|
|
||||||
# status
|
# status
|
||||||
note = ""
|
note = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user