From ecabf31e54b9efcff69c0214654a5ea2a7c33f56 Mon Sep 17 00:00:00 2001
From: Christopher Neugebauer <_@chrisjrn.com>
Date: Sat, 9 Jul 2016 23:14:31 +1000
Subject: [PATCH] Assorted fixes (#47)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Invokes the site tree fix from previous fixes.
* Adds a disclaimer noting that previous years’ accounts have not been carried over.
Fixes #43
* Adds proposal type to the proposal summary page.
Fixes #40
* Adds travel/accommodation assistance to the proposals page, but makes it only visible to speakers in the proposal, or review managers.
Fixes #41.
Fixes #42.
* Reduces a lot of the whitespace in the header and footer.
Fixes #44
* Proposals review page now shows information for every speaker on a proposal.
Fixes #45
* Makes sure that non_field_errors are displayed by forms.
Fixes #37
---
pinaxcon/monkey_patch.py | 1 +
pinaxcon/templates/_form_snippet.html | 5 ++
pinaxcon/templates/account/login.html | 4 ++
.../symposion/proposals/_proposal_fields.html | 50 ++++++++++++++++---
pinaxcon/templatetags/lca2017_tags.py | 13 +++++
static/src/lca2017/css/app.css | 16 +++---
6 files changed, 77 insertions(+), 12 deletions(-)
diff --git a/pinaxcon/monkey_patch.py b/pinaxcon/monkey_patch.py
index a9d99258..fa66128c 100644
--- a/pinaxcon/monkey_patch.py
+++ b/pinaxcon/monkey_patch.py
@@ -13,6 +13,7 @@ class MonkeyPatchMiddleware(object):
def do_monkey_patch():
patch_speaker_profile_form()
patch_accounts_to_send_bcc()
+ fix_sitetree_check_access_500s()
# Remove this function from existence
global do_monkey_patch
diff --git a/pinaxcon/templates/_form_snippet.html b/pinaxcon/templates/_form_snippet.html
index cb97f820..f8ca2d80 100644
--- a/pinaxcon/templates/_form_snippet.html
+++ b/pinaxcon/templates/_form_snippet.html
@@ -1,5 +1,10 @@
{% load lca2017_tags %}
+{% if form.non_field_errors %}
+ {{ form.non_field_errors }}
+
+{% endif %}
+
{% for field in form %}
{% if not field.is_hidden %}
+ {% trans "Accounts from previous years have not been carried over to this site." %} + {% trans "You will need to create a new account for this year's site." %} +