From 2864593b003c45019d8f20bb01fb876b968c0a00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?=
Date: Sat, 1 Apr 2017 21:45:43 +0200
Subject: [PATCH] Moving some menus around.
---
src/program/templates/program_base.html | 24 ++++++++++++++++--------
src/program/templates/schedule_base.html | 5 -----
src/program/templates/speaker_list.html | 4 ++++
src/program/views.py | 4 ++--
src/templates/base.html | 10 ++--------
5 files changed, 24 insertions(+), 23 deletions(-)
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" %}
+
{% 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 %}
-
- {% 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 @@
- {% if not camp.read_only %}
-
- {% endif %}
+
@@ -96,10 +93,7 @@
- {% if not camp.read_only %}
-
- {% endif %}
+