diff --git a/src/program/templates/program_base.html b/src/program/templates/program_base.html index 223f8f58..64887332 100644 --- a/src/program/templates/program_base.html +++ b/src/program/templates/program_base.html @@ -2,22 +2,30 @@ {% block content %} +{% with url_name=request.resolver_match.url_name proposal_urls="proposal_list,speakerproposal_create,speakerproposal_detail,speakerproposal_update,speakerproposal_submit,speakerproposal_picture,eventproposal_create,eventproposal_detail,eventproposal_update,eventproposal_submit" %} +
- Schedule - Events - Speakers - Call for Speakers + Schedule + Events + Speakers + {% if request.user.is_authenticated %} + Your Proposals + {% endif %}

{% block program_content %} {% endblock program_content %} +{% endwith %} + {% endblock content %} diff --git a/src/program/templates/schedule_base.html b/src/program/templates/schedule_base.html index 37476547..81de24cc 100644 --- a/src/program/templates/schedule_base.html +++ b/src/program/templates/schedule_base.html @@ -38,11 +38,6 @@ - {% if request.user.is_authenticated %} -

- Manage Proposals -
- {% endif %}
diff --git a/src/program/templates/speaker_list.html b/src/program/templates/speaker_list.html index 80855446..fd3c6d87 100644 --- a/src/program/templates/speaker_list.html +++ b/src/program/templates/speaker_list.html @@ -7,6 +7,10 @@ event anchors at BornHack 2016.

+"Call for Speakers" for {{ camp.title }} + +
+
{% for speaker in speaker_list %} diff --git a/src/program/views.py b/src/program/views.py index 8e59e9cf..97f257da 100644 --- a/src/program/views.py +++ b/src/program/views.py @@ -61,7 +61,7 @@ class SpeakerProposalUpdateView(LoginRequiredMixin, CampViewMixin, EnsureUserOwn def form_valid(self, form): if form.instance.proposal_status == models.UserSubmittedModel.PROPOSAL_PENDING: - messages.info(self.request, "Your speaker proposal has been reverted to status draft. Please submit it again when you are ready.") + messages.warning(self.request, "Your speaker proposal has been reverted to status draft. Please submit it again when you are ready.") form.instance.proposal_status = models.UserSubmittedModel.PROPOSAL_DRAFT return super().form_valid(form) @@ -126,7 +126,7 @@ class EventProposalUpdateView(LoginRequiredMixin, CampViewMixin, EnsureUserOwnsP def form_valid(self, form): if form.instance.proposal_status == models.UserSubmittedModel.PROPOSAL_PENDING: - messages.info(self.request, "Your event proposal has been reverted to status draft. Please submit it again when you are ready.") + messages.warning(self.request, "Your event proposal has been reverted to status draft. Please submit it again when you are ready.") form.instance.proposal_status = models.UserSubmittedModel.PROPOSAL_DRAFT return super().form_valid(form) diff --git a/src/templates/base.html b/src/templates/base.html index f205617a..c787bf62 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -85,10 +85,7 @@ Villages Program Sponsors - {% if not camp.read_only %} - Teams - {% endif %} + Teams
{{ camp.title }} @@ -96,10 +93,7 @@ Villages Program Sponsors - {% if not camp.read_only %} - Teams - {% endif %} + Teams