Skip to content

Commit

Permalink
PLD: do not display export link on per race form view
Browse files Browse the repository at this point in the history
  • Loading branch information
pld committed Apr 16, 2014
1 parent ba95a86 commit 1fb7866
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tally_ho/apps/tally/templates/data/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@

<h1>{{ header_text }}</h1>

{% if not none %}
Export:
{% endif %}
{% if custom %}
<a href="{% url 'form-not-received-view' 'csv' %}">{% trans 'All' %}</a>
{% elif none %}
{% else %}
<a href="{% url 'form-list' '__all__' %}">{% trans 'All' %}</a>
<a href="{% url 'form-list' 'unsubmitted' %}">{% trans 'Unsubmitted' %}</a>
Expand Down
2 changes: 1 addition & 1 deletion tally_ho/apps/tally/views/data/form_list_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,5 @@ def get(self, *args, **kwargs):

return self.render_to_response(self.get_context_data(
header_text=_('Forms for Race %s' % ballot),
custom=True,
none=True,
remote_url='/data/forms-for-race-data/%s/' % ballot))

0 comments on commit 1fb7866

Please sign in to comment.