Minor fixes.
This commit is contained in:
parent
aea3b5803a
commit
09d2c3112d
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
<h4>{% trans "Vote results" %}:</h4>
|
<h4>{% trans "Vote results" %}:</h4>
|
||||||
{% with application.polls as polls %}
|
{% with application.polls as polls %}
|
||||||
{% if polls.exists %}
|
{% if not polls.exists %}
|
||||||
{% if perms.application.can_manage_application %}
|
{% if perms.application.can_manage_application %}
|
||||||
{% if "genpoll" in actions %}
|
{% if "genpoll" in actions %}
|
||||||
<a href='{% url application_gen_poll application.id %}'>
|
<a href='{% url application_gen_poll application.id %}'>
|
||||||
|
@ -391,7 +391,7 @@ def view_poll(request, poll_id):
|
|||||||
view a poll for this application.
|
view a poll for this application.
|
||||||
"""
|
"""
|
||||||
poll = ApplicationPoll.objects.get(pk=poll_id)
|
poll = ApplicationPoll.objects.get(pk=poll_id)
|
||||||
#ballot = poll.ballot
|
ballot = poll.ballot
|
||||||
options = poll.get_options()
|
options = poll.get_options()
|
||||||
if request.user.has_perm('application.can_manage_application'):
|
if request.user.has_perm('application.can_manage_application'):
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
@ -425,7 +425,7 @@ def view_poll(request, poll_id):
|
|||||||
'poll': poll,
|
'poll': poll,
|
||||||
'form': form,
|
'form': form,
|
||||||
'options': options,
|
'options': options,
|
||||||
#'ballot': ballot,
|
'ballot': ballot,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -608,7 +608,6 @@ class ApplicationPDF(PDFView):
|
|||||||
permission_required = 'application.can_manage_application'
|
permission_required = 'application.can_manage_application'
|
||||||
filename = u'filename=%s.pdf;' % _("Applications")
|
filename = u'filename=%s.pdf;' % _("Applications")
|
||||||
top_space = 0
|
top_space = 0
|
||||||
document_title = ''
|
|
||||||
|
|
||||||
def append_to_pdf(self, story):
|
def append_to_pdf(self, story):
|
||||||
try:
|
try:
|
||||||
|
@ -287,7 +287,6 @@ class AssignmentPDF(PDFView):
|
|||||||
permission_required = 'assignment.can_manage_assignment'
|
permission_required = 'assignment.can_manage_assignment'
|
||||||
filename = u'filename=%s.pdf;' % _("Elections")
|
filename = u'filename=%s.pdf;' % _("Elections")
|
||||||
top_space = 0
|
top_space = 0
|
||||||
document_title = None
|
|
||||||
|
|
||||||
def append_to_pdf(self, story):
|
def append_to_pdf(self, story):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user