PDF: Optimized ballot description for 2 lines.

This commit is contained in:
Emanuel Schuetze 2011-09-03 23:38:14 +02:00
parent 6a991dba0d
commit ceb9a3b4c3
2 changed files with 5 additions and 4 deletions

View File

@ -26,7 +26,7 @@ class Assignment(models.Model):
name = models.CharField(max_length=100, verbose_name = _("Name"))
description = models.TextField(null=True, blank=True, verbose_name = _("Description"))
posts = models.PositiveSmallIntegerField(verbose_name = _("Number of available posts"))
polldescription = models.CharField(max_length=50, null=True, blank=True, verbose_name = _("Short description (for ballot paper)"))
polldescription = models.CharField(max_length=100, null=True, blank=True, verbose_name = _("Short description (for ballot paper)"))
profile = models.ManyToManyField(Profile, null=True, blank=True)
elected = models.ManyToManyField(Profile, null=True, blank=True, related_name='elected_set')
status = models.CharField(max_length=1, choices=STATUS, default='sea')

View File

@ -112,14 +112,15 @@ stylesheet.add(ParagraphStyle(name = 'Ballot_title',
stylesheet.add(ParagraphStyle(name = 'Ballot_subtitle',
parent = stylesheet['Normal'],
fontSize = 10,
leading = 20,
leading = 12,
leftIndent = 30,
rightIndent = 20),
rightIndent = 20,
spaceAfter = 5),
)
stylesheet.add(ParagraphStyle(name = 'Ballot_description',
parent = stylesheet['Normal'],
fontSize = 7,
leading = 14,
leading = 10,
leftIndent = 30),
)
stylesheet.add(ParagraphStyle(name = 'Ballot_option',