hide new speaker proposal and new event proposal buttons when call for speakers is not open, fixes #105

This commit is contained in:
Thomas Steen Rasmussen 2017-04-11 14:13:43 +02:00
parent 43c0ce5882
commit ca8661ce4d

View file

@ -45,7 +45,7 @@ Proposals | {{ block.super }}
<h4>No speaker proposals found</h4>
{% endif %}
{% if not camp.read_only %}
{% if not camp.read_only and camp.call_for_speakers_open %}
<a href="{% url 'speakerproposal_create' camp_slug=camp.slug %}" class="btn btn-primary btn-sm">Propose New Speaker</a>
{% endif %}
@ -90,7 +90,7 @@ Proposals | {{ block.super }}
<h4>No event proposals found</h4>
{% endif %}
{% if not camp.read_only %}
{% if not camp.read_only and camp.call_for_speakers_open %}
<a href="{% url 'eventproposal_create' camp_slug=camp.slug %}" class="btn btn-primary btn-sm">Propose New Event</a>
{% endif %}